public class ActivityInstanceImpl extends ProcessElementInstanceImpl implements ActivityInstance
Modifier and Type | Field and 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 |
id, NO_IDS, parentActivityInstanceId, processDefinitionId, processInstanceId
Constructor and Description |
---|
ActivityInstanceImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
collectActivityInstances(String activityId,
List<ActivityInstance> instances) |
protected void |
collectTransitionInstances(String activityId,
List<TransitionInstance> instances) |
String |
getActivityId()
the id of the activity
|
ActivityInstance[] |
getActivityInstances(String activityId)
all descendant (children, grandchildren, etc.) activity instances that are instances of the supplied activity
|
String |
getActivityName()
the name of the activity
|
String |
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 instance
|
String[] |
getIncidentIds()
the ids of currently open incidents
|
Incident[] |
getIncidents()
the list of currently open incidents
|
TransitionInstance[] |
getTransitionInstances(String activityId)
all descendant (children, grandchildren, etc.) transition instances that are leaving or entering the supplied activity
|
void |
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) |
getId, getParentActivityInstanceId, getProcessDefinitionId, getProcessInstanceId, setId, setParentActivityInstanceId, setProcessDefinitionId, setProcessInstanceId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId, getParentActivityInstanceId, getProcessDefinitionId, getProcessInstanceId
protected static final ActivityInstance[] NO_ACTIVITY_INSTANCES
protected static final TransitionInstance[] NO_TRANSITION_INSTANCES
protected String businessKey
protected String activityId
protected String activityName
protected String activityType
protected ActivityInstance[] childActivityInstances
protected TransitionInstance[] childTransitionInstances
protected String[] executionIds
protected String[] incidentIds
protected Incident[] incidents
public ActivityInstance[] getChildActivityInstances()
ActivityInstance
getChildActivityInstances
in interface ActivityInstance
public void setChildActivityInstances(ActivityInstance[] childInstances)
public String getBusinessKey()
public void setBusinessKey(String businessKey)
public String getActivityId()
ActivityInstance
getActivityId
in interface ActivityInstance
public void setActivityId(String activityId)
public String[] getExecutionIds()
ActivityInstance
getExecutionIds
in interface ActivityInstance
public void setExecutionIds(String[] executionIds)
public TransitionInstance[] getChildTransitionInstances()
ActivityInstance
getChildTransitionInstances
in interface ActivityInstance
public void setChildTransitionInstances(TransitionInstance[] childTransitionInstances)
public String getActivityType()
ActivityInstance
getActivityType
in interface ActivityInstance
public void setActivityType(String activityType)
public String getActivityName()
ActivityInstance
getActivityName
in interface ActivityInstance
public void setActivityName(String activityName)
public String[] getIncidentIds()
ActivityInstance
getIncidentIds
in interface ActivityInstance
public void setIncidentIds(String[] incidentIds)
public Incident[] getIncidents()
ActivityInstance
getIncidents
in interface ActivityInstance
public void setIncidents(Incident[] incidents)
protected void writeTree(StringWriter writer, String prefix, boolean isTail)
protected void writeTransition(TransitionInstance transition, StringWriter writer, String prefix, boolean isTail)
public String toString()
toString
in class ProcessElementInstanceImpl
public ActivityInstance[] getActivityInstances(String activityId)
ActivityInstance
getActivityInstances
in interface ActivityInstance
protected void collectActivityInstances(String activityId, List<ActivityInstance> instances)
public TransitionInstance[] getTransitionInstances(String activityId)
ActivityInstance
getTransitionInstances
in interface ActivityInstance
protected void collectTransitionInstances(String activityId, List<TransitionInstance> instances)
Copyright © 2021. All rights reserved.