org.camunda.bpm.engine.impl.core.instance
Class CoreExecution

java.lang.Object
  extended by org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
      extended by org.camunda.bpm.engine.impl.core.instance.CoreExecution
All Implemented Interfaces:
Serializable, BaseDelegateExecution, VariableScope, VariableEventDispatcher
Direct Known Subclasses:
CmmnExecution, PvmExecutionImpl

public abstract class CoreExecution
extends AbstractVariableScope
implements BaseDelegateExecution

Defines the base API for the execution of an activity.

Author:
Daniel Meyer, Roman Smirnov, Sebastian Menski
See Also:
Serialized Form

Field Summary
protected  String businessKey
          the business key for this execution
protected  String eventName
           
protected  CoreModelElement eventSource
           
protected  String id
           
protected  int listenerIndex
           
protected  boolean skipCustomListeners
           
protected  boolean skipIoMapping
           
 
Fields inherited from class org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
cachedElContext
 
Constructor Summary
CoreExecution()
           
 
Method Summary
 String getBusinessKey()
          The business key for this execution.
 String getEventName()
          The event name in case this execution is passed in for an ExecutionListener
 CoreModelElement getEventSource()
           
 String getId()
          Unique id of this path of execution that can be used as a handle to provide external signals back into the engine after wait states.
 int getListenerIndex()
           
 void invokeListener(DelegateListener listener)
           
 boolean isSkipCustomListeners()
           
 boolean isSkipIoMappings()
           
<T extends CoreExecution>
void
performOperation(CoreAtomicOperation<T> operation)
           
<T extends CoreExecution>
void
performOperationSync(CoreAtomicOperation<T> operation)
           
 void setBusinessKey(String businessKey)
           
 void setEventName(String eventName)
           
 void setEventSource(CoreModelElement eventSource)
           
 void setId(String id)
           
 void setListenerIndex(int listenerIndex)
           
 void setSkipCustomListeners(boolean skipCustomListeners)
           
 void setSkipIoMappings(boolean skipIoMappings)
           
 
Methods inherited from class org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
collectVariableNames, collectVariables, dispatchEvent, getCachedElContext, getParentVariableScope, getSourceActivityVariableScope, getValueFromVariableInstance, getVariable, getVariable, getVariableInstance, getVariableInstanceLocal, getVariableInstancesLocal, getVariableLocal, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariableScopeKey, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, getVariableStore, getVariablesTyped, getVariablesTyped, getVariableTyped, getVariableTyped, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariable, removeVariableLocal, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setCachedElContext, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariableLocalTransient, setVariables, setVariablesLocal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.camunda.bpm.engine.delegate.VariableScope
getVariable, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariableScopeKey, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, getVariablesTyped, getVariablesTyped, getVariableTyped, getVariableTyped, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setVariable, setVariableLocal, setVariables, setVariablesLocal
 

Field Detail

id

protected String id

businessKey

protected String businessKey
the business key for this execution


eventName

protected String eventName

eventSource

protected CoreModelElement eventSource

listenerIndex

protected int listenerIndex

skipCustomListeners

protected boolean skipCustomListeners

skipIoMapping

protected boolean skipIoMapping
Constructor Detail

CoreExecution

public CoreExecution()
Method Detail

performOperation

public <T extends CoreExecution> void performOperation(CoreAtomicOperation<T> operation)

performOperationSync

public <T extends CoreExecution> void performOperationSync(CoreAtomicOperation<T> operation)

getEventName

public String getEventName()
Description copied from interface: BaseDelegateExecution
The event name in case this execution is passed in for an ExecutionListener

Specified by:
getEventName in interface BaseDelegateExecution

setEventName

public void setEventName(String eventName)

getEventSource

public CoreModelElement getEventSource()

setEventSource

public void setEventSource(CoreModelElement eventSource)

getListenerIndex

public int getListenerIndex()

setListenerIndex

public void setListenerIndex(int listenerIndex)

invokeListener

public void invokeListener(DelegateListener listener)
                    throws Exception
Throws:
Exception

getId

public String getId()
Description copied from interface: BaseDelegateExecution
Unique id of this path of execution that can be used as a handle to provide external signals back into the engine after wait states.

Specified by:
getId in interface BaseDelegateExecution

setId

public void setId(String id)

getBusinessKey

public String getBusinessKey()
Description copied from interface: BaseDelegateExecution
The business key for this execution. Only returns a value if the delegate execution is a a root execution (such as a process instance).

Specified by:
getBusinessKey in interface BaseDelegateExecution

setBusinessKey

public void setBusinessKey(String businessKey)

isSkipCustomListeners

public boolean isSkipCustomListeners()

setSkipCustomListeners

public void setSkipCustomListeners(boolean skipCustomListeners)

isSkipIoMappings

public boolean isSkipIoMappings()

setSkipIoMappings

public void setSkipIoMappings(boolean skipIoMappings)


Copyright © 2016 camunda services GmbH. All rights reserved.