-
1. Re: jbpm4: could it simpler implementing an identical user i
kukeltje Jul 5, 2009 8:17 AM (in response to rogerofyan)look at the foreach forkhandler in the wiki. It is for jBPM 3 but might be adapted for jBPM 4
-
2. Re: jbpm4: could it simpler implementing an identical user i
rogerofyan Jul 5, 2009 11:44 PM (in response to rogerofyan)Thanks for the tip about forkhandler. But I don't find how to add action handler in jBPM4.
what confusing me is how to dynamically create multiple child executions after a fork node, the count of child executions is unknown when design the process.
Any tips is welcome.
Thanks.
Roger -
3. Re: jbpm4: could it simpler implementing an identical user i
shekharv Jul 6, 2009 12:16 AM (in response to rogerofyan)Look at the eventListener folder's process.jpdl.xml in the examples that come with jbpm4.
You could use something like:
<event-listener class="org.jbpm.examples.eventlistener.LogListener"/>
This listener could then be the base to trigger the code that you could use to dynamically build the process. -
4. Re: jbpm4: could it simpler implementing an identical user i
rogerofyan Jul 6, 2009 9:19 AM (in response to rogerofyan)"shekharv" wrote:
You could use something like:
<on event="start">
<event-listener class="org.jbpm.examples.eventlistener.LogListener"/>
</on>
This listener could then be the base to trigger the code that you could use to dynamically build the process.
I checked out the LogListener example and some jBPM4 source code, especially the EventListener related files.
In the definition of EventListener interface, there's only one method:public void notify(EventListenerExecution execution) throws Exception { }
I can't find any method in EventListerExecution that is responsible for creating new execution or task. How to build the process dynamically in a listener?
Thanks.
Roger -
5. Re: jbpm4: could it simpler implementing an identical user i
kukeltje Jul 6, 2009 10:20 AM (in response to rogerofyan)Correct, that is up to you. But still I would go for my proposed solution and learn a little jBPM basics first (like you should when going for the eventlistener as well)