org.camunda.bpm.engine.impl.cmmn.execution
Class CmmnExecution

java.lang.Object
  extended by org.camunda.bpm.engine.impl.core.variable.CoreVariableScope
      extended by org.camunda.bpm.engine.impl.core.instance.CoreExecution
          extended by org.camunda.bpm.engine.impl.cmmn.execution.CmmnExecution
All Implemented Interfaces:
Serializable, BaseDelegateExecution, CmmnModelExecutionContext, DelegateCaseExecution, ProcessEngineServicesAware, VariableScope, CmmnActivityExecution, CmmnCaseInstance
Direct Known Subclasses:
CaseExecutionEntity, CaseExecutionImpl

public abstract class CmmnExecution
extends CoreExecution
implements CmmnCaseInstance

Author:
Roman Smirnov
See Also:
Serialized Form

Field Summary
protected  CmmnActivity activity
          current activity
protected  CmmnCaseDefinition caseDefinition
           
protected  int currentState
           
protected  CmmnActivity nextActivity
          the activity which is to be started next
protected  int previousState
           
protected  boolean required
           
 
Fields inherited from class org.camunda.bpm.engine.impl.core.instance.CoreExecution
businessKey, eventName, eventSource, id, listenerIndex, skipCustomListeners
 
Fields inherited from class org.camunda.bpm.engine.impl.core.variable.CoreVariableScope
cachedElContext
 
Constructor Summary
CmmnExecution()
           
 
Method Summary
 void close()
          Transition to CaseExecutionState.CLOSED state when no further work or modifications should be allowed for this case instance.
 void complete()
          Transition to CaseExecutionState.COMPLETED state.
 void create()
          This case instance transitions to ACTIVE state.
 void create(Map<String,Object> variables)
          This case instance transitions to ACTIVE state.
 void create(String businessKey)
          This case instance transitions to ACTIVE state.
 void create(String businessKey, Map<String,Object> variables)
          This case instance transitions to ACTIVE state.
protected abstract  CmmnExecution createCaseExecution(CmmnActivity activity)
           
 void createChildExecutions(List<CmmnActivity> activities)
          Creates new child case executions for each given CmmnActivity.
abstract  CmmnExecution createSubCaseInstance(CmmnCaseDefinition caseDefinition)
          Creates a new sub case instance.
abstract  PvmExecutionImpl createSubProcessInstance(PvmProcessDefinition processDefinition)
          Creates a new sub process instance.
 void deleteCascade()
           
 void disable()
          Transition to state.
 void enable()
          Transition to CaseExecutionState.ENABLED state.
 void exit()
          Transition to CaseExecutionState.TERMINATED state when the parent Stage transition to CaseExecutionState.TERMINATED state or when the exit criteria of the associated Stage or Task becomes true.
 CmmnExecution findCaseExecution(String activityId)
          Find a case execution by the given activityId.
 CmmnActivity getActivity()
          ensures initialization and returns the activity
 String getCaseBusinessKey()
           
 CmmnCaseDefinition getCaseDefinition()
           
abstract  List<? extends CmmnExecution> getCaseExecutions()
          Returns a List of child case executions.
protected abstract  List<? extends CmmnExecution> getCaseExecutionsInternal()
           
abstract  CmmnExecution getCaseInstance()
          ensures initialization and returns the process instance.
 String getCaseInstanceId()
          ensures initialization and returns the process instance.
 CaseExecutionState getCurrentState()
          Returns the current state of this case execution.
 CmmnActivity getNextActivity()
           
abstract  CmmnExecution getParent()
          ensures initialization and returns the parent
 CoreVariableScope getParentVariableScope()
           
 int getPrevious()
           
 CaseExecutionState getPreviousState()
          Returns the previous state of this case execution.
 int getState()
           
abstract  CmmnExecution getSubCaseInstance()
           
abstract  PvmExecutionImpl getSubProcessInstance()
           
abstract  CmmnExecution getSuperCaseExecution()
           
protected  String getToStringIdentity()
           
 boolean isActive()
           
 boolean isAvailable()
           
 boolean isCaseInstanceExecution()
          Returns true if this case execution is a case instance.
 boolean isClosed()
           
 boolean isCompleted()
           
 boolean isDisabled()
           
 boolean isEnabled()
           
 boolean isFailed()
           
 boolean isNew()
          Returns true iff:
