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
 T startAfterActivity(String activityId)
          Submits an instruction that behaves like startTransition(String) and always instantiates the single outgoing sequence flow of the given activity.
 T startBeforeActivity(String activityId)
          Submits the instruction:
 T startTransition(String transitionId)
          Submits the instruction:
 

Method Detail

startBeforeActivity

T startBeforeActivity(String activityId)

Submits the instruction:

Start before the specified activity.

In particular:

Parameters:
activityId - the activity to instantiate
Throws:
ProcessEngineException - if more than one possible ancestor activity instance exists

startAfterActivity

T startAfterActivity(String activityId)
Submits an instruction that behaves like startTransition(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(String transitionId)

Submits the instruction:

Start a sequence flow.

In particular:

Parameters:
transitionId - the sequence flow to execute
Throws:
ProcessEngineException - if more than one possible ancestor activity instance exists


Copyright © 2017 camunda services GmbH. All rights reserved.