org.camunda.bpm.model.bpmn.builder
Class AbstractConditionalEventDefinitionBuilder<B extends AbstractConditionalEventDefinitionBuilder<B>>

java.lang.Object
  extended by org.camunda.bpm.model.bpmn.builder.AbstractBpmnModelElementBuilder<B,E>
      extended by org.camunda.bpm.model.bpmn.builder.AbstractBaseElementBuilder<B,E>
          extended by org.camunda.bpm.model.bpmn.builder.AbstractRootElementBuilder<B,ConditionalEventDefinition>
              extended by org.camunda.bpm.model.bpmn.builder.AbstractConditionalEventDefinitionBuilder<B>
Type Parameters:
B -
Direct Known Subclasses:
ConditionalEventDefinitionBuilder

public class AbstractConditionalEventDefinitionBuilder<B extends AbstractConditionalEventDefinitionBuilder<B>>
extends AbstractRootElementBuilder<B,ConditionalEventDefinition>

Represents the abstract conditional event definition builder.

Author:
Christopher Zell

Field Summary
 
Fields inherited from class org.camunda.bpm.model.bpmn.builder.AbstractBaseElementBuilder
SPACE
 
Fields inherited from class org.camunda.bpm.model.bpmn.builder.AbstractBpmnModelElementBuilder
element, modelInstance, myself
 
Constructor Summary
AbstractConditionalEventDefinitionBuilder(BpmnModelInstance modelInstance, ConditionalEventDefinition element, Class<?> selfType)
           
 
Method Summary
 B camundaVariableEvents(List<String> variableEvents)
          Set the camunda variable events attribute, that defines the variable event on which the condition should be evaluated.
 B camundaVariableEvents(String variableEvents)
          Set the camunda variable events attribute, that defines the variable event on which the condition should be evaluated.
 B camundaVariableName(String variableName)
          Sets the camunda variable name attribute, that defines on which variable the condition should be evaluated.
 B condition(String conditionText)
          Sets the condition of the conditional event definition.
<T extends AbstractFlowNodeBuilder>
T
conditionalEventDefinitionDone()
          Finishes the building of a conditional event definition.
 
Methods inherited from class org.camunda.bpm.model.bpmn.builder.AbstractBaseElementBuilder
addExtensionElement, createBpmnEdge, createBpmnShape, createChild, createChild, createChild, createChild, createCompensateEventDefinition, createEdge, createEmptyErrorEventDefinition, createEmptyMessageEventDefinition, createErrorEventDefinition, createEscalationEventDefinition, createInstance, createInstance, createMessageEventDefinition, createSibling, createSibling, createSignalEventDefinition, findBpmnEdge, findBpmnPlane, findBpmnShape, findErrorDefinitionForCode, findErrorForNameAndCode, findEscalationForCode, findMessageForName, findSignalForName, getCreateSingleChild, getCreateSingleChild, getCreateSingleExtensionElement, id, resizeSubProcess, setCoordinates, setWaypoints, setWaypointsWithSourceAndTarget
 
Methods inherited from class org.camunda.bpm.model.bpmn.builder.AbstractBpmnModelElementBuilder
done, getElement, subProcessDone, transactionDone
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractConditionalEventDefinitionBuilder

public AbstractConditionalEventDefinitionBuilder(BpmnModelInstance modelInstance,
                                                 ConditionalEventDefinition element,
                                                 Class<?> selfType)
Method Detail

condition

public B condition(String conditionText)
Sets the condition of the conditional event definition.

Parameters:
conditionText - the condition which should be evaluate to true or false
Returns:
the builder object

camundaVariableName

public B camundaVariableName(String variableName)
Sets the camunda variable name attribute, that defines on which variable the condition should be evaluated.

Parameters:
variableName - the variable on which the condition should be evaluated
Returns:
the builder object

camundaVariableEvents

public B camundaVariableEvents(String variableEvents)
Set the camunda variable events attribute, that defines the variable event on which the condition should be evaluated.

Parameters:
variableEvents - the events on which the condition should be evaluated
Returns:
the builder object

camundaVariableEvents

public B camundaVariableEvents(List<String> variableEvents)
Set the camunda variable events attribute, that defines the variable event on which the condition should be evaluated.

Parameters:
variableEvents - the events on which the condition should be evaluated
Returns:
the builder object

conditionalEventDefinitionDone

public <T extends AbstractFlowNodeBuilder> T conditionalEventDefinitionDone()
Finishes the building of a conditional event definition.

Type Parameters:
T -
Returns:
the parent event builder


Copyright © 2017 camunda services GmbH. All rights reserved.