[
http://jira.jboss.com/jira/browse/JBPM-1339?page=all ]
Thomas Diesler updated JBPM-1339:
---------------------------------
Description: (was: Support prepareForShutdown and cancelShutdown on the
ProcessEngine.
/**
* Try to create a Execution during shutdown
*/
public void testCreateExecution() throws Exception
{
// Create a ProcessDefinition through the ProcessDefinitionManager
ProcessDefinitionManager pdm =
ProcessDefinitionManager.locateProcessDefinitionManager();
ProcessDefinition pd = pdm.createProcessDefinition(jpdl);
assertNotNull("Execution expected", pd.createExecution());
// Try to create a Execution during shutdown
try
{
ProcessInstance pinst = pd.createProcessInstance();
engine.prepareForShutdown();
pinst.createExecution();
}
catch (EngineShutdownException ex)
{
assertEquals("Cannot create new Execution while engine is shutting down",
ex.getMessage());
}
}
)
Engine Shutdown
---------------
Key: JBPM-1339
URL:
http://jira.jboss.com/jira/browse/JBPM-1339
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 alpha2
--
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