This content has been marked as final.
Show 1 reply
-
1. Re: HowTo programatically add action to transition?
admin Jan 12, 2006 2:17 PM (in response to fmuhlenberg)if you use runtime actions, then you don't even have to mess with the process definition.
Event event = processDefinition.getEvent("transition");
Action action = processDefinition.getAction("myActionAsDefinedInTheProcessDefinitionXml");
processInstance.addRuntimeAction(event, action);
or something like that.
if it is just to see what transitions the process takes, you also could use debug logging.
regards, tom.