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 String
activityId
protected String
activityName
protected String
activityType
protected String
businessKey
protected ActivityInstance[]
childActivityInstances
protected TransitionInstance[]
childTransitionInstances
protected String[]
executionIds
protected 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(String activityId, List<ActivityInstance> instances)
protected void
collectTransitionInstances(String activityId, List<TransitionInstance> instances)
String
getActivityId()
the id of the activityActivityInstance[]
getActivityInstances(String activityId)
all descendant (children, grandchildren, etc.) activity instances that are instances of the supplied activityString
getActivityName()
the name of the activityString
getActivityType()
Type of the activity, corresponds to BPMN element name in XML (e.g.String
getBusinessKey()
ActivityInstance[]
getChildActivityInstances()
Returns the child activity instances.TransitionInstance[]
getChildTransitionInstances()
Returns the child transition instances.String[]
getExecutionIds()
the list of executions that are currently waiting in this activity instanceString[]
getIncidentIds()
the ids of currently open incidentsIncident[]
getIncidents()
the list of currently open incidentsTransitionInstance[]
getTransitionInstances(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)
String
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 Detail
-
NO_ACTIVITY_INSTANCES
protected static final ActivityInstance[] NO_ACTIVITY_INSTANCES
-
NO_TRANSITION_INSTANCES
protected static final TransitionInstance[] NO_TRANSITION_INSTANCES
-
businessKey
protected String businessKey
-
activityId
protected String activityId
-
activityName
protected String activityName
-
activityType
protected String activityType
-
childActivityInstances
protected ActivityInstance[] childActivityInstances
-
childTransitionInstances
protected TransitionInstance[] childTransitionInstances
-
executionIds
protected String[] executionIds
-
incidentIds
protected 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 String getBusinessKey()
-
setBusinessKey
public void setBusinessKey(String businessKey)
-
getActivityId
public String getActivityId()
Description copied from interface:ActivityInstance
the id of the activity- Specified by:
getActivityId
in interfaceActivityInstance
-
setActivityId
public void setActivityId(String activityId)
-
getExecutionIds
public 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(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 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(String activityType)
-
getActivityName
public String getActivityName()
Description copied from interface:ActivityInstance
the name of the activity- Specified by:
getActivityName
in interfaceActivityInstance
-
setActivityName
public void setActivityName(String activityName)
-
getIncidentIds
public String[] getIncidentIds()
Description copied from interface:ActivityInstance
the ids of currently open incidents- Specified by:
getIncidentIds
in interfaceActivityInstance
-
setIncidentIds
public void setIncidentIds(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(StringWriter writer, String prefix, boolean isTail)
-
writeTransition
protected void writeTransition(TransitionInstance transition, StringWriter writer, String prefix, boolean isTail)
-
toString
public String toString()
- Overrides:
toString
in classProcessElementInstanceImpl
-
getActivityInstances
public ActivityInstance[] getActivityInstances(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(String activityId, List<ActivityInstance> instances)
-
getTransitionInstances
public TransitionInstance[] getTransitionInstances(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(String activityId, List<TransitionInstance> instances)
-
-