Maciej Swiderski [
https://community.jboss.org/people/swiderski.maciej] created the
discussion
"Re: Migration from 4.3 to 5.2"
To view the discussion, visit:
https://community.jboss.org/message/734095#734095
--------------------------------------------------------------
First of all, knowledge base is a runtime representation of your processes, rules, etc so
there is no need to have two of them especially in terms of execution. For execution you
use sessions that you can create as many as you want from the same knowledge base and
these sessions are independent from each other, they share same definitions but that's
it. So in your case you could create two session each for every process instance
you're currently testing. Just make sure you put the facts into both sessions.
Nevertheless, I do think it should be possible to achieve this with just one session, as I
don't know all the details of your scenario here is a generic one:
* write your rules to be aware of unique identifiers (for instance order id)
* start process instance to handle an order, it will get unique order id as process
variable
* if needed modify the facts that your process instance operates on so it won't be
hanging around if they are already processed.
An example of the condition could be like this (please note I did not test it so could be
not 100% executable)
o: Order()
p: WorkflowProcessInstance()
String( this == o.orderId ) from p.getVariable("OrderId")
HTH
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/734095#734095]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]