CmmnActivityExecution.getCurrentState() == CaseExecutionState.NEW
 boolean isRequired()
          Returns to true, if this case execution is required.
 boolean isSuspended()
           
 boolean isTerminated()
           
 void manualComplete()
          Transition to CaseExecutionState.COMPLETED state.
 void manualStart()
          Transition to CaseExecutionState.ACTIVE state.
protected abstract  CmmnExecution newCaseExecution()
           
 void occur()
          Transition to CaseExecutionState.COMPLETED state.
 void parentResume()
          Transition to the previous state (CaseExecutionState.AVAILABLE, CaseExecutionState.ENABLED, CaseExecutionState.DISABLED or CaseExecutionState.ACTIVE) when the parent Stage transitions out of CaseExecutionState.SUSPENDED.
 void parentSuspend()
          Transition to CaseExecutionState.SUSPENDED state when the parent Stage transition to CaseExecutionState.SUSPENDED state.
 void parentTerminate()
          Transition to CaseExecutionState.TERMINATED state when the parent Stage transition to CaseExecutionState.TERMINATED state.
 void reactivate()
          Transition to CaseExecutionState.ACTIVE state.
 void reenable()
          Transition to CaseExecutionState.ENABLED state.
 void remove()
          Removes this case execution from the parent case execution.
 void resume()
          Transition to either to CaseExecutionState.ACTIVE state, if this case execution is associated with a Stage or Task, or to CaseExecutionState#AVAILABE, if this case execution is associated with a EventListener or Milestone.
 void setActivity(CmmnActivity activity)
           
 void setCaseDefinition(CmmnCaseDefinition caseDefinition)
           
abstract  void setCaseInstance(CmmnExecution caseInstance)
           
 void setCurrentState(CaseExecutionState currentState)
          Sets the given state as the current state of this case execution.
 void setNextActivity(CmmnActivity nextActivity)
           
abstract  void setParent(CmmnExecution parent)
           
 void setPrevious(int previous)
           
 void setRequired(boolean required)
          Sets this case execution as required or not required.
 void setState(int state)
           
abstract  void setSubCaseInstance(CmmnExecution subCaseInstance)
           
abstract  void setSubProcessInstance(PvmExecutionImpl subProcessInstance)
           
abstract  void setSuperCaseExecution(CmmnExecution superCaseExecution)
           
 void start()
          Transition to CaseExecutionState.ACTIVE state.
 void suspend()
          Transition to CaseExecutionState.SUSPENDED state.
 void terminate()
          Transition to CaseExecutionState.TERMINATED state.
 String toString()
           
 
Methods inherited from class org.camunda.bpm.engine.impl.core.instance.CoreExecution
getBusinessKey, getEventName, getEventSource, getId, getListenerIndex, invokeListener, isSkipCustomListeners, performOperation, performOperationSync, setBusinessKey, setEventName, setEventSource, setId, setListenerIndex, setSkipCustomListeners
 
Methods inherited from class org.camunda.bpm.engine.impl.core.variable.CoreVariableScope
collectVariableInstances, collectVariableNames, collectVariables, createVariableInstance, createVariableLocal, createVariableLocal, createVariablesLocal, getCachedElContext, getSourceActivityVariableScope, getVariable, getVariableInstances, getVariableInstances, getVariableInstancesLocal, getVariableLocal, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, getVariableStore, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariable, removeVariableLocal, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setCachedElContext, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariables, setVariablesLocal, updateVariableInstance
 
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.delegate.DelegateCaseExecution
getActivityId, getActivityName, getCaseDefinitionId, getEventName, getId, getParentId
 
Methods inherited from interface org.camunda.bpm.engine.delegate.BaseDelegateExecution
getBusinessKey
 
Methods inherited from interface org.camunda.bpm.engine.delegate.VariableScope
getVariable, getVariableLocal, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setVariable, setVariableLocal, setVariables, setVariablesLocal
 
Methods inherited from interface org.camunda.bpm.engine.delegate.ProcessEngineServicesAware
getProcessEngineServices
 
Methods inherited from interface org.camunda.bpm.engine.delegate.CmmnModelExecutionContext
getCmmnModelElementInstance, getCmmnModelInstance
 

Field Detail

caseDefinition

protected transient CmmnCaseDefinition caseDefinition

activity

protected transient CmmnActivity activity
current activity


nextActivity

protected transient CmmnActivity nextActivity
the activity which is to be started next


required

protected boolean required

previousState

