|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.ProcessInstanceModificationBuilderImpl
public class ProcessInstanceModificationBuilderImpl
| Field Summary | |
|---|---|
protected CommandContext |
commandContext
|
protected CommandExecutor |
commandExecutor
|
protected List<AbstractProcessInstanceModificationCommand> |
operations
|
protected String |
processInstanceId
|
protected org.camunda.bpm.engine.variable.VariableMap |
processVariables
|
protected boolean |
skipCustomListeners
|
protected boolean |
skipIoMappings
|
| Constructor Summary | |
|---|---|
ProcessInstanceModificationBuilderImpl()
|
|
ProcessInstanceModificationBuilderImpl(CommandContext commandContext,
String processInstanceId)
|
|
ProcessInstanceModificationBuilderImpl(CommandExecutor commandExecutor,
String processInstanceId)
|
|
ProcessInstanceModificationBuilderImpl(String processInstanceId)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CommandExecutor commandExecutor
protected CommandContext commandContext
protected String processInstanceId
protected boolean skipCustomListeners
protected boolean skipIoMappings
protected List<AbstractProcessInstanceModificationCommand> operations
protected org.camunda.bpm.engine.variable.VariableMap processVariables
| Constructor Detail |
|---|
public ProcessInstanceModificationBuilderImpl(CommandExecutor commandExecutor,
String processInstanceId)
public ProcessInstanceModificationBuilderImpl(CommandContext commandContext,
String processInstanceId)
public ProcessInstanceModificationBuilderImpl(String processInstanceId)
public ProcessInstanceModificationBuilderImpl()
| Method Detail |
|---|
public ProcessInstanceModificationBuilder cancelActivityInstance(String activityInstanceId)
ProcessInstanceModificationBuilderSubmits the instruction:
Cancel an activity instance in a process. If this instance has child activity instances (e.g. in a subprocess instance), these children, their grandchildren, etc. are cancelled as well.
cancelActivityInstance in interface ProcessInstanceModificationBuilderactivityInstanceId - the id of the activity instance to cancelpublic ProcessInstanceModificationBuilder cancelTransitionInstance(String transitionInstanceId)
ProcessInstanceModificationBuilderSubmits the instruction:
Cancel a transition instance (i.e. an async continuation) in a process.
cancelTransitionInstance in interface ProcessInstanceModificationBuildertransitionInstanceId - the id of the transition instance to cancelpublic ProcessInstanceModificationBuilder cancelAllForActivity(String activityId)
ProcessInstanceModificationBuilderSubmits the instruction:
Cancel all instances of the given activity in an arbitrary order, which are:
Therefore behaves like ProcessInstanceModificationBuilder.cancelActivityInstance(String) for each individual
activity instance and like ProcessInstanceModificationBuilder.cancelTransitionInstance(String) for each
individual transition instance.
The cancellation order of the instances is arbitrary
cancelAllForActivity in interface ProcessInstanceModificationBuilderactivityId - the activity for which all instances should be cancelledpublic ProcessInstanceModificationInstantiationBuilder startBeforeActivity(String activityId)
InstantiationBuilderSubmits the instruction:
Start before the specified activity.
In particular:
startBeforeActivity in interface InstantiationBuilder<ProcessInstanceModificationInstantiationBuilder>activityId - the activity to instantiate
public ProcessInstanceModificationInstantiationBuilder startBeforeActivity(String activityId,
String ancestorActivityInstanceId)
ProcessInstanceModificationBuilderSubmits the instruction:
Start before the specified activity. Instantiate the given activity as a descendant of the given ancestor activity instance.
In particular:
startBeforeActivity in interface ProcessInstanceModificationBuilderactivityId - the activity to instantiateancestorActivityInstanceId - the ID of an existing activity instance under which the new
activity instance should be createdpublic ProcessInstanceModificationInstantiationBuilder startAfterActivity(String activityId)
InstantiationBuilderInstantiationBuilder.startTransition(String) and always instantiates
the single outgoing sequence flow of the given activity. Does not consider asyncAfter.
startAfterActivity in interface InstantiationBuilder<ProcessInstanceModificationInstantiationBuilder>activityId - the activity for which the outgoing flow should be executed
public ProcessInstanceModificationInstantiationBuilder startAfterActivity(String activityId,
String ancestorActivityInstanceId)
ProcessInstanceModificationBuilderProcessInstanceModificationBuilder.startTransition(String,String) and always instantiates
the single outgoing sequence flow of the given activity. Does not consider asyncAfter.
startAfterActivity in interface ProcessInstanceModificationBuilderactivityId - the activity for which the outgoing flow should be executedpublic ProcessInstanceModificationInstantiationBuilder startTransition(String transitionId)
InstantiationBuilderSubmits the instruction:
Start a sequence flow.
In particular:
startTransition in interface InstantiationBuilder<ProcessInstanceModificationInstantiationBuilder>transitionId - the sequence flow to execute
public ProcessInstanceModificationInstantiationBuilder startTransition(String transitionId,
String ancestorActivityInstanceId)
ProcessInstanceModificationBuilderSubmits the instruction:
Start the specified sequence flow. Instantiate the given sequence flow as a descendant of the given ancestor activity instance.
In particular:
startTransition in interface ProcessInstanceModificationBuildertransitionId - the sequence flow to executeancestorActivityInstanceId - the ID of an existing activity instance under which the new
transition should be executedprotected AbstractInstantiationCmd getCurrentInstantiation()
public ProcessInstanceModificationInstantiationBuilder setVariable(String name,
Object value)
ActivityInstantiationBuilder
setVariable in interface ActivityInstantiationBuilder<ProcessInstanceModificationInstantiationBuilder>
public ProcessInstanceModificationInstantiationBuilder setVariableLocal(String name,
Object value)
ActivityInstantiationBuilder
setVariableLocal in interface ActivityInstantiationBuilder<ProcessInstanceModificationInstantiationBuilder>public ProcessInstanceModificationInstantiationBuilder setVariables(Map<String,Object> variables)
ActivityInstantiationBuilder
setVariables in interface ActivityInstantiationBuilder<ProcessInstanceModificationInstantiationBuilder>public ProcessInstanceModificationInstantiationBuilder setVariablesLocal(Map<String,Object> variables)
ActivityInstantiationBuilder
setVariablesLocal in interface ActivityInstantiationBuilder<ProcessInstanceModificationInstantiationBuilder>public void execute()
ProcessInstanceModificationBuilder
execute in interface ProcessInstanceModificationBuilder
public void execute(boolean skipCustomListeners,
boolean skipIoMappings)
execute in interface ProcessInstanceModificationBuilderskipCustomListeners - specifies whether custom listeners (task and execution)
should be invoked when executing the instructionsskipIoMappings - specifies whether input/output mappings for tasks should be invoked
throughout the transaction when executing the instructionspublic CommandExecutor getCommandExecutor()
public CommandContext getCommandContext()
public String getProcessInstanceId()
public List<AbstractProcessInstanceModificationCommand> getModificationOperations()
public boolean isSkipCustomListeners()
public boolean isSkipIoMappings()
public void setSkipCustomListeners(boolean skipCustomListeners)
public void setSkipIoMappings(boolean skipIoMappings)
public org.camunda.bpm.engine.variable.VariableMap getProcessVariables()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||