[jboss-user] [jBPM] - Re: How to add Java code to the jbpm process

Al Daher do-not-reply at jboss.com
Mon Oct 10 05:31:04 EDT 2011


Al Daher [http://community.jboss.org/people/baltajino] created the discussion

"Re: How to add Java code to the jbpm process"

To view the discussion, visit: http://community.jboss.org/message/630841#630841

--------------------------------------------------------------
Hi,

well if you are definig the proces through the diagram, you can select a node and do the following steps:

1. Create a class under the following Package com.xxx.yyy.workflow.action.  call it MyClassHandler
2. MyClassHandler should implement org.jbpm.graph.def.ActionHandler.
3. in execute Method you should implement what you like to do (call EJB,  orsystem.out, call database, change process variables....)
4. Go to your processdefinition.xml
5. Select the node to which you want to assign an action
6. under Properties View, select Action tab
7. select Configure Action 
8. go to Details and add the class name that implements your node action. For example : com.xxx.yyy.workflow.action.MyClassHandler
9. choose  "Field" as a Config Type 
10. select Handler in the dropdown list
11. Save the process Definition

This description is for a simple node. Some changes mut be done for Decision nodes or other components.
Hopefully it helped

Regards
--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111010/332397fa/attachment-0001.html 


More information about the jboss-user mailing list