org.camunda.bpm.model.bpmn.builder
Class AbstractMessageEventDefinitionBuilder<B extends AbstractMessageEventDefinitionBuilder<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,MessageEventDefinition>
              extended by org.camunda.bpm.model.bpmn.builder.AbstractMessageEventDefinitionBuilder<B>
Direct Known Subclasses:
MessageEventDefinitionBuilder

public abstract class AbstractMessageEventDefinitionBuilder<B extends AbstractMessageEventDefinitionBuilder<B>>
extends AbstractRootElementBuilder<B,MessageEventDefinition>

Author:
Christopher Zell

Field Summary
 
Fields inherited from class org.camunda.bpm.model.bpmn.builder.AbstractBpmnModelElementBuilder
element, modelInstance, myself
 
Constructor Summary
AbstractMessageEventDefinitionBuilder(BpmnModelInstance modelInstance, MessageEventDefinition element, Class<?> selfType)
           
 
Method Summary
 B camundaTaskPriority(String taskPriority)
          Sets the camunda task priority attribute.
 B camundaTopic(String camundaTopic)
          Sets the camunda topic attribute.
 B camundaType(String camundaType)
          Sets the camunda type attribute.
 B id(String identifier)
          Sets the identifier of the element.
 B message(String message)
          Sets the message attribute.
<T extends AbstractFlowNodeBuilder>
T
messageEventDefinitionDone()
          Finishes the building of a message event definition.
 
Methods inherited from class org.camunda.bpm.model.bpmn.builder.AbstractBaseElementBuilder
addExtensionElement, createChild, createChild, createChild, createChild, createCompensateEventDefinition, createEmptyMessageEventDefinition, createErrorEventDefinition, createEscalationEventDefinition, createInstance, createInstance, createMessageEventDefinition, createSibling, createSibling, createSignalEventDefinition, findErrorForNameAndCode, findEscalationForCode, findMessageForName, findSignalForName, getCreateSingleChild, getCreateSingleChild, getCreateSingleExtensionElement
 
Methods inherited from class org.camunda.bpm.model.bpmn.builder.AbstractBpmnModelElementBuilder
done, subProcessDone, transactionDone
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMessageEventDefinitionBuilder

public AbstractMessageEventDefinitionBuilder(BpmnModelInstance modelInstance,
                                             MessageEventDefinition element,
                                             Class<?> selfType)
Method Detail

id

public B id(String identifier)
Description copied from class: AbstractBaseElementBuilder
Sets the identifier of the element.

Overrides:
id in class AbstractBaseElementBuilder<B extends AbstractMessageEventDefinitionBuilder<B>,MessageEventDefinition>
Parameters:
identifier - the identifier to set
Returns:
the builder object

message

public B message(String message)
Sets the message attribute.

Parameters:
message - the message for the message event definition
Returns:
the builder object

camundaTopic

public B camundaTopic(String camundaTopic)
Sets the camunda topic attribute. This is only meaningful when the camundaType(String) attribute has the value external.

Parameters:
camundaTopic - the topic to set
Returns:
the builder object

camundaType

public B camundaType(String camundaType)
Sets the camunda type attribute.

Parameters:
camundaType - the type of the service task
Returns:
the builder object

camundaTaskPriority

public B camundaTaskPriority(String taskPriority)
Sets the camunda task priority attribute. This is only meaningful when the camundaType(String) attribute has the value external.

Parameters:
taskPriority - the priority for the external task
Returns:
the builder object

messageEventDefinitionDone

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

Type Parameters:
T -
Returns:
the parent event builder


Copyright © 2016 camunda services GmbH. All rights reserved.