public class RestartProcessInstanceBuilderImpl extends Object implements RestartProcessInstanceBuilder
Modifier and Type | Field and Description |
---|---|
protected CommandExecutor |
commandExecutor |
protected boolean |
initialVariables |
protected List<AbstractProcessInstanceModificationCommand> |
instructions |
protected String |
processDefinitionId |
protected List<String> |
processInstanceIds |
protected HistoricProcessInstanceQuery |
query |
protected boolean |
skipCustomListeners |
protected boolean |
skipIoMappings |
protected boolean |
withoutBusinessKey |
Constructor and Description |
---|
RestartProcessInstanceBuilderImpl(CommandExecutor commandExecutor,
String processDefinitionId) |
protected CommandExecutor commandExecutor
protected List<AbstractProcessInstanceModificationCommand> instructions
protected String processDefinitionId
protected HistoricProcessInstanceQuery query
protected boolean initialVariables
protected boolean skipCustomListeners
protected boolean skipIoMappings
protected boolean withoutBusinessKey
public RestartProcessInstanceBuilderImpl(CommandExecutor commandExecutor, String processDefinitionId)
public RestartProcessInstanceBuilder startBeforeActivity(String activityId)
InstantiationBuilder
Submits the instruction:
Start before the specified activity.
In particular:
startBeforeActivity
in interface InstantiationBuilder<RestartProcessInstanceBuilder>
activityId
- the activity to instantiatepublic RestartProcessInstanceBuilder startAfterActivity(String activityId)
InstantiationBuilder
InstantiationBuilder.startTransition(String)
and always instantiates
the single outgoing sequence flow of the given activity. Does not consider asyncAfter.startAfterActivity
in interface InstantiationBuilder<RestartProcessInstanceBuilder>
activityId
- the activity for which the outgoing flow should be executedpublic RestartProcessInstanceBuilder startTransition(String transitionId)
InstantiationBuilder
Submits the instruction:
Start a sequence flow.
In particular:
startTransition
in interface InstantiationBuilder<RestartProcessInstanceBuilder>
transitionId
- the sequence flow to executepublic void execute()
RestartProcessInstanceBuilder
execute
in interface RestartProcessInstanceBuilder
public void execute(boolean writeUserOperationLog)
public Batch executeAsync()
RestartProcessInstanceBuilder
executeAsync
in interface RestartProcessInstanceBuilder
public List<AbstractProcessInstanceModificationCommand> getInstructions()
public RestartProcessInstanceBuilder processInstanceIds(String... processInstanceIds)
processInstanceIds
in interface RestartProcessInstanceBuilder
processInstanceIds
- the process instance ids to restart.public RestartProcessInstanceBuilder historicProcessInstanceQuery(HistoricProcessInstanceQuery query)
historicProcessInstanceQuery
in interface RestartProcessInstanceBuilder
query
- a query which selects the historic process instances to restart.
Query results are restricted to process instances for which the user has Permissions.READ_HISTORY
permission.public HistoricProcessInstanceQuery getHistoricProcessInstanceQuery()
public String getProcessDefinitionId()
public void setInstructions(List<AbstractProcessInstanceModificationCommand> instructions)
public void setProcessDefinitionId(String processDefinitionId)
public RestartProcessInstanceBuilder processInstanceIds(List<String> processInstanceIds)
processInstanceIds
in interface RestartProcessInstanceBuilder
processInstanceIds
- the process instance ids to restart.public RestartProcessInstanceBuilder initialSetOfVariables()
RestartProcessInstanceBuilder
initialSetOfVariables
in interface RestartProcessInstanceBuilder
public boolean isInitialVariables()
public RestartProcessInstanceBuilder skipCustomListeners()
RestartProcessInstanceBuilder
skipCustomListeners
in interface RestartProcessInstanceBuilder
public RestartProcessInstanceBuilder skipIoMappings()
RestartProcessInstanceBuilder
skipIoMappings
in interface RestartProcessInstanceBuilder
public boolean isSkipCustomListeners()
public boolean isSkipIoMappings()
public RestartProcessInstanceBuilder withoutBusinessKey()
RestartProcessInstanceBuilder
withoutBusinessKey
in interface RestartProcessInstanceBuilder
public boolean isWithoutBusinessKey()
Copyright © 2021. All rights reserved.