"kukeltje" wrote : See http://docs.jboss.com/jbpm/v3/userguide/jpdl.html#configurationofdelegations | | How you parse the content of what is in there is completely up to the developer I had another look at that and came up with the following:
<process-definition xmlns="" name="TestProcess"> | | <start-state name="startstate"> | | <transition to="node1" name="ok"> | <action name="Test1" class="TestHandler" config-type="constructor"> | <blob>This is some constructor config data</blob> | </action> | <action name="Test2" class="TestHandler" config-type="field"> | <blob>This is some field config data</blob> | </action> | <action name="Test3" class="TestHandler" config-type="bean"> | <blob>This is some bean config data</blob> | </action> | </transition> | </start-state> | | <node name="node1"> | <transition to="end"></transition> | </node> | <end-state name="end"></end-state> | </process-definition> and import org.apache.commons.logging.Log; | import org.apache.commons.logging.LogFactory; | import org.jbpm.graph.def.ActionHandler; | import org.jbpm.graph.exe.ExecutionContext; | | public class TestHandler implements ActionHandler | { | private static Log log = LogFactory.getLog(TestHandler.class); | | public String blob; | | public TestHandler() | { | log.debug("Default constructor"); | blob = "default"; | } | | public TestHandler(String xml) | { | this(); | | log.debug("Config constructor"); | | configure(xml); | } | | public void configure(String xml) | { | log.debug("Parse: " + xml.trim()); | } | | public void setBlob(String blob) | { | log.debug("Setter"); | this.blob = blob; | } | | public void execute(ExecutionContext executionContext) throws Exception | { | log.debug("Execute: " + blob); | } | | } | Hope that helps :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133178#4133178 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133178 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user