org.camunda.bpm.model.bpmn.builder
Class AbstractBpmnModelElementBuilder<B extends AbstractBpmnModelElementBuilder<B,E>,E extends BpmnModelElementInstance>

java.lang.Object
  extended by org.camunda.bpm.model.bpmn.builder.AbstractBpmnModelElementBuilder<B,E>
Direct Known Subclasses:
AbstractBaseElementBuilder, AbstractCamundaFormFieldBuilder

public abstract class AbstractBpmnModelElementBuilder<B extends AbstractBpmnModelElementBuilder<B,E>,E extends BpmnModelElementInstance>
extends Object

Author:
Sebastian Menski

Field Summary
protected  E element
           
protected  BpmnModelInstance modelInstance
           
protected  B myself
           
 
Constructor Summary
protected AbstractBpmnModelElementBuilder(BpmnModelInstance modelInstance, E element, Class<?> selfType)
           
 
Method Summary
 BpmnModelInstance done()
          Finishes the process building.
 E getElement()
           
 SubProcessBuilder subProcessDone()
          Finishes the building of an embedded sub-process.
 TransactionBuilder transactionDone()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

modelInstance

protected final BpmnModelInstance modelInstance

element

protected final E extends BpmnModelElementInstance element

myself

protected final B extends AbstractBpmnModelElementBuilder<B,E> myself
Constructor Detail

AbstractBpmnModelElementBuilder

protected AbstractBpmnModelElementBuilder(BpmnModelInstance modelInstance,
                                          E element,
                                          Class<?> selfType)
Method Detail

done

public BpmnModelInstance done()
Finishes the process building.

Returns:
the model instance with the build process

subProcessDone

public SubProcessBuilder subProcessDone()
Finishes the building of an embedded sub-process.

Returns:
the parent sub-process builder
Throws:
BpmnModelException - if no parent sub-process can be found

transactionDone

public TransactionBuilder transactionDone()

getElement

public E getElement()


Copyright © 2017 camunda services GmbH. All rights reserved.