]
Thomas Diesler resolved JBPM-1324.
----------------------------------
Resolution: Rejected
Reject all API and Pattern issues
Engine Shutdown
---------------
Key: JBPM-1324
URL:
https://jira.jboss.org/jira/browse/JBPM-1324
Project: JBoss jBPM
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: API
Reporter: Thomas Diesler
Support prepareForShutdown and cancelShutdown on the ProcessEngine.
public void testCreateProcess() throws Exception
{
// Create a Process through the ProcessManager
ProcessManager pm = ProcessManager.locateProcessManager();
assertNotNull("ProcessDefinition expected", pm.createProcess(jpdlURL));
// Try to create a ProcessDefinition during shutdown
try
{
engine.prepareForShutdown();
pm.createProcess(jpdlURL);
}
catch (EngineShutdownException ex)
{
assertEquals("Cannot create new Process while engine is shutting down",
ex.getMessage());
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: