[
http://jira.jboss.com/jira/browse/JBPM-1259?page=all ]
Thomas Diesler updated JBPM-1259:
---------------------------------
Component/s: API
(was: jPDL 4)
Basic node sequence
-------------------
Key: JBPM-1259
URL:
http://jira.jboss.com/jira/browse/JBPM-1259
Project: JBoss jBPM
Issue Type: Sub-task
Security Level: Public(Everyone can see)
Components: API
Reporter: Thomas Diesler
Assigned To: Heiko Braun
String jpdl =
"<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 {
// Locate the ProcessEngine
ProcessEngine engine = ProcessEngineLocator.locateProcessEngine();
// Create a ProcessDefinition through the ProcessDefinitionManager
ProcessDefinitionManager pdm = engine.getProcessDefinitionManager();
ProcessDefinition pd = pdm.createProcessDefinition(jpdl);
// Create a ProcessInstance through the ProcessInstanceManager
ProcessInstanceManager pim = engine.getProcessInstanceManager();
ProcessInstance pi = pim.createProcessInstance(pd);
// Create an Execution through the ExecutionManager
ExecutionManager pem = engine.getExecutionManager();
Execution ex = pem.createExecution(pi);
// Signal the execution
ex.signal();
// Verify the nodes
Node expNode = pd.findNode("stateA");
Node wasNode = ex.getNode();
assertEquals(expNode, wasNode);
assertEquals(expNode.getName(), wasNode.getName());
}
--
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