protected int previousState

currentState

protected int currentState
Constructor Detail

CmmnExecution

public CmmnExecution()
Method Detail

getCaseExecutions

public abstract List<? extends CmmnExecution> getCaseExecutions()
Description copied from interface: CmmnActivityExecution

Returns a List of child case executions. If this case execution has no child case executions an empty List will be returned.

Specified by:
getCaseExecutions in interface CmmnActivityExecution
Returns:
a List of child case executions.

getCaseExecutionsInternal

protected abstract List<? extends CmmnExecution> getCaseExecutionsInternal()

findCaseExecution

public CmmnExecution findCaseExecution(String activityId)
Description copied from interface: CmmnCaseInstance

Find a case execution by the given activityId.

Specified by:
findCaseExecution in interface CmmnCaseInstance
Parameters:
activityId - the id of the activity to which a case execution is associated.
Returns:
returns a case execution or null if a case execution could not be found.

getSubProcessInstance

public abstract PvmExecutionImpl getSubProcessInstance()

setSubProcessInstance

public abstract void setSubProcessInstance(PvmExecutionImpl subProcessInstance)

createSubProcessInstance

public abstract PvmExecutionImpl createSubProcessInstance(PvmProcessDefinition processDefinition)
Description copied from interface: CmmnActivityExecution

Creates a new sub process instance.

This case execution will be the super case execution of the created sub process instance.

Specified by:
createSubProcessInstance in interface CmmnActivityExecution
Parameters:
processDefinition - The PvmProcessDefinition of the subprocess.

getSubCaseInstance

public abstract CmmnExecution getSubCaseInstance()

setSubCaseInstance

public abstract void setSubCaseInstance(CmmnExecution subCaseInstance)

createSubCaseInstance

public abstract CmmnExecution createSubCaseInstance(CmmnCaseDefinition caseDefinition)
Description copied from interface: CmmnActivityExecution

Creates a new sub case instance.

This case execution will be the super case execution of the created sub case instance.

Specified by:
createSubCaseInstance in interface CmmnActivityExecution
Parameters:
caseDefinition - The CmmnCaseDefinition of the subprocess.

getSuperCaseExecution

public abstract CmmnExecution getSuperCaseExecution()

setSuperCaseExecution

public abstract void setSuperCaseExecution(CmmnExecution superCaseExecution)

getCaseBusinessKey

public String getCaseBusinessKey()
Specified by:
getCaseBusinessKey in interface DelegateCaseExecution

getCaseDefinition

public CmmnCaseDefinition getCaseDefinition()

setCaseDefinition

public void setCaseDefinition(CmmnCaseDefinition caseDefinition)

getCaseInstance

public abstract CmmnExecution getCaseInstance()
ensures initialization and returns the process instance.


setCaseInstance

public abstract void setCaseInstance(CmmnExecution caseInstance)

isCaseInstanceExecution

public boolean isCaseInstanceExecution()
Description copied from interface: CmmnActivityExecution

Returns true if this case execution is a case instance. If this case execution is not a case instance then false will be returned.

Specified by:
isCaseInstanceExecution in interface CmmnActivityExecution
Returns:
whether this case execution is a case instance or not.

getCaseInstanceId

public String getCaseInstanceId()
ensures initialization and returns the process instance.

Specified by:
getCaseInstanceId in interface DelegateCaseExecution

getParent

public abstract CmmnExecution getParent()
ensures initialization and returns the parent

Specified by:
getParent in interface CmmnActivityExecution
Returns:
a parent or null.

setParent

public abstract void setParent(CmmnExecution parent)

getActivity

public CmmnActivity getActivity()
ensures initialization and returns the activity

Specified by:
getActivity in interface CmmnActivityExecution
Returns:
the associated activity

setActivity

public void setActivity(CmmnActivity activity)

getNextActivity

public CmmnActivity getNextActivity()

setNextActivity

public void setNextActivity(CmmnActivity nextActivity)

getParentVariableScope

public CoreVariableScope getParentVariableScope()
Specified by:
getParentVariableScope in class CoreVariableScope

deleteCascade

public void deleteCascade()

remove

public void remove()
Description copied from interface: CmmnActivityExecution

Removes this case execution from the parent case execution.

Specified by:
remove in interface CmmnActivityExecution

isRequired

public boolean isRequired()
Description copied from interface: CmmnActivityExecution

Returns to true, if this case execution is required.

