org.camunda.bpm.engine.runtime
Interface TransitionInstance

All Superinterfaces:
ProcessElementInstance
All Known Implementing Classes:
TransitionInstanceImpl

public interface TransitionInstance
extends ProcessElementInstance

A transition instance represents an execution token that has just completed a transition (sequence flow in BPMN) or is about to take an outgoing transition. This happens before starting or after leaving an activity. The execution token is not actually executing the activity that this instance points to which is why the corresponding activity instance does not exist.

Transition instances are the result of asynchronous continuations, asyncBefore or asyncAfter.

Author:
Daniel Meyer, Thorben Lindhauer

Method Summary
 String getActivityId()
          returns the id of the activity a transition is made from/to
 String getActivityName()
          returns the name of the activity a transition is made from/to
 String getActivityType()
          returns the type of the activity a transition is made from/to.
 String getExecutionId()
          returns the id of of the execution that is executing this transition instance
 String getTargetActivityId()
          Deprecated. a transition instances represents a transition to or from an activity; use getActivityId() instead.
 
Methods inherited from interface org.camunda.bpm.engine.runtime.ProcessElementInstance
getId, getParentActivityInstanceId, getProcessDefinitionId, getProcessInstanceId
 

Method Detail

getTargetActivityId

@Deprecated
String getTargetActivityId()
Deprecated. a transition instances represents a transition to or from an activity; use getActivityId() instead.

returns the id of the target activity


getActivityId

String getActivityId()
returns the id of the activity a transition is made from/to


getExecutionId

String getExecutionId()
returns the id of of the execution that is executing this transition instance


getActivityType

String getActivityType()
returns the type of the activity a transition is made from/to. Corresponds to BPMN element name in XML (e.g. 'userTask'). The type of the root activity instance (the one corresponding to the process instance) is 'processDefinition'.


getActivityName

String getActivityName()
returns the name of the activity a transition is made from/to



Copyright © 2016 camunda services GmbH. All rights reserved.