[jboss-user] [JBoss jBPM] - mail node issue
debnathm
do-not-reply at jboss.com
Mon Jan 28 03:26:22 EST 2008
Hi
I have written the following code:
ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(
| "<process-definition> " +
| " <start-state name='start'>" +
| " <transition to='mailnode1' name='to_mailnode'></transition>" +
| " </start-state> " +
| " <mail-node name='mailnode1' to='<email address>' >" +
| " <subject>a</subject> " +
| " <text>This is regarding</text>" +
| " <transition to='end' name='to_end'></transition> " +
| " </mail-node> " +
| "<end-state name='end'></end-state>" +
| "</process-definition>");
|
|
| ProcessInstance processInstance = new ProcessInstance(processDefinition);
However, the above code gives a warning on parsing:
13:23:38,166 WARN [JpdlXmlReader] process xml warning: transition to='mailnode1
' on node 'start' cannot be resolved
On signalling the start node, I get the runtime exception:
org.jbpm.JbpmException: transition 'to_mailnode' doesn't have destination. check
your processdefinition.xml
Please let me know what is going wrong.
Thanks,
Debnath
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123945#4123945
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123945
More information about the jboss-user
mailing list