Specified by:
isRequired in interface CmmnActivityExecution
Returns:
true if this case execution is required.

setRequired

public void setRequired(boolean required)
Description copied from interface: CmmnActivityExecution

Sets this case execution as required or not required.

Specified by:
setRequired in interface CmmnActivityExecution
Parameters:
required - a boolean value whether this case execution is required or not required.

getCurrentState

public CaseExecutionState getCurrentState()
Description copied from interface: CmmnActivityExecution

Returns the current state of this case execution.

Specified by:
getCurrentState in interface CmmnActivityExecution
Returns:
the current state

setCurrentState

public void setCurrentState(CaseExecutionState currentState)
Description copied from interface: CmmnActivityExecution

Sets the given state as the current state of this case execution.

Specified by:
setCurrentState in interface CmmnActivityExecution
Parameters:
currentState - the current state to set

getState

public int getState()

setState

public void setState(int state)

isNew

public boolean isNew()
Description copied from interface: CmmnActivityExecution

Returns true iff:
CmmnActivityExecution.getCurrentState() == CaseExecutionState.NEW

Specified by:
isNew in interface CmmnActivityExecution
Returns:
whether this case execution has as current state CaseExecutionState.NEW

isAvailable

public boolean isAvailable()
Specified by:
isAvailable in interface DelegateCaseExecution

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface DelegateCaseExecution

isDisabled

public boolean isDisabled()
Specified by:
isDisabled in interface DelegateCaseExecution

isActive

public boolean isActive()
Specified by:
isActive in interface DelegateCaseExecution

isCompleted

public boolean isCompleted()
Specified by:
isCompleted in interface DelegateCaseExecution

isSuspended

public boolean isSuspended()
Specified by:
isSuspended in interface DelegateCaseExecution

isTerminated

public boolean isTerminated()
Specified by:
isTerminated in interface DelegateCaseExecution

isFailed

public boolean isFailed()
Specified by:
isFailed in interface DelegateCaseExecution

isClosed

public boolean isClosed()
Specified by:
isClosed in interface DelegateCaseExecution

getPreviousState

public CaseExecutionState getPreviousState()
Description copied from interface: CmmnActivityExecution

Returns the previous state of this case execution.

Specified by:
getPreviousState in interface CmmnActivityExecution
Returns:
the previous state

getPrevious

public int getPrevious()

setPrevious

public void setPrevious(int previous)

create

public void create()
Description copied from interface: CmmnCaseInstance

This case instance transitions to ACTIVE state.

Specified by:
create in interface CmmnCaseInstance

create

public void create(Map<String,Object> variables)
Description copied from interface: CmmnCaseInstance

This case instance transitions to ACTIVE state.

The given variables will be set a case instance variables.

Specified by:
create in interface CmmnCaseInstance

create

public void create(String businessKey)
Description copied from interface: CmmnCaseInstance

This case instance transitions to ACTIVE state.

The given businessKey will be set as case instance business key.

Specified by:
create in interface CmmnCaseInstance

create

public void create(String businessKey,
                   Map<String,Object> variables)
Description copied from interface: CmmnCaseInstance

This case instance transitions to ACTIVE state.

The given variables will be set a case instance variables. Furthermore the given businessKey will be set as case instance business key.

Specified by:
create in interface CmmnCaseInstance

createChildExecutions

public void createChildExecutions(List<CmmnActivity> activities)
Description copied from interface: CmmnActivityExecution

Creates new child case executions for each given CmmnActivity.

Afterwards each created case executions will be executed (ie. the create listener will be notified etc.).

According to the CMMN 1.0 specification:
This method can be called when this case execution (which represents a Stage) transitions to ACTIVE state. The passed collection of activities are the planned items that should be executed in this Stage. So that for each given CmmnActivity a new case execution will be instantiated. Furthermore for each created child execution there happens a transition to the initial state AVAILABLE.

Specified by:
createChildExecutions in interface CmmnActivityExecution
Parameters:
activities - a collection of activities of planned items to execute inside this case execution

createCaseExecution

protected abstract CmmnExecution createCaseExecution(CmmnActivity activity)

newCaseExecution

protected abstract CmmnExecution newCaseExecution()

enable

public void enable()
Description copied from interface: CmmnActivityExecution

Transition to CaseExecutionState.ENABLED state.

This case execution must be in CaseExecutionState.AVAILABLE state to be able to do this transition.

