Class ActivityInstanceImpl
java.lang.Object
org.camunda.bpm.engine.impl.persistence.entity.ProcessElementInstanceImpl
org.camunda.bpm.engine.impl.persistence.entity.ActivityInstanceImpl
- All Implemented Interfaces:
ActivityInstance
,ProcessElementInstance
- Author:
- Daniel Meyer
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
protected ActivityInstance[]
protected TransitionInstance[]
protected String[]
protected String[]
protected Incident[]
protected static final ActivityInstance[]
protected static final TransitionInstance[]
Fields inherited from class org.camunda.bpm.engine.impl.persistence.entity.ProcessElementInstanceImpl
id, NO_IDS, parentActivityInstanceId, processDefinitionId, processInstanceId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
collectActivityInstances
(String activityId, List<ActivityInstance> instances) protected void
collectTransitionInstances
(String activityId, List<TransitionInstance> instances) the id of the activitygetActivityInstances
(String activityId) all descendant (children, grandchildren, etc.) activity instances that are instances of the supplied activitythe name of the activityType of the activity, corresponds to BPMN element name in XML (e.g.Returns the child activity instances.Returns the child transition instances.String[]
the list of executions that are currently waiting in this activity instanceString[]
the ids of currently open incidentsIncident[]
the list of currently open incidentsgetTransitionInstances
(String activityId) all descendant (children, grandchildren, etc.) transition instances that are leaving or entering the supplied activityvoid
setActivityId
(String activityId) void
setActivityName
(String activityName) void
setActivityType
(String activityType) void
setBusinessKey
(String businessKey) void
setChildActivityInstances
(ActivityInstance[] childInstances) void
setChildTransitionInstances
(TransitionInstance[] childTransitionInstances) void
setExecutionIds
(String[] executionIds) void
setIncidentIds
(String[] incidentIds) void
setIncidents
(Incident[] incidents) toString()
protected void
writeTransition
(TransitionInstance transition, StringWriter writer, String prefix, boolean isTail) protected void
writeTree
(StringWriter writer, String prefix, boolean isTail) Methods inherited from class org.camunda.bpm.engine.impl.persistence.entity.ProcessElementInstanceImpl
getId, getParentActivityInstanceId, getProcessDefinitionId, getProcessInstanceId, setId, setParentActivityInstanceId, setProcessDefinitionId, setProcessInstanceId
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.camunda.bpm.engine.runtime.ProcessElementInstance
getId, getParentActivityInstanceId, getProcessDefinitionId, getProcessInstanceId
-
Field Details
-
NO_ACTIVITY_INSTANCES
-
NO_TRANSITION_INSTANCES
-
businessKey
-
activityId
-
activityName
-
activityType
-
childActivityInstances
-
childTransitionInstances
-
executionIds
-
incidentIds
-
incidents
-
-
Constructor Details
-
ActivityInstanceImpl
public ActivityInstanceImpl()
-
-
Method Details
-
getChildActivityInstances
Description copied from interface:ActivityInstance
Returns the child activity instances. Returns an empty list if there are no child instances- Specified by:
getChildActivityInstances
in interfaceActivityInstance
-
setChildActivityInstances
-
getBusinessKey
-
setBusinessKey
-
getActivityId
Description copied from interface:ActivityInstance
the id of the activity- Specified by:
getActivityId
in interfaceActivityInstance
-
setActivityId
-
getExecutionIds
Description copied from interface:ActivityInstance
the list of executions that are currently waiting in this activity instance- Specified by:
getExecutionIds
in interfaceActivityInstance
-
setExecutionIds
-
getChildTransitionInstances
Description copied from interface:ActivityInstance
Returns the child transition instances. Returns an empty list if there are no child transition instances- Specified by:
getChildTransitionInstances
in interfaceActivityInstance
-
setChildTransitionInstances
-
getActivityType
Description copied from interface:ActivityInstance
Type of the activity, corresponds to BPMN element name in XML (e.g. 'userTask'). The type of the Root activity instance (the one corresponding to the process instance will be 'processDefinition'.- Specified by:
getActivityType
in interfaceActivityInstance
-
setActivityType
-
getActivityName
Description copied from interface:ActivityInstance
the name of the activity- Specified by:
getActivityName
in interfaceActivityInstance
-
setActivityName
-
getIncidentIds
Description copied from interface:ActivityInstance
the ids of currently open incidents- Specified by:
getIncidentIds
in interfaceActivityInstance
-
setIncidentIds
-
getIncidents
Description copied from interface:ActivityInstance
the list of currently open incidents- Specified by:
getIncidents
in interfaceActivityInstance
-
setIncidents
-
writeTree
-
writeTransition
protected void writeTransition(TransitionInstance transition, StringWriter writer, String prefix, boolean isTail) -
toString
- Overrides:
toString
in classProcessElementInstanceImpl
-
getActivityInstances
Description copied from interface:ActivityInstance
all descendant (children, grandchildren, etc.) activity instances that are instances of the supplied activity- Specified by:
getActivityInstances
in interfaceActivityInstance
-
collectActivityInstances
-
getTransitionInstances
Description copied from interface:ActivityInstance
all descendant (children, grandchildren, etc.) transition instances that are leaving or entering the supplied activity- Specified by:
getTransitionInstances
in interfaceActivityInstance
-
collectTransitionInstances
-