Package org.camunda.bpm.engine.impl
Class ModificationBuilderImpl
- java.lang.Object
- 
- org.camunda.bpm.engine.impl.ModificationBuilderImpl
 
- 
- All Implemented Interfaces:
- InstantiationBuilder<ModificationBuilder>,- ModificationBuilder
 
 public class ModificationBuilderImpl extends java.lang.Object implements ModificationBuilder 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.Stringannotationprotected CommandExecutorcommandExecutorprotected java.util.List<AbstractProcessInstanceModificationCommand>instructionsprotected java.lang.StringprocessDefinitionIdprotected java.util.List<java.lang.String>processInstanceIdsprotected ProcessInstanceQueryprocessInstanceQueryprotected booleanskipCustomListenersprotected booleanskipIoMappings
 - 
Constructor SummaryConstructors Constructor Description ModificationBuilderImpl(CommandExecutor commandExecutor, java.lang.String processDefinitionId)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ModificationBuildercancelAllForActivity(java.lang.String activityId)Submits the instruction:ModificationBuildercancelAllForActivity(java.lang.String activityId, boolean cancelCurrentActiveActivityInstances)Submits the instruction:voidexecute()Execute the modification synchronously.voidexecute(boolean writeUserOperationLog)BatchexecuteAsync()Execute the modification asynchronously as batch.java.lang.StringgetAnnotation()CommandExecutorgetCommandExecutor()java.util.List<AbstractProcessInstanceModificationCommand>getInstructions()java.lang.StringgetProcessDefinitionId()java.util.List<java.lang.String>getProcessInstanceIds()ProcessInstanceQuerygetProcessInstanceQuery()booleanisSkipCustomListeners()booleanisSkipIoMappings()ModificationBuilderprocessInstanceIds(java.lang.String... processInstanceIds)ModificationBuilderprocessInstanceIds(java.util.List<java.lang.String> processInstanceIds)ModificationBuilderprocessInstanceQuery(ProcessInstanceQuery processInstanceQuery)ModificationBuildersetAnnotation(java.lang.String annotation)Provides annotation for the current modification.voidsetAnnotationInternal(java.lang.String annotation)voidsetInstructions(java.util.List<AbstractProcessInstanceModificationCommand> instructions)voidsetProcessDefinitionId(java.lang.String processDefinitionId)ModificationBuilderskipCustomListeners()Skips custom execution listeners when creating/removing activity instances during modificationModificationBuilderskipIoMappings()Skips io mappings when creating/removing activity instances during modificationModificationBuilderstartAfterActivity(java.lang.String activityId)Submits an instruction that behaves likeInstantiationBuilder.startTransition(String)and always instantiates the single outgoing sequence flow of the given activity.ModificationBuilderstartBeforeActivity(java.lang.String activityId)Submits the instruction:ModificationBuilderstartTransition(java.lang.String transitionId)Submits the instruction:
 
- 
- 
- 
Field Detail- 
commandExecutorprotected CommandExecutor commandExecutor 
 - 
processInstanceQueryprotected ProcessInstanceQuery processInstanceQuery 
 - 
processInstanceIdsprotected java.util.List<java.lang.String> processInstanceIds 
 - 
instructionsprotected java.util.List<AbstractProcessInstanceModificationCommand> instructions 
 - 
processDefinitionIdprotected java.lang.String processDefinitionId 
 - 
skipCustomListenersprotected boolean skipCustomListeners 
 - 
skipIoMappingsprotected boolean skipIoMappings 
 - 
annotationprotected java.lang.String annotation 
 
- 
 - 
Constructor Detail- 
ModificationBuilderImplpublic ModificationBuilderImpl(CommandExecutor commandExecutor, java.lang.String processDefinitionId) 
 
- 
 - 
Method Detail- 
startBeforeActivitypublic ModificationBuilder startBeforeActivity(java.lang.String activityId) Description copied from interface:InstantiationBuilderSubmits the instruction: Start before the specified activity. In particular: - In the parent activity hierarchy, determine the closest existing ancestor activity instance
- Instantiate all parent activities up to the ancestor's activity
- Instantiate and execute the given activity (respects the asyncBefore attribute of the activity)
 - Specified by:
- startBeforeActivityin interface- InstantiationBuilder<ModificationBuilder>
- Parameters:
- activityId- the activity to instantiate
 
 - 
startAfterActivitypublic ModificationBuilder startAfterActivity(java.lang.String activityId) Description copied from interface:InstantiationBuilderSubmits an instruction that behaves likeInstantiationBuilder.startTransition(String)and always instantiates the single outgoing sequence flow of the given activity. Does not consider asyncAfter.- Specified by:
- startAfterActivityin interface- InstantiationBuilder<ModificationBuilder>
- Parameters:
- activityId- the activity for which the outgoing flow should be executed
 
 - 
