org.camunda.bpm.engine.runtime
Interface ModificationBuilder

All Superinterfaces:
InstantiationBuilder<ModificationBuilder>
All Known Implementing Classes:
ModificationBuilderImpl

public interface ModificationBuilder
extends InstantiationBuilder<ModificationBuilder>


Method Summary
 ModificationBuilder cancelAllForActivity(String activityId)
          Submits the instruction:
 ModificationBuilder cancelAllForActivity(String activityId, boolean cancelCurrentActiveActivityInstances)
          Submits the instruction:
 void execute()
          Execute the modification synchronously.
 Batch executeAsync()
          Execute the modification asynchronously as batch.
 ModificationBuilder processInstanceIds(List<String> processInstanceIds)
           
 ModificationBuilder processInstanceIds(String... processInstanceIds)
           
 ModificationBuilder processInstanceQuery(ProcessInstanceQuery processInstanceQuery)
           
 ModificationBuilder skipCustomListeners()
          Skips custom execution listeners when creating/removing activity instances during modification
 ModificationBuilder skipIoMappings()
          Skips io mappings when creating/removing activity instances during modification
 
Methods inherited from interface org.camunda.bpm.engine.runtime.InstantiationBuilder
startAfterActivity, startBeforeActivity, startTransition
 

Method Detail

cancelAllForActivity

ModificationBuilder cancelAllForActivity(String activityId)

Submits the instruction:

Cancel all instances of the given activity in an arbitrary order, which are:

The cancellation order of the instances is arbitrary

Parameters:
activityId - the activity for which all instances should be cancelled

cancelAllForActivity

ModificationBuilder cancelAllForActivity(String activityId,
                                         boolean cancelCurrentActiveActivityInstances)

Submits the instruction:

Cancel all instances of the given activity in an arbitrary order, which are:

The cancellation order of the instances is arbitrary

Parameters:
activityId - the activity for which all instances should be cancelled
cancelCurrentActiveActivityInstances -

processInstanceIds

ModificationBuilder processInstanceIds(List<String> processInstanceIds)
Parameters:
processInstanceIds - the process instance ids to modify.

processInstanceIds

ModificationBuilder processInstanceIds(String... processInstanceIds)
Parameters:
processInstanceIds - the process instance ids to modify.

processInstanceQuery

ModificationBuilder processInstanceQuery(ProcessInstanceQuery processInstanceQuery)
Parameters:
processInstanceQuery - a query which selects the process instances to modify. Query results are restricted to process instances for which the user has Permissions.READ permission.

skipCustomListeners

ModificationBuilder skipCustomListeners()
Skips custom execution listeners when creating/removing activity instances during modification


skipIoMappings

ModificationBuilder skipIoMappings()
Skips io mappings when creating/removing activity instances during modification


execute

void execute()
Execute the modification synchronously.

Throws:
AuthorizationException - if the user has not all of the following permissions

executeAsync

Batch executeAsync()
Execute the modification asynchronously as batch. The returned batch can be used to track the progress of the modification.

Returns:
the batch which executes the modification asynchronously.
Throws:
AuthorizationException - if the user has not all of the following permissions


Copyright © 2017 camunda services GmbH. All rights reserved.