org.smartcomps.twister.engine.priv.core.dynamic
Class ExecutionContextFactory
java.lang.Object
|
+--org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContextFactory
- public class ExecutionContextFactory
- extends java.lang.Object
A factory for ExecutionContext creation, finding and modification.
Method Summary |
static org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext |
createExecutionContext(org.smartcomps.twister.engine.priv.core.definition.Activity generatingActivity,
org.smartcomps.twister.engine.priv.core.dynamic.ProcessInstance processInstance)
|
static org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext |
createExecutionContext(org.smartcomps.twister.engine.priv.core.definition.Activity generatingActivity,
org.smartcomps.twister.engine.priv.core.dynamic.StructuredEC containerEC)
Won't work if the activity instance implements two Activity interfaces. |
static org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext |
findECById(java.lang.Long ecId)
|
static org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext |
findECForActivityInInstance(org.smartcomps.twister.engine.priv.core.dynamic.ProcessInstance instance,
org.smartcomps.twister.engine.priv.core.definition.Activity activity)
Returns the execution context created from the provided activity and situated
in the containment hierarchy of the provided process instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExecutionContextFactory
public ExecutionContextFactory()
createExecutionContext
public static org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext createExecutionContext(org.smartcomps.twister.engine.priv.core.definition.Activity generatingActivity,
org.smartcomps.twister.engine.priv.core.dynamic.StructuredEC containerEC)
throws DBSessionException
- Won't work if the activity instance implements two Activity interfaces.
- Parameters:
generatingActivity
- containerEC
-
- Returns:
-
- Throws:
DBSessionException
createExecutionContext
public static org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext createExecutionContext(org.smartcomps.twister.engine.priv.core.definition.Activity generatingActivity,
org.smartcomps.twister.engine.priv.core.dynamic.ProcessInstance processInstance)
throws DBSessionException
DBSessionException
findECById
public static org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext findECById(java.lang.Long ecId)
throws DBSessionException,
FinderException
DBSessionException
FinderException
findECForActivityInInstance
public static org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext findECForActivityInInstance(org.smartcomps.twister.engine.priv.core.dynamic.ProcessInstance instance,
org.smartcomps.twister.engine.priv.core.definition.Activity activity)
throws FinderException
- Returns the execution context created from the provided activity and situated
in the containment hierarchy of the provided process instance.
- Parameters:
instance
- activity
-
- Returns:
-
FinderException
Copyright © 2003 SmartComps. All Rights Reserved.