startTransitionpublic ModificationBuilder startTransition(java.lang.String transitionId) Description copied from interface:InstantiationBuilderSubmits the instruction: Start a sequence flow. In particular: - In the parent activity hierarchy, determine the closest existing ancestor activity instance
- Instantiate all parent activities up to the ancestor's activity
- Execute the given transition (does not consider sequence flow conditions)
 - Specified by:
- startTransitionin interface- InstantiationBuilder<ModificationBuilder>
- Parameters:
- transitionId- the sequence flow to execute
 
 - 
cancelAllForActivitypublic ModificationBuilder cancelAllForActivity(java.lang.String activityId) Description copied from interface:ModificationBuilderSubmits the instruction: Cancel all instances of the given activity in an arbitrary order, which are: - activity instances of that activity
- transition instances entering or leaving that activity
 The cancellation order of the instances is arbitrary - Specified by:
- cancelAllForActivityin interface- ModificationBuilder
- Parameters:
- activityId- the activity for which all instances should be cancelled
 
 - 
cancelAllForActivitypublic ModificationBuilder cancelAllForActivity(java.lang.String activityId, boolean cancelCurrentActiveActivityInstances) Description copied from interface:ModificationBuilderSubmits the instruction: Cancel all instances of the given activity in an arbitrary order, which are: - activity instances of that activity
- transition instances entering or leaving that activity
 The cancellation order of the instances is arbitrary - Specified by:
- cancelAllForActivityin interface- ModificationBuilder
- Parameters:
- activityId- the activity for which all instances should be cancelled
 
 - 
processInstanceIdspublic ModificationBuilder processInstanceIds(java.util.List<java.lang.String> processInstanceIds) - Specified by:
- processInstanceIdsin interface- ModificationBuilder
- Parameters:
- processInstanceIds- the process instance ids to modify.
 
 - 
processInstanceIdspublic ModificationBuilder processInstanceIds(java.lang.String... processInstanceIds) - Specified by:
- processInstanceIdsin interface- ModificationBuilder
- Parameters:
- processInstanceIds- the process instance ids to modify.
 
 - 
processInstanceQuerypublic ModificationBuilder processInstanceQuery(ProcessInstanceQuery processInstanceQuery) - Specified by:
- processInstanceQueryin interface- ModificationBuilder
- Parameters:
- processInstanceQuery- a query which selects the process instances to modify. Query results are restricted to process instances for which the user has- Permissions.READpermission.
 
 - 
skipCustomListenerspublic ModificationBuilder skipCustomListeners() Description copied from interface:ModificationBuilderSkips custom execution listeners when creating/removing activity instances during modification- Specified by:
- skipCustomListenersin interface- ModificationBuilder
 
 - 
skipIoMappingspublic ModificationBuilder skipIoMappings() Description copied from interface:ModificationBuilderSkips io mappings when creating/removing activity instances during modification- Specified by:
- skipIoMappingsin interface- ModificationBuilder
 
 - 
setAnnotationpublic ModificationBuilder setAnnotation(java.lang.String annotation) Description copied from interface:ModificationBuilderProvides annotation for the current modification.- Specified by:
- setAnnotationin interface- ModificationBuilder
 
 - 
executepublic void execute(boolean writeUserOperationLog) 
 - 
executepublic void execute() Description copied from interface:ModificationBuilderExecute the modification synchronously.- Specified by:
- executein interface- ModificationBuilder
 
 - 
executeAsyncpublic Batch executeAsync() Description copied from interface:ModificationBuilderExecute the modification asynchronously as batch. The returned batch can be used to track the progress of the modification.- Specified by:
- executeAsyncin interface- ModificationBuilder
- Returns:
- the batch which executes the modification asynchronously.
 
 - 
getCommandExecutorpublic CommandExecutor getCommandExecutor() 
 - 
getProcessInstanceQuerypublic ProcessInstanceQuery getProcessInstanceQuery() 
 - 
getProcessInstanceIdspublic java.util.List<java.lang.String> getProcessInstanceIds() 
 - 
getProcessDefinitionIdpublic java.lang.String getProcessDefinitionId() 
 - 
setProcessDefinitionIdpublic void setProcessDefinitionId(java.lang.String processDefinitionId) 
 - 
getInstructionspublic java.util.List<AbstractProcessInstanceModificationCommand> getInstructions() 
 - 
setInstructionspublic void setInstructions(java.util.List<AbstractProcessInstanceModificationCommand> instructions) 
 - 
isSkipCustomListenerspublic boolean isSkipCustomListeners() 
 - 
isSkipIoMappingspublic boolean isSkipIoMappings() 
 - 
getAnnotationpublic java.lang.String getAnnotation() 
 - 
setAnnotationInternalpublic void setAnnotationInternal(java.lang.String annotation) 
 
- 
 
-