|
||||||||||
| 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 boolean |
skipCustomListeners
|
protected boolean |
skipIoMappings
|
| Constructor Summary | |
|---|---|
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
| Constructor Detail |
|---|
public ProcessInstanceModificationBuilderImpl(CommandExecutor commandExecutor,
String processInstanceId)
public ProcessInstanceModificationBuilderImpl(CommandContext commandContext,
String processInstanceId)
public ProcessInstanceModificationBuilderImpl(String processInstanceId)
| 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 ProcessInstanceActivityInstantiationBuilder startBeforeActivity(String activityId)
ProcessInstanceModificationBuilderSubmits the instruction:
Start before the specified activity.
In particular:
startBeforeActivity in interface ProcessInstanceModificationBuilderactivityId - the activity to instantiate
public ProcessInstanceActivityInstantiationBuilder 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 ProcessInstanceActivityInstantiationBuilder startAfterActivity(String activityId)
ProcessInstanceModificationBuilderProcessInstanceModificationBuilder.startTransition(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 executed
public ProcessInstanceActivityInstantiationBuilder 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 ProcessInstanceActivityInstantiationBuilder startTransition(String transitionId)
ProcessInstanceModificationBuilderSubmits the instruction:
Start a sequence flow.
In particular:
startTransition in interface ProcessInstanceModificationBuildertransitionId - the sequence flow to execute
public ProcessInstanceActivityInstantiationBuilder 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 executedpublic 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||