Package org.camunda.bpm.engine.impl.pvm
Class ProcessDefinitionBuilder
- java.lang.Object
-
- org.camunda.bpm.engine.impl.pvm.ProcessDefinitionBuilder
-
public class ProcessDefinitionBuilder extends java.lang.Object
- Author:
- Tom Baeyens
-
-
Field Summary
Fields Modifier and Type Field Description protected ProcessDefinitionImpl
processDefinition
protected CoreModelElement
processElement
protected java.util.Deque<ScopeImpl>
scopeStack
protected TransitionImpl
transition
protected java.util.List<java.lang.Object[]>
unresolvedTransitions
-
Constructor Summary
Constructors Constructor Description ProcessDefinitionBuilder()
ProcessDefinitionBuilder(java.lang.String processDefinitionId)
-
Method Summary
-
-
-
Field Detail
-
processDefinition
protected ProcessDefinitionImpl processDefinition
-
scopeStack
protected java.util.Deque<ScopeImpl> scopeStack
-
processElement
protected CoreModelElement processElement
-
transition
protected TransitionImpl transition
-
unresolvedTransitions
protected java.util.List<java.lang.Object[]> unresolvedTransitions
-
-
Method Detail
-
createActivity
public ProcessDefinitionBuilder createActivity(java.lang.String id)
-
attachedTo
public ProcessDefinitionBuilder attachedTo(java.lang.String id, boolean isInterrupting)
-
endActivity
public ProcessDefinitionBuilder endActivity()
-
initial
public ProcessDefinitionBuilder initial()
-
startTransition
public ProcessDefinitionBuilder startTransition(java.lang.String destinationActivityId)
-
startTransition
public ProcessDefinitionBuilder startTransition(java.lang.String destinationActivityId, java.lang.String transitionId)
-
endTransition
public ProcessDefinitionBuilder endTransition()
-
transition
public ProcessDefinitionBuilder transition(java.lang.String destinationActivityId)
-
transition
public ProcessDefinitionBuilder transition(java.lang.String destinationActivityId, java.lang.String transitionId)
-
behavior
public ProcessDefinitionBuilder behavior(ActivityBehavior activityBehaviour)
-
property
public ProcessDefinitionBuilder property(java.lang.String name, java.lang.Object value)
-
buildProcessDefinition
public PvmProcessDefinition buildProcessDefinition()
-
getActivity
protected ActivityImpl getActivity()
-
scope
public ProcessDefinitionBuilder scope()
-
executionListener
public ProcessDefinitionBuilder executionListener(ExecutionListener executionListener)
-
executionListener
public ProcessDefinitionBuilder executionListener(java.lang.String eventName, ExecutionListener executionListener)
-
-