Package org.camunda.bpm.engine.runtime
Interface ActivityInstance
-
- All Superinterfaces:
ProcessElementInstance
- All Known Implementing Classes:
ActivityInstanceImpl
public interface ActivityInstance extends ProcessElementInstance
An activity instance represents an instance of an activity.
For documentation, see
RuntimeService.getActivityInstance(String)
- Author:
- Daniel Meyer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.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 activity-
Methods inherited from interface org.camunda.bpm.engine.runtime.ProcessElementInstance
getId, getParentActivityInstanceId, getProcessDefinitionId, getProcessInstanceId
-
-
-
-
Method Detail
-
getActivityId
String getActivityId()
the id of the activity
-
getActivityName
String getActivityName()
the name of the activity
-
getActivityType
String getActivityType()
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'.
-
getChildActivityInstances
ActivityInstance[] getChildActivityInstances()
Returns the child activity instances. Returns an empty list if there are no child instances
-
getChildTransitionInstances
TransitionInstance[] getChildTransitionInstances()
Returns the child transition instances. Returns an empty list if there are no child transition instances
-
getExecutionIds
String[] getExecutionIds()
the list of executions that are currently waiting in this activity instance
-
getActivityInstances
ActivityInstance[] getActivityInstances(String activityId)
all descendant (children, grandchildren, etc.) activity instances that are instances of the supplied activity
-
getTransitionInstances
TransitionInstance[] getTransitionInstances(String activityId)
all descendant (children, grandchildren, etc.) transition instances that are leaving or entering the supplied activity
-
getIncidentIds
String[] getIncidentIds()
the ids of currently open incidents
-
getIncidents
Incident[] getIncidents()
the list of currently open incidents
-
-