It is only possible to enable a case execution which is associated with a Stage or Task.

Specified by:
enable in interface CmmnActivityExecution

disable

public void disable()
Description copied from interface: CmmnActivityExecution

Transition to state.

This case execution must be in CaseExecutionState.ENABLED state to be able to do this transition.

It is only possible to disable a case execution which is associated with a Stage or Task.

If this case execution has a parent case execution, that parent case execution will be notified that this case execution has been disabled. This can lead to a completion of the parent case execution, for more details when the parent case execution can be completed see CmmnActivityExecution.complete().

Specified by:
disable in interface CmmnActivityExecution

reenable

public void reenable()
Description copied from interface: CmmnActivityExecution

Transition to CaseExecutionState.ENABLED state.

This case execution must be in CaseExecutionState.DISABLED state to be able to do this transition.

It is only possible to re-enable a case execution which is associated with a Stage or Task.

Specified by:
reenable in interface CmmnActivityExecution

manualStart

public void manualStart()
Description copied from interface: CmmnActivityExecution

Transition to CaseExecutionState.ACTIVE state.

This case execution must be in CaseExecutionState.ENABLED state to be able to do this transition.

It is only possible to start a case execution manually which is associated with a Stage or Task.

Specified by:
manualStart in interface CmmnActivityExecution

start

public void start()
Description copied from interface: CmmnActivityExecution

Transition to CaseExecutionState.ACTIVE state.

This case execution must be in CaseExecutionState.AVAILABLE state to be able to do this transition.

It is only possible to start a case execution which is associated with a Stage or Task.

Specified by:
start in interface CmmnActivityExecution

complete

public void complete()
Description copied from interface: CmmnActivityExecution

Transition to CaseExecutionState.COMPLETED state.

This case execution must be in CaseExecutionState.ACTIVE state to be able to do this transition.

It is only possible to complete a case execution which is associated with a Stage or Task.

If this case execution has a parent case execution, that parent case execution will be notified that this case execution has been completed. This can lead to a completion of the parent case execution, for more details when the parent case execution can be completed see CmmnActivityExecution.complete().

In case of a Stage the completion can only be performed when the following criteria are fulfilled:

For a Task instance, this means its purpose has been accomplished:

Specified by:
complete in interface CmmnActivityExecution

manualComplete

public void manualComplete()
Description copied from interface: CmmnActivityExecution

Transition to CaseExecutionState.COMPLETED state.

This case execution must be in CaseExecutionState.ACTIVE state to be able to do this transition.

It is only possible to complete a case execution manually which is associated with a Stage or Task.

If this case execution has a parent case execution, that parent case execution will be notified that this case execution has been completed. This can lead to a completion of the parent case execution, for more details when the parent case execution can be completed see CmmnActivityExecution.complete().

In case of a Stage the completion can only be performed when the following criteria are fulfilled:

For a Task instance, this means its purpose has been accomplished:

Specified by:
manualComplete in interface CmmnActivityExecution

occur

public void occur()
Description copied from interface: CmmnActivityExecution

Transition to CaseExecutionState.COMPLETED state.

This case execution must be in CaseExecutionState.AVAILABLE state to be able to do this transition.

For event listener transitions when the event being listened by the event listener instance does occur. For a user event listener instance this transition happens when a human decides to raise the event.

For Milestone instance transitions when one of the achieving sentries (entry criteria) is satisfied.

If this case execution has a parent case execution, that parent case execution will be notified that this case execution has been completed (ie.the event or milestone occured). This can lead to a completion of the parent case execution, for more details when the parent case execution can be completed see CmmnActivityExecution.complete().

Specified by:
occur in interface CmmnActivityExecution

terminate

public void terminate()
Description copied from interface: CmmnActivityExecution

Transition to CaseExecutionState.TERMINATED state.

If this case execution is associated with a Stage or Task, then this case execution must be in CaseExecutionState.ACTIVE state to be able to do this transition.
And if this case execution is association with EventListener or a Milestone, then this case execution must be in CaseExecutionState.AVAILABLE state to be able to do this transition.

For a Stage instance the termination of this case execution will be propagated down to all its contained EventListener, Milestone, Stage, and Task instances.

If this case execution has a parent case execution, that parent case execution will be notified that this case execution has been terminated. This can lead to a completion of the parent case execution, for more details when the parent case execution can be completed see CmmnActivityExecution.complete().

Specified by:
terminate in interface CmmnActivityExecution

