]
Thomas Diesler updated JBPM-1324:
---------------------------------
Fix Version/s: API Unscheduled
(was: API 1.0.0 Alpha1)
Engine Shutdown
---------------
Key: JBPM-1324
URL:
https://jira.jboss.org/jira/browse/JBPM-1324
Project: JBoss jBPM
Issue Type: Task
Security Level: Public(Everyone can see)
Components: API
Reporter: Thomas Diesler
Fix For: API Unscheduled
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: