hello,
is there a tool that produces java source code from a process definition and generates string constants for node-names, transition-names and so on?
like from
<process-definition xmlns="" name="my-process"> <start-state name="start-state"> <transition to="decision-node" name="tra-decision"></transition> </start-state> <decision name="decision-node"> <handler ... </handler> <transition to="node-1" name="tra-node1"></transition> <transition to="node-2" name="tra-node2"></transition> </decision> <node name="node-1"> ...</node> ....
... class WorkflowConstants { public final String PROCESSDEFINITON_MYPROCESS = "my-process"; public final String NODE_NODE_1 = "node-1"; public final String TRANSITION_TRA_DECISION = "tra-decision"; ... }
i think there is no application to do that..
But why you wanna do that exactly??
You have processDefinition object that represent exactly that.. and you can create it with your xml...