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 |
ioMapping
builtInListeners, 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, toString
addBuiltInListener, addBuiltInListener, addBuiltInVariableListener, addBuiltInVariableListener, addListener, addListener, addListenerToMap, addVariableListener, addVariableListener, getBuiltInListeners, getBuiltInListeners, getBuiltInVariableListeners, getBuiltInVariableListenersLocal, getId, getListeners, getListeners, getName, getProperties, getProperty, getVariableListeners, getVariableListenersLocal, setId, setName, setProperties, setProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEventScope, getFlowScope, getLevelOfSubprocessScope, isScope
getId, getProperties, getProperty
protected 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)
CoreActivity
findActivity
in interface PvmScope
findActivity
in class CoreActivity
activityId
- the id of the activity to find.public TransitionImpl findTransition(String transitionId)
PvmScope
findTransition
in interface PvmScope
transitionId
- the transiton to findpublic ActivityImpl findActivityAtLevelOfSubprocess(String activityId)
PvmScope
findActivityAtLevelOfSubprocess
in interface PvmScope
activityId
- the id of the activity to find.public ActivityImpl getChildActivity(String activityId)
getChildActivity
in class CoreActivity
public 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 CoreActivity
public 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()
PvmScope
flow scope
.getActivities
in interface PvmScope
getActivities
in class CoreActivity
public Set<ActivityImpl> getEventActivities()
public boolean isSubProcessScope()
PvmScope
isSubProcessScope
in interface PvmScope
public void setSubProcessScope(boolean isSubProcessScope)
public ProcessDefinitionImpl getProcessDefinition()
PvmProcessElement
getProcessDefinition
in interface PvmProcessElement
Copyright © 2020. All rights reserved.