Package org.camunda.bpm.engine.runtime
Interface InstantiationBuilder<T extends InstantiationBuilder<T>>
-
- All Known Subinterfaces:
ModificationBuilder
,ProcessInstanceModificationBuilder
,ProcessInstanceModificationInstantiationBuilder
,ProcessInstantiationBuilder
,RestartProcessInstanceBuilder
- All Known Implementing Classes:
ModificationBuilderImpl
,ProcessInstanceModificationBuilderImpl
,ProcessInstantiationBuilderImpl
,RestartProcessInstanceBuilderImpl
public interface InstantiationBuilder<T extends InstantiationBuilder<T>>
- Author:
- Thorben Lindhauer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
startAfterActivity(java.lang.String activityId)
Submits an instruction that behaves likestartTransition(String)
and always instantiates the single outgoing sequence flow of the given activity.T
startBeforeActivity(java.lang.String activityId)
Submits the instruction:T
startTransition(java.lang.String transitionId)
Submits the instruction:
-
-
-
Method Detail
-
startBeforeActivity
T startBeforeActivity(java.lang.String activityId)
Submits 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)
- Parameters:
activityId
- the activity to instantiate- Throws:
ProcessEngineException
- if more than one possible ancestor activity instance exists
-
startAfterActivity
T startAfterActivity(java.lang.String activityId)
Submits an instruction that behaves likestartTransition(String)
and always instantiates the single outgoing sequence flow of the given activity. Does not consider asyncAfter.- Parameters:
activityId
- the activity for which the outgoing flow should be executed- Throws:
ProcessEngineException
- if the activity has 0 or more than 1 outgoing sequence flows
-
startTransition
T startTransition(java.lang.String transitionId)
Submits 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)
- Parameters:
transitionId
- the sequence flow to execute- Throws:
ProcessEngineException
- if more than one possible ancestor activity instance exists
-
-