[jboss-user] [JBoss jBPM] - Re: mail node issue
debnathm
do-not-reply at jboss.com
Mon Jan 28 07:38:38 EST 2008
Hi
I have run the following test case and used the
jbpm-starters-kit-3.1.4. Under this environment
it shows the parse warning as mentioned in my post.
The test case is:
package com.jbpm.tutorial.mailtest;
|
| import junit.framework.TestCase;
| import org.jbpm.graph.def.ProcessDefinition;
| import org.jbpm.graph.exe.ProcessInstance;
|
| public class MailTest extends TestCase {
| public void setUp()
| {
|
| }
|
| public void testMail()
| {
| ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(
| "<process-definition> " +
| " <start-state name='start'>" +
| " <transition to='mailnode1' name='to_mailnode'></transition>" +
| " </start-state> " +
| " <mail-node name='mailnode1' to='abc at mailserver.com' >" +
| " <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);
| assertEquals(false, processInstance == null);
| }
| }
The warning is :
17:30:11,218 [main] WARN JpdlXmlReader : process xml warning: transition to='mailnode1' on node 'start' cannot be resolved
If you kave any ideas, please let me know.
Debnath
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124031#4124031
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124031
More information about the jboss-user
mailing list