Feb 14
jBPM simple nodes are the most common nodes in all processes. They are used to encapsulate an action of your workflow.
The easiest way to program these kind of nodes is to develop an ActionHandler . You must do something like this:
public class Example implements ActionHandler{.......}
Developing ActionHandler interfaces involves to implement an execute method:
public void execute(ExecutionContext executionContext) throws Exception;
Inside this function you can add all code you need to perform the desired action. Remember that you have to send a signal to navigate to the next node at the end of execution.
executionContext.getProcessInstance().signal();
Finally, using Eclipse interface you have to link you node with you handler.
At Action menu you must check Configure Action (your node must be selected). Inside Details tab you will be able to select and configure your class.
As easy as you read.




February 14th, 2008 at 8:33 pm
Cool ! That is exactly what we need to do more simple description of the simple and powerfull features of jPDL. Thanks. Great job.