Class ProcessInstanceDelegateImpl
- java.lang.Object
-
- org.camunda.bpm.scenario.impl.delegate.AbstractDelegate<org.camunda.bpm.engine.runtime.ProcessInstance>
-
- org.camunda.bpm.scenario.impl.delegate.ProcessInstanceDelegateImpl
-
- All Implemented Interfaces:
org.camunda.bpm.engine.runtime.Execution,org.camunda.bpm.engine.runtime.ProcessInstance,Deferrable,ProcessInstanceDelegate
public class ProcessInstanceDelegateImpl extends AbstractDelegate<org.camunda.bpm.engine.runtime.ProcessInstance> implements ProcessInstanceDelegate
- Author:
- Martin Schimak
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.scenario.impl.delegate.AbstractDelegate
delegate
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedProcessInstanceDelegateImpl(WaitstateExecutable waitstate, org.camunda.bpm.engine.runtime.ProcessInstance processInstance)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddefer(String period, Deferred action)Defer a certain action for a certain period of time until it is executed.StringgetBusinessKey()StringgetCaseInstanceId()StringgetId()StringgetProcessDefinitionId()StringgetProcessInstanceId()StringgetRootProcessInstanceId()StringgetTenantId()booleanisEnded()booleanisSuspended()static ProcessInstanceDelegatenewInstance(WaitstateExecutable waitstate, org.camunda.bpm.engine.runtime.ProcessInstance processInstance)
-
-
-
Constructor Detail
-
ProcessInstanceDelegateImpl
protected ProcessInstanceDelegateImpl(WaitstateExecutable waitstate, org.camunda.bpm.engine.runtime.ProcessInstance processInstance)
-
-
Method Detail
-
newInstance
public static ProcessInstanceDelegate newInstance(WaitstateExecutable waitstate, org.camunda.bpm.engine.runtime.ProcessInstance processInstance)
-
defer
public void defer(String period, Deferred action)
Description copied from interface:DeferrableDefer a certain action for a certain period of time until it is executed. Note that the action is just executed as long as *this* runtime object for which you defer the action still exists in the runtime database. If it disappears before the deferred action triggers, the action will never be executed.- Specified by:
deferin interfaceDeferrable- Parameters:
period- of time for which you want to defer an actionaction- which should be executed after the given period.
-
getProcessDefinitionId
public String getProcessDefinitionId()
- Specified by:
getProcessDefinitionIdin interfaceorg.camunda.bpm.engine.runtime.ProcessInstance
-
getBusinessKey
public String getBusinessKey()
- Specified by:
getBusinessKeyin interfaceorg.camunda.bpm.engine.runtime.ProcessInstance
-
getRootProcessInstanceId
public String getRootProcessInstanceId()
- Specified by:
getRootProcessInstanceIdin interfaceorg.camunda.bpm.engine.runtime.ProcessInstance
-
getCaseInstanceId
public String getCaseInstanceId()
- Specified by:
getCaseInstanceIdin interfaceorg.camunda.bpm.engine.runtime.ProcessInstance
-
isSuspended
public boolean isSuspended()
- Specified by:
isSuspendedin interfaceorg.camunda.bpm.engine.runtime.Execution- Specified by:
isSuspendedin interfaceorg.camunda.bpm.engine.runtime.ProcessInstance
-
getId
public String getId()
- Specified by:
getIdin interfaceorg.camunda.bpm.engine.runtime.Execution
-
isEnded
public boolean isEnded()
- Specified by:
isEndedin interfaceorg.camunda.bpm.engine.runtime.Execution
-
getProcessInstanceId
public String getProcessInstanceId()
- Specified by:
getProcessInstanceIdin interfaceorg.camunda.bpm.engine.runtime.Execution
-
getTenantId
public String getTenantId()
- Specified by:
getTenantIdin interfaceorg.camunda.bpm.engine.runtime.Execution
-
-