parentTerminate

public void parentTerminate()
Description copied from interface: CmmnActivityExecution

Transition to CaseExecutionState.TERMINATED state when the parent Stage transition to CaseExecutionState.TERMINATED state.

This case execution must be in CaseExecutionState.AVAILABLE or CaseExecutionState.SUSPENDED state to be able to do this transition.

It is only possible to execute a parent termination on a case execution which is associated with a EventListener or Milestone.

Specified by:
parentTerminate in interface CmmnActivityExecution

exit

public void exit()
Description copied from interface: CmmnActivityExecution

Transition to CaseExecutionState.TERMINATED state when the parent Stage transition to CaseExecutionState.TERMINATED state or when the exit criteria of the associated Stage or Task becomes true.

This case execution must be in one of the following state to be able to do this transition:

It is only possible to execute an exit on a case execution which is associated with a Stage or Task.

If this transition is triggered by a fulfilled exit criteria and if this case execution has a parent case execution, that parent case execution will be notified that this case execution has been terminated. This can lead to a completion of the parent case execution, for more details when the parent case execution can be completed see CmmnActivityExecution.complete().

Specified by:
exit in interface CmmnActivityExecution

suspend

public void suspend()
Description copied from interface: CmmnActivityExecution

Transition to CaseExecutionState.SUSPENDED state.

If this case execution is associated with a Stage or Task, then this case execution must be in CaseExecutionState.ACTIVE state to be able to do this transition.
And if this case execution is association with EventListener or a Milestone, then this case execution must be in CaseExecutionState.AVAILABLE state to be able to do this transition.

For a Stage instance the suspension of this case execution will be propagated down to all its contained EventListener, Milestone, Stage, and Task instances.

Specified by:
suspend in interface CmmnActivityExecution

parentSuspend

public void parentSuspend()
Description copied from interface: CmmnActivityExecution

Transition to CaseExecutionState.SUSPENDED state when the parent Stage transition to CaseExecutionState.SUSPENDED state.

This case execution must be in one of the following state to be able to do this transition:

It is only possible to execute a parent suspension on a case execution which is associated with a Stage or Task.

Specified by:
parentSuspend in interface CmmnActivityExecution

resume

public void resume()
Description copied from interface: CmmnActivityExecution

Transition to either to CaseExecutionState.ACTIVE state, if this case execution is associated with a Stage or Task, or to CaseExecutionState#AVAILABE, if this case execution is associated with a EventListener or Milestone.

This case execution must be in CaseExecutionState.SUSPENDED state to be able to do this transition.

For a Stage instance the resume of this case execution will be propagated down to all its contained EventListener, Milestone, Stage, and Task instances.

Specified by:
resume in interface CmmnActivityExecution

parentResume

public void parentResume()
Description copied from interface: CmmnActivityExecution

Transition to the previous state (CaseExecutionState.AVAILABLE, CaseExecutionState.ENABLED, CaseExecutionState.DISABLED or CaseExecutionState.ACTIVE) when the parent Stage transitions out of CaseExecutionState.SUSPENDED.

This case execution must be in CaseExecutionState.SUSPENDED state to be able to do this transition.

It is only possible to execute a parent resume on a case execution which is associated with a Stage or Task.

Specified by:
parentResume in interface CmmnActivityExecution

reactivate

public void reactivate()
Description copied from interface: CmmnActivityExecution

Transition to CaseExecutionState.ACTIVE state.

If this case execution is associated with a Stage or Task and is not a case instance, then this case execution must be in CaseExecutionState.FAILED state to be able to do this transition.
And if this case execution is a case instance, then this case instance must be in one of the following state to perform this transition:

In case of a case instance the transition out of CaseExecutionState.SUSPENDED state the resume will be propagated down to all its contained EventListener, Milestone, Stage, and Task instances, see CmmnActivityExecution.resume() and CmmnActivityExecution.parentResume().

Specified by:
reactivate in interface CmmnActivityExecution

close

public void close()
Description copied from interface: CmmnActivityExecution

Transition to CaseExecutionState.CLOSED state when no further work or modifications should be allowed for this case instance.

It is only possible to close a case instance which is in one of the following states:

Specified by:
close in interface CmmnActivityExecution

toString

public String toString()
Overrides:
toString in class Object

getToStringIdentity

protected String getToStringIdentity()


Copyright © 2014 camunda services GmbH. All Rights Reserved.