问题描述
我是JBPM的老手,但是在JBPM 7.41中编写代码时却遇到了
pub struct CustomBin {
eos_guard: Mutex<Option<Sender<()>>>,}
impl Default for CustomBin {
fn default() -> Self {
Self {
eos_guard: Mutex::new(None),}
}
}
impl ObjectImpl for CustomBin {
glib_object_impl!();
}
impl ElementImpl for CustomBin {}
impl BinImpl for CustomBin {
fn handle_message(&self,bin: &Bin,message: Message) {
if let MessageView::Eos(_) = message.view() {
if let Some(sender) = self.eos_guard.lock().unwrap().take() {
sender.send(()).unwrap_or(());
} else {
self.parent_handle_message(bin,message);
}
} else {
self.parent_handle_message(bin,message);
}
}
}
impl ObjectSubclass for CustomBin {
const NAME: &'static str = "GstCustomBin";
type ParentType = Bin;
type Instance = ElementInstanceStruct<Self>;
type Class = Classstruct<Self>;
glib_object_subclass!();
fn new() -> Self {
Self::default()
}
}
impl CustomBin {
pub fn install_eos_guard(&self) -> Receiver<()> {
let mut eos_guard = self.eos_guard.lock().unwrap();
let (sender,receiver) = channel();
if eos_guard.is_some() {
panic!("End-of-stream guard was already installed");
} else {
eos_guard.replace(sender);
}
receiver
}
}
一个简单的过程-仅记录在起始节点和结束节点之间已到达的脚本-用Java编码并在Wildfly下运行。我读到这是来自persistence.xml和几个ORM文件的问题,但我没有使用人工任务,自定义工作项处理程序等。在BusinessCentral.war或KieServer中也找不到任何ORM文件。战争。对于这个简单的示例,我是否需要Taskorm.xml和jbpmorm.xml?我已经读过这些文件放在jbpm-human-task-jpa.jar中,但是当我爆炸任何一场战争时,我都找不到那个JAR。有人可以显示我是否需要修改这些xml文件?提前谢谢!
这是我的persistence.xml
17:28:47.622 [main] DEBUG o.h.r.t.b.j.i.JtaTransactionCoordinatorImpl - JTA transaction was already joined (RegisteredSynchronization already registered)
17:28:47.626 [main] DEBUG o.h.e.t.internal.TransactionImpl - On TransactionImpl creation,JpaCompliance#isJpaTransactionComplianceEnabled == false
17:28:47.628 [main] ERROR o.j.s.t.c.InitDeadlinesCommand - Error when executing deadlines
java.lang.IllegalArgumentException: No query defined for that name [UnescalatedStartDeadlines]
at org.hibernate.internal.AbstractSharedSessionContract.buildQueryFromName(AbstractSharedSessionContract.java:828)
at org.hibernate.internal.AbstractSharedSessionContract.createNamedQuery(AbstractSharedSessionContract.java:807
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)