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
public class ActivityInstanceImpl extends ProcessElementInstanceImpl implements ActivityInstance
- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
activityId
protected java.lang.String
activityName
protected java.lang.String
activityType
protected java.lang.String
businessKey
protected ActivityInstance[]
childActivityInstances
protected TransitionInstance[]
childTransitionInstances
protected java.lang.String[]
executionIds
protected java.lang.String[]
incidentIds
protected Incident[]
incidents
protected static ActivityInstance[]
NO_ACTIVITY_INSTANCES
protected static TransitionInstance[]
NO_TRANSITION_INSTANCES
-
Fields inherited from class org.camunda.bpm.engine.impl.persistence.entity.ProcessElementInstanceImpl
id, NO_IDS, parentActivityInstanceId, processDefinitionId, processInstanceId
-
-
Constructor Summary
Constructors Constructor Description ActivityInstanceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
collectActivityInstances(java.lang.String activityId, java.util.List<ActivityInstance> instances)
protected void
collectTransitionInstances(java.lang.String activityId, java.util.List<TransitionInstance> instances)
java.lang.String
getActivityId()
the id of the activityActivityInstance[]
getActivityInstances(java.lang.String activityId)
all descendant (children, grandchildren, etc.) activity instances that are instances of the supplied activityjava.lang.String
getActivityName()
the name of the activityjava.lang.String
getActivityType()
Type of the activity, corresponds to BPMN element name in XML (e.g.java.lang.String
getBusinessKey()
ActivityInstance[]
getChildActivityInstances()
Returns the child activity instances.TransitionInstance[]
getChildTransitionInstances()
Returns the child transition instances.java.lang.String[]
getExecutionIds()
the list of executions that are currently waiting in this activity instancejava.lang.String[]
getIncidentIds()
the ids of currently open incidentsIncident[]
getIncidents()
the list of currently open incidentsTransitionInstance[]
getTransitionInstances(java.lang.String activityId)
all descendant (children, grandchildren, etc.) transition instances that are leaving or entering the supplied activityvoid
setActivityId(java.lang.String activityId)
void
setActivityName(java.lang.String activityName)
void
setActivityType(java.lang.String activityType)
void
setBusinessKey(java.lang.String businessKey)
void
setChildActivityInstances(ActivityInstance[] childInstances)
void
setChildTransitionInstances(TransitionInstance[] childTransitionInstances)
void
setExecutionIds(java.lang.String[] executionIds)
void
setIncidentIds(java.lang.String[] incidentIds)
void
setIncidents(Incident[] incidents)
java.lang.String
toString()
protected void
writeTransition(TransitionInstance transition, java.io.StringWriter writer, java.lang.String prefix, boolean isTail)
protected void
writeTree(java.io.StringWriter writer, java.lang.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 Detail
-
NO_ACTIVITY_INSTANCES
protected static final ActivityInstance[] NO_ACTIVITY_INSTANCES
-
NO_TRANSITION_INSTANCES
protected static final TransitionInstance[] NO_TRANSITION_INSTANCES
-
businessKey
protected java.lang.String businessKey
-
activityId
protected java.lang.String activityId
-
activityName
protected java.lang.String activityName
-
activityType
protected java.lang.String activityType
-
childActivityInstances
protected ActivityInstance[] childActivityInstances
-
childTransitionInstances
protected TransitionInstance[] childTransitionInstances
-
executionIds
protected java.lang.String[] executionIds
-
incidentIds
protected java.lang.String[] incidentIds
-
incidents
protected Incident[] incidents
-
-
Method Detail
-
getChildActivityInstances
public ActivityInstance[] 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
public void setChildActivityInstances(ActivityInstance[] childInstances)
-
getBusinessKey
public java.lang.String getBusinessKey()
-
setBusinessKey
public void setBusinessKey(java.lang.String businessKey)
-
getActivityId
public java.lang.String getActivityId()
Description copied from interface:ActivityInstance
the id of the activity- Specified by:
getActivityId
in interfaceActivityInstance
-
setActivityId
public void setActivityId(java.lang.String activityId)
-
getExecutionIds
public java.lang.String[] getExecutionIds()
Description copied from interface:ActivityInstance
the list of executions that are currently waiting in this activity instance- Specified by:
getExecutionIds
in interfaceActivityInstance
-
setExecutionIds
public void setExecutionIds(java.lang.String[] executionIds)
-
getChildTransitionInstances
public TransitionInstance[] 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
public void setChildTransitionInstances(TransitionInstance[] childTransitionInstances)
-
getActivityType
public java.lang.String 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
public void setActivityType(java.lang.String activityType)
-
getActivityName
public java.lang.String getActivityName()
Description copied from interface:ActivityInstance
the name of the activity- Specified by:
getActivityName
in interfaceActivityInstance
-
setActivityName
public void setActivityName(java.lang.String activityName)
-
getIncidentIds
public java.lang.String[] getIncidentIds()
Description copied from interface:ActivityInstance
the ids of currently open incidents- Specified by:
getIncidentIds
in interfaceActivityInstance
-
setIncidentIds
public void setIncidentIds(java.lang.String[] incidentIds)
-
getIncidents
public Incident[] getIncidents()
Description copied from interface:ActivityInstance
the list of currently open incidents- Specified by:
getIncidents
in interfaceActivityInstance
-
setIncidents
public void setIncidents(Incident[] incidents)
-
writeTree
protected void writeTree(java.io.StringWriter writer, java.lang.String prefix, boolean isTail)
-
writeTransition
protected void writeTransition(TransitionInstance transition, java.io.StringWriter writer, java.lang.String prefix, boolean isTail)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classProcessElementInstanceImpl
-
getActivityInstances
public ActivityInstance[] getActivityInstances(java.lang.String activityId)
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
protected void collectActivityInstances(java.lang.String activityId, java.util.List<ActivityInstance> instances)
-
getTransitionInstances
public TransitionInstance[] getTransitionInstances(java.lang.String activityId)
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
protected void collectTransitionInstances(java.lang.String activityId, java.util.List<TransitionInstance> instances)
-
-