TransitionManager
WfProcess
If log level is set to DEBUG messages about intermediate evaluation results will be generated.
DEBUG
325326327328329330331332333334335336337
* </ul> * @exception Exception if an error occurs */ public void testTransitionManager() throws Exception { assertTrue(transitionsLocal().size() > 0); TransitionManager tm = transitionManager(); assertTrue(tm != null); Collection a = steps(); // Test allOpenableActivities() Collection c = tm.startableActivities(); // only the first activity should be openable assertTrue(c.size() == 1); }
346347348349350351352353354355356357
throws CannotStartException, AlreadyRunningException { // set process state super.start(); // start all activities TransitionManager tm = transitionManager(); Collection activitiesToStart = tm.startableActivities(); Iterator it = activitiesToStart.iterator(); while (it.hasNext()) { WfActivityLocal a = (WfActivityLocal)it.next(); try { // Due to concurrency, an activity