[
http://jira.jboss.com/jira/browse/JBPM-1340?page=all ]
Thomas Diesler updated JBPM-1340:
---------------------------------
Component/s: jPDL 4
(was: API)
Fix Version/s: jPDL 4.0 alpha1
(was: API 1.0.0.Alpha)
Assignee: Heiko Braun (was: Thomas Diesler)
Basic Node Sequence
-------------------
Key: JBPM-1340
URL:
http://jira.jboss.com/jira/browse/JBPM-1340
Project: JBoss jBPM
Issue Type: Task
Security Level: Public(Everyone can see)
Components: jPDL 4
Reporter: Thomas Diesler
Assigned To: Heiko Braun
Fix For: jPDL 4.0 alpha1
Support a basic sequence like this
<process-definition>
<start-state>
<transition to='stateA' />
</start-state>
<state name='stateA'>
<transition to='end' />
</state>
<end-state name='end' />
</process-definition>
public void testBasicSequence() throws Exception {
// Create a ProcessDefinition through the ProcessDefinitionManager
ProcessDefinitionManager pdm =
ProcessDefinitionManager.locateProcessDefinitionManager();
ProcessDefinition pd = pdm.createProcessDefinition(jpdl);
// Create an Execution through the ProcessDefinition
Execution ex = pd.createExecution();
assertEquals(pd.getStartNode(), ex.getNode());
// Signal the execution
ex.signal();
assertEquals(pd.findNode("stateA"), ex.getNode());
// Signal the execution
ex.signal();
assertEquals(pd.findNode("end"), ex.getNode());
assertEquals(pd.getEndNodes().iterator().next(), ex.getNode());
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira