[jBPM] - Re: JBPM stuck when reach AdHocSubprocess and stop executing when reach IntermediateThrowEvent
by Esteban Aliverti
Esteban Aliverti [https://community.jboss.org/people/eaa] created the discussion
"Re: JBPM stuck when reach AdHocSubprocess and stop executing when reach IntermediateThrowEvent"
To view the discussion, visit: https://community.jboss.org/message/718997#718997
--------------------------------------------------------------
Some anwers and remarks:
* Process are executed in the same thread your application is running, so doing a while (!mKSession.getProcessInstances().isEmpty()) waiting for something is useless.
* In the case of ad-hoc processes, you need to manually signal the node you want to execute using ksession.signalEvent(). I think you will have to take a look at the tests that shown the behavior of ad-hoc processes in order to get an idea in how to use them. So, the behavior you are experiencing here is the expected. jBPM5 is waiting for someone to signal the node to execute. Your app will be forever in the while() loop. Maybe for your case you can use an embedded subprocess instead of an ad-hoc subprocess.
* In the case of the intermediate escalation throw event, it seems a bug in jBPM5. Even if nobody is catching that event, the execution should always continue. But maybe I'm wrong here and some of the core developers can correct me.
Best Regards,
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/718997#718997]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 1 month
[jBPM] - jBPM5 Spring Integration: 'jbpm:kbase' can not be found
by liliana.iovanovici
liliana.iovanovici [https://community.jboss.org/people/liliana.iovanovici] created the discussion
"jBPM5 Spring Integration: 'jbpm:kbase' can not be found"
To view the discussion, visit: https://community.jboss.org/message/717912#717912
--------------------------------------------------------------
Hello,
I am trying to integrate JBPM5 with Spring. For the beggining I pu in conf-spring.xml file: (Line 12)
<jbpm:kbase id="kbase">
<jbpm:resources>
<jbpm:resource type="BPMN2" source="classpath:Hi.bpmn" />
</jbpm:resources>
</jbpm:kbase>
<jbpm:ksession id="ksession" type="stateful" kbase="kbase">
<jbpm:configuration>
<jbpm:jpa-persistence>
<jbpm:entity-manager-factory ref="entityManagerFactory"/>
<jbpm:transaction-manager ref="transactionManager"/>
</jbpm:jpa-persistence>
</jbpm:configuration>
</jbpm:ksession>
But when I created the context :
ApplicationContext context = new ClassPathXmlApplicationContext("conf-spring.xml") I got an error:
Line 12 in XML document from class path resource [spring-conf.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'jbpm:kbase'.
Does anybody know what could be the problem?
Thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/717912#717912]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 1 month