Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created 
the discussion

"Re: Using jBPM as state machine engine - is it a good idea?"

To view the discussion, visit: https://community.jboss.org/message/778267#778267

--------------------------------------------------------------
I would say you could do this by combining power of jBPM and drools. First of 
all, I believe that traditional process definition would not fit your needs but 
ad hoc processes are in my opinion excellent choice here. See some details 
about ad hoc processes  
http://docs.jboss.org/jbpm/v5.3/userguide/ch.flexiple-processes.html here.
Just one important comment is that you would not rely on process instance state 
as it's internal information for the engine and cannot be altered based on 
business data but rather use process variable that can be easily modified by 
process activities and rules.

Generally it would work like this:
- start ad hoc process which will  not make any activity running yet
- signal given activity or execute rules that will decide what activity should 
be signaled
- at any point a decision needs to be taken a business rule task should be 
executed that will evaluate what needs to be done:
     - set process variable according to current state of the process
     - signal another activity to continue processing

HTH
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/778267#778267]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to