我在jBPM中有一项服务任务。流程图如下所示。
我使用提供的默认服务任务处理程序为服务任务“Hello”注册工作项处理程序,如下所示。
ksession.getWorkItemManager().registerWorkItemHandler("Service Task", new ServiceTaskHandler());
我从服务任务调用java函数。该函数调用api,需要将近10分钟才能得到响应。但在任务完成之前,我得到以下错误:
Jun 11, 2018 8:09:43 AM com.arjuna.ats.arjuna.coordinator.TransactionReaper check
WARN: ARJUNA012117: TransactionReaper::check timeout for TX 0:ffff0a923832:e68d:5b1e2e09:19 in state RUN
Jun 11, 2018 8:09:43 AM com.arjuna.ats.arjuna.coordinator.BasicAction checkChildren
WARN: ARJUNA012095: Abort of action id 0:ffff0a923832:e68d:5b1e2e09:19 invoked while multiple threads active within it.
Jun 11, 2018 8:09:43 AM com.arjuna.ats.arjuna.coordinator.BasicAction checkChildren
WARN: ARJUNA012381: Action id 0:ffff0a923832:e68d:5b1e2e09:19 completed with multiple threads - thread main was in progress with java.net.SocketInputStream.socketRead0(Native Method)
java.net.SocketInputStream.socketRead(Unknown Source)
java.net.SocketInputStream.read(Unknown Source)
java.net.SocketInputStream.read(Unknown Source)
org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137)
org.apache.http.impl.io.SessionInputBufferImpl.fillBuffer(SessionInputBufferImpl.java:153)
org.apache.http.impl.io.SessionInputBufferImpl.readLine(SessionInputBufferImpl.java:282)
Jun 11, 2018 8:09:43 AM com.arjuna.ats.arjuna.coordinator.CheckedAction check
WARN: ARJUNA012108: CheckedAction::check - atomic action 0:ffff0a923832:e68d:5b1e2e09:19 aborting with 1 threads active!
WARNING: Unable to put resource app-updateable-resource value [] due to No transaction is running
Jun 11, 2018 8:10:18 AM org.drools.persistence.PersistableRunner rollbackTransaction
WARNING: Could not commit session
java.lang.IllegalStateException: Process instance 131[com.sample.bpmn.hello] is disconnected.
我该如何解决这个问题。这是暂停问题吗?如果是,我该如何增加超时