public abstract class ScopeImpl extends CoreActivity implements PvmScope
flow scope is this scope
- event listener activities (activities for which the event scope is this scope.| Modifier and Type | Class and Description |
|---|---|
static interface |
ScopeImpl.BacklogErrorCallback
Represents the backlog error callback interface.
|
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,ScopeImpl.BacklogErrorCallback> |
BACKLOG
The key identifies the activity which is referenced but not read yet.
|
protected Set<ActivityImpl> |
eventActivities
activities for which this is the event scope
|
protected List<ActivityImpl> |
flowActivities
The activities for which the flow scope is this scope
|
protected boolean |
isSubProcessScope |
protected Map<String,ActivityImpl> |
namedFlowActivities |
protected ProcessDefinitionImpl |
processDefinition |
ioMappingbuiltInListeners, builtInVariableListeners, id, listeners, name, properties, variableListeners| Constructor and Description |
|---|
ScopeImpl(String id,
ProcessDefinitionImpl processDefinition) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExecutionListener(String eventName,
ExecutionListener executionListener)
Deprecated.
|
void |
addExecutionListener(String eventName,
ExecutionListener executionListener,
int index)
Deprecated.
|
void |
addToBacklog(String activityRef,
ScopeImpl.BacklogErrorCallback callback)
Add's the given activity reference and the error callback to the backlog.
|
boolean |
contains(ActivityImpl activity) |
ActivityImpl |
createActivity(String activityId) |
ActivityImpl |
findActivity(String activityId)
searches for the activity recursively
|
ActivityImpl |
findActivityAtLevelOfSubprocess(String activityId)
Finds an activity at the same level of subprocess.
|
TransitionImpl |
findTransition(String transitionId)
Recursively finds a transition.
|
List<ActivityImpl> |
getActivities()
Returns the flow activities of this scope.
|
Collection<ScopeImpl.BacklogErrorCallback> |
getBacklogErrorCallbacks()
Returns the backlog error callback's.
|
ActivityImpl |
getChildActivity(String activityId)
searches for the activity locally
|
Set<ActivityImpl> |
getEventActivities() |
Map<String,List<ExecutionListener>> |
getExecutionListeners()
Deprecated.
|
List<ExecutionListener> |
getExecutionListeners(String eventName)
Deprecated.
|
ProcessDefinitionImpl |
getProcessDefinition()
The process definition scope, root of the scope hierarchy.
|
boolean |
isAncestorFlowScopeOf(ScopeImpl other) |
boolean |
isBacklogEmpty()
Returns true if the backlog is empty.
|
boolean |
isSubProcessScope()
Indicates whether this scope is a sub process scope.
|
void |
setSubProcessScope(boolean isSubProcessScope) |
createActivity, getActivityBehavior, getIoMapping, setIoMapping, toStringaddBuiltInListener, addBuiltInListener, addBuiltInVariableListener, addBuiltInVariableListener, addListener, addListener, addListenerToMap, addVariableListener, addVariableListener, getBuiltInListeners, getBuiltInListeners, getBuiltInVariableListeners, getBuiltInVariableListenersLocal, getId, getListeners, getListeners, getName, getProperties, getProperty, getVariableListeners, getVariableListenersLocal, setId, setName, setProperties, setPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEventScope, getFlowScope, getLevelOfSubprocessScope, isScopegetId, getProperties, getPropertyprotected boolean isSubProcessScope
protected List<ActivityImpl> flowActivities
protected Map<String,ActivityImpl> namedFlowActivities
protected Set<ActivityImpl> eventActivities
protected ProcessDefinitionImpl processDefinition
protected final Map<String,ScopeImpl.BacklogErrorCallback> BACKLOG
public ScopeImpl(String id, ProcessDefinitionImpl processDefinition)
public ActivityImpl findActivity(String activityId)
CoreActivityfindActivity in interface PvmScopefindActivity in class CoreActivityactivityId - the id of the activity to find.public TransitionImpl findTransition(String transitionId)
PvmScopefindTransition in interface PvmScopetransitionId - the transiton to findpublic ActivityImpl findActivityAtLevelOfSubprocess(String activityId)
PvmScopefindActivityAtLevelOfSubprocess in interface PvmScopeactivityId - the id of the activity to find.public ActivityImpl getChildActivity(String activityId)
getChildActivity in class CoreActivitypublic Collection<ScopeImpl.BacklogErrorCallback> getBacklogErrorCallbacks()
public boolean isBacklogEmpty()
public void addToBacklog(String activityRef, ScopeImpl.BacklogErrorCallback callback)
activityRef - the activity reference which is not read until nowcallback - the error callback which should called if activity will not be readpublic ActivityImpl createActivity(String activityId)
createActivity in class CoreActivitypublic boolean isAncestorFlowScopeOf(ScopeImpl other)
public boolean contains(ActivityImpl activity)
@Deprecated public List<ExecutionListener> getExecutionListeners(String eventName)
@Deprecated public void addExecutionListener(String eventName, ExecutionListener executionListener)
@Deprecated public void addExecutionListener(String eventName, ExecutionListener executionListener, int index)
@Deprecated public Map<String,List<ExecutionListener>> getExecutionListeners()
public List<ActivityImpl> getActivities()
PvmScopeflow scope.getActivities in interface PvmScopegetActivities in class CoreActivitypublic Set<ActivityImpl> getEventActivities()
public boolean isSubProcessScope()
PvmScopeisSubProcessScope in interface PvmScopepublic void setSubProcessScope(boolean isSubProcessScope)
public ProcessDefinitionImpl getProcessDefinition()
PvmProcessElementgetProcessDefinition in interface PvmProcessElementCopyright © 2021. All rights reserved.