public interface ModificationBuilder extends InstantiationBuilder<ModificationBuilder>
Modifier and Type | Method and Description |
---|---|
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
|
startAfterActivity, startBeforeActivity, startTransition
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
activityId
- the activity for which all instances should be cancelledModificationBuilder 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
activityId
- the activity for which all instances should be cancelledcancelCurrentActiveActivityInstances
- ModificationBuilder processInstanceIds(List<String> processInstanceIds)
processInstanceIds
- the process instance ids to modify.ModificationBuilder processInstanceIds(String... processInstanceIds)
processInstanceIds
- the process instance ids to modify.ModificationBuilder processInstanceQuery(ProcessInstanceQuery processInstanceQuery)
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.ModificationBuilder skipCustomListeners()
ModificationBuilder skipIoMappings()
void execute()
AuthorizationException
- if the user has not all of the following permissions
Permissions.UPDATE
permission on Resources.PROCESS_INSTANCE
or no Permissions.UPDATE_INSTANCE
permission on Resources.PROCESS_DEFINITION
Batch executeAsync()
AuthorizationException
- if the user has not all of the following permissions
Permissions.CREATE
permission on Resources.BATCH
Copyright © 2019. All rights reserved.