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 |
id, 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
|
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) |
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 String businessKey
protected String activityId
protected String activityName
protected String activityType
protected ActivityInstance[] childActivityInstances
protected TransitionInstance[] childTransitionInstances
protected String[] executionIds
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)
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 © 2019. All rights reserved.