org.camunda.bpm.model.bpmn.instance.Message Java Examples

The following examples show how to use org.camunda.bpm.model.bpmn.instance.Message. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MessageImpl.java    From camunda-bpm-platform with Apache License 2.0 6 votes vote down vote up
public static void registerType(ModelBuilder modelBuilder) {
  ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Message.class, BPMN_ELEMENT_MESSAGE)
    .namespaceUri(BPMN20_NS)
    .extendsType(RootElement.class)
    .instanceProvider(new ModelElementTypeBuilder.ModelTypeInstanceProvider<Message>() {
      public Message newInstance(ModelTypeInstanceContext instanceContext) {
        return new MessageImpl(instanceContext);
      }
    });

  nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME)
    .build();

  itemRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_ITEM_REF)
    .qNameAttributeReference(ItemDefinition.class)
    .build();

  typeBuilder.build();
}
 
Example #2
Source File: MessageImpl.java    From camunda-bpmn-model with Apache License 2.0 6 votes vote down vote up
public static void registerType(ModelBuilder modelBuilder) {
  ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Message.class, BPMN_ELEMENT_MESSAGE)
    .namespaceUri(BPMN20_NS)
    .extendsType(RootElement.class)
    .instanceProvider(new ModelElementTypeBuilder.ModelTypeInstanceProvider<Message>() {
      public Message newInstance(ModelTypeInstanceContext instanceContext) {
        return new MessageImpl(instanceContext);
      }
    });

  nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME)
    .build();

  itemRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_ITEM_REF)
    .qNameAttributeReference(ItemDefinition.class)
    .build();

  typeBuilder.build();
}
 
Example #3
Source File: CorrelationPropertyRetrievalExpressionImpl.java    From camunda-bpmn-model with Apache License 2.0 6 votes vote down vote up
public static void registerType(ModelBuilder modelBuilder) {
  ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(CorrelationPropertyRetrievalExpression.class, BPMN_ELEMENT_CORRELATION_PROPERTY_RETRIEVAL_EXPRESSION)
    .namespaceUri(BPMN20_NS)
    .extendsType(BaseElement.class)
    .instanceProvider(new ModelTypeInstanceProvider<CorrelationPropertyRetrievalExpression>() {
      public CorrelationPropertyRetrievalExpression newInstance(ModelTypeInstanceContext instanceContext) {
        return new CorrelationPropertyRetrievalExpressionImpl(instanceContext);
      }
    });

  messageRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_MESSAGE_REF)
    .required()
    .qNameAttributeReference(Message.class)
    .build();

  SequenceBuilder sequenceBuilder = typeBuilder.sequence();

  messagePathChild = sequenceBuilder.element(MessagePath.class)
    .required()
    .build();

  typeBuilder.build();
}
 
Example #4
Source File: CorrelationPropertyRetrievalExpressionImpl.java    From camunda-bpm-platform with Apache License 2.0 6 votes vote down vote up
public static void registerType(ModelBuilder modelBuilder) {
  ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(CorrelationPropertyRetrievalExpression.class, BPMN_ELEMENT_CORRELATION_PROPERTY_RETRIEVAL_EXPRESSION)
    .namespaceUri(BPMN20_NS)
    .extendsType(BaseElement.class)
    .instanceProvider(new ModelTypeInstanceProvider<CorrelationPropertyRetrievalExpression>() {
      public CorrelationPropertyRetrievalExpression newInstance(ModelTypeInstanceContext instanceContext) {
        return new CorrelationPropertyRetrievalExpressionImpl(instanceContext);
      }
    });

  messageRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_MESSAGE_REF)
    .required()
    .qNameAttributeReference(Message.class)
    .build();

  SequenceBuilder sequenceBuilder = typeBuilder.sequence();

  messagePathChild = sequenceBuilder.element(MessagePath.class)
    .required()
    .build();

  typeBuilder.build();
}
 
Example #5
Source File: OperationImpl.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
public static void registerType(ModelBuilder modelBuilder) {
  ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Operation.class, BPMN_ELEMENT_OPERATION)
    .namespaceUri(BPMN20_NS)
    .extendsType(BaseElement.class)
    .instanceProvider(new ModelTypeInstanceProvider<Operation>() {
      public Operation newInstance(ModelTypeInstanceContext instanceContext) {
        return new OperationImpl(instanceContext);
      }
    });

  nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME)
    .required()
    .build();

  implementationRefAttribute = typeBuilder.stringAttribute(BPMN_ELEMENT_IMPLEMENTATION_REF)
    .build();

  SequenceBuilder sequenceBuilder = typeBuilder.sequence();

  inMessageRefChild = sequenceBuilder.element(InMessageRef.class)
    .required()
    .qNameElementReference(Message.class)
    .build();

  outMessageRefChild = sequenceBuilder.element(OutMessageRef.class)
    .qNameElementReference(Message.class)
    .build();

  errorRefCollection = sequenceBuilder.elementCollection(ErrorRef.class)
    .qNameElementReferenceCollection(Error.class)
    .build();

  typeBuilder.build();
}
 
Example #6
Source File: MessageFlowImpl.java    From camunda-bpmn-model with Apache License 2.0 5 votes vote down vote up
public static void registerType(ModelBuilder modelBuilder) {
  ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(MessageFlow.class, BPMN_ELEMENT_MESSAGE_FLOW)
    .namespaceUri(BPMN20_NS)
    .extendsType(BaseElement.class)
    .instanceProvider(new ModelTypeInstanceProvider<MessageFlow>() {
      public MessageFlow newInstance(ModelTypeInstanceContext instanceContext) {
        return new MessageFlowImpl(instanceContext);
      }
    });

  nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME)
    .build();

  sourceRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_SOURCE_REF)
    .required()
    .qNameAttributeReference(InteractionNode.class)
    .build();

  targetRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_TARGET_REF)
    .required()
    .qNameAttributeReference(InteractionNode.class)
    .build();

  messageRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_MESSAGE_REF)
    .qNameAttributeReference(Message.class)
    .build();

  typeBuilder.build();
}
 
Example #7
Source File: OperationImpl.java    From camunda-bpmn-model with Apache License 2.0 5 votes vote down vote up
public static void registerType(ModelBuilder modelBuilder) {
  ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Operation.class, BPMN_ELEMENT_OPERATION)
    .namespaceUri(BPMN20_NS)
    .extendsType(BaseElement.class)
    .instanceProvider(new ModelTypeInstanceProvider<Operation>() {
      public Operation newInstance(ModelTypeInstanceContext instanceContext) {
        return new OperationImpl(instanceContext);
      }
    });

  nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME)
    .required()
    .build();

  implementationRefAttribute = typeBuilder.stringAttribute(BPMN_ELEMENT_IMPLEMENTATION_REF)
    .build();

  SequenceBuilder sequenceBuilder = typeBuilder.sequence();

  inMessageRefChild = sequenceBuilder.element(InMessageRef.class)
    .required()
    .qNameElementReference(Message.class)
    .build();

  outMessageRefChild = sequenceBuilder.element(OutMessageRef.class)
    .qNameElementReference(Message.class)
    .build();

  errorRefCollection = sequenceBuilder.elementCollection(ErrorRef.class)
    .qNameElementReferenceCollection(Error.class)
    .build();

  typeBuilder.build();
}
 
Example #8
Source File: ReceiveTaskImpl.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
public static void registerType(ModelBuilder modelBuilder) {
  ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ReceiveTask.class, BPMN_ELEMENT_RECEIVE_TASK)
    .namespaceUri(BPMN20_NS)
    .extendsType(Task.class)
    .instanceProvider(new ModelTypeInstanceProvider<ReceiveTask>() {
      public ReceiveTask newInstance(ModelTypeInstanceContext instanceContext) {
        return new ReceiveTaskImpl(instanceContext);
      }
    });

  implementationAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_IMPLEMENTATION)
    .defaultValue("##WebService")
    .build();

  instantiateAttribute = typeBuilder.booleanAttribute(BPMN_ATTRIBUTE_INSTANTIATE)
    .defaultValue(false)
    .build();

  messageRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_MESSAGE_REF)
    .qNameAttributeReference(Message.class)
    .build();

  operationRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_OPERATION_REF)
    .qNameAttributeReference(Operation.class)
    .build();

  typeBuilder.build();
}
 
Example #9
Source File: MessageFlowImpl.java    From camunda-bpm-platform with Apache License 2.0 5 votes vote down vote up
public static void registerType(ModelBuilder modelBuilder) {
  ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(MessageFlow.class, BPMN_ELEMENT_MESSAGE_FLOW)
    .namespaceUri(BPMN20_NS)
    .extendsType(BaseElement.class)
    .instanceProvider(new ModelTypeInstanceProvider<MessageFlow>() {
      public MessageFlow newInstance(ModelTypeInstanceContext instanceContext) {
        return new MessageFlowImpl(instanceContext);
      }
    });

  nameAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_NAME)
    .build();

  sourceRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_SOURCE_REF)
    .required()
    .qNameAttributeReference(InteractionNode.class)
    .build();

  targetRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_TARGET_REF)
    .required()
    .qNameAttributeReference(InteractionNode.class)
    .build();

  messageRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_MESSAGE_REF)
    .qNameAttributeReference(Message.class)
    .build();

  typeBuilder.build();
}
 
Example #10
Source File: ReceiveTaskImpl.java    From camunda-bpmn-model with Apache License 2.0 5 votes vote down vote up
public static void registerType(ModelBuilder modelBuilder) {
  ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ReceiveTask.class, BPMN_ELEMENT_RECEIVE_TASK)
    .namespaceUri(BPMN20_NS)
    .extendsType(Task.class)
    .instanceProvider(new ModelTypeInstanceProvider<ReceiveTask>() {
      public ReceiveTask newInstance(ModelTypeInstanceContext instanceContext) {
        return new ReceiveTaskImpl(instanceContext);
      }
    });

  implementationAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_IMPLEMENTATION)
    .defaultValue("##WebService")
    .build();

  instantiateAttribute = typeBuilder.booleanAttribute(BPMN_ATTRIBUTE_INSTANTIATE)
    .defaultValue(false)
    .build();

  messageRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_MESSAGE_REF)
    .qNameAttributeReference(Message.class)
    .build();

  operationRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_OPERATION_REF)
    .qNameAttributeReference(Operation.class)
    .build();

  typeBuilder.build();
}
 
Example #11
Source File: OperationImpl.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
public Message getOutMessage() {
  return outMessageRefChild.getReferenceTargetElement(this);
}
 
Example #12
Source File: TestBPMModule.java    From Orienteer with Apache License 2.0 4 votes vote down vote up
@Test
public void testDeployProcess() {

	BpmnModelInstance model = Bpmn.createExecutableProcess("testProcess").done();

	Message message1 = model.newInstance(Message.class);
	message1.setName("orderCancelled");
	model.getDefinitions().addChildElement(message1);

	Message message2 = model.newInstance(Message.class);
	message2.setName("orderCompleted");
	model.getDefinitions().addChildElement(message2);

	BpmnModelInstance theProcess = model.<Process> getModelElementById("testProcess").builder().startEvent()
			.parallelGateway().receiveTask().message(message1).endEvent().moveToLastGateway().receiveTask()
			.message(message2).endEvent().done();

	ProcessEngine processEngine = processEngineRule.getProcessEngine();

	org.camunda.bpm.engine.repository.Deployment deployment = processEngine.getRepositoryService()
			.createDeployment().addModelInstance("test.bpmn", theProcess).deploy();

	Map<String, Object> vars = new HashMap<String, Object>();
	vars.put("testVar", "testVarValue");
	ProcessInstance processInstance = processEngine.getRuntimeService().startProcessInstanceByKey("testProcess",
			vars);

	String varValue = (String) processEngine.getRuntimeService().getVariable(processInstance.getId(), "testVar");
	assertEquals("testVarValue", varValue);

	processEngine.getRuntimeService().setVariable(processInstance.getId(), "testVar2", new Boolean(true));

	Boolean varValue2 = (Boolean) processEngine.getRuntimeService().getVariable(processInstance.getId(),
			"testVar2");
	assertEquals(Boolean.TRUE, varValue2);

	List<Execution> executions = processEngine.getRuntimeService().createExecutionQuery()
			.processInstanceId(processInstance.getId()).list();

	String executionId = null;
	for (Execution execution : executions) {
		if (!execution.getId().equals(processInstance.getId())) {
			executionId = execution.getId();
			LOG.info("Creating local variable for execution id: " + executionId);
			processEngine.getRuntimeService().setVariableLocal(executionId, "testVarLocal", "testVarLocalValue");
			break;
		}
	}
	assertNotNull(executionId);
	String varValueLocal = (String) processEngine.getRuntimeService().getVariableLocal(executionId, "testVarLocal");
	assertEquals("testVarLocalValue", varValueLocal);

	processEngine.getRuntimeService().createMessageCorrelation("orderCancelled")
			.processInstanceId(processInstance.getId()).correlate();

	processEngine.getRuntimeService().createMessageCorrelation("orderCompleted")
			.processInstanceId(processInstance.getId()).correlate();

	assertProcessEnded(processInstance.getId());

	processEngine.getRepositoryService().deleteDeployment(deployment.getId(), true);

}
 
Example #13
Source File: OperationImpl.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
public void setOutMessage(Message message) {
  outMessageRefChild.setReferenceTargetElement(this, message);
}
 
Example #14
Source File: MessageFlowImpl.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
public Message getMessage() {
  return messageRefAttribute.getReferenceTargetElement(this);
}
 
Example #15
Source File: MessageFlowImpl.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
public void setMessage(Message message) {
  messageRefAttribute.setReferenceTargetElement(this, message);
}
 
Example #16
Source File: CorrelationPropertyRetrievalExpressionImpl.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
public Message getMessage() {
  return messageRefAttribute.getReferenceTargetElement(this);
}
 
Example #17
Source File: CorrelationPropertyRetrievalExpressionImpl.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
public void setMessage(Message message) {
  messageRefAttribute.setReferenceTargetElement(this, message);
}
 
Example #18
Source File: SendTaskImpl.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
public static void registerType(ModelBuilder modelBuilder) {
  ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(SendTask.class, BPMN_ELEMENT_SEND_TASK)
    .namespaceUri(BPMN20_NS)
    .extendsType(Task.class)
    .instanceProvider(new ModelTypeInstanceProvider<SendTask>() {
      public SendTask newInstance(ModelTypeInstanceContext instanceContext) {
        return new SendTaskImpl(instanceContext);
      }
    });

  implementationAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_IMPLEMENTATION)
    .defaultValue("##WebService")
    .build();

  messageRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_MESSAGE_REF)
    .qNameAttributeReference(Message.class)
    .build();

  operationRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_OPERATION_REF)
    .qNameAttributeReference(Operation.class)
    .build();

  /** camunda extensions */

  camundaClassAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_CLASS)
    .namespace(CAMUNDA_NS)
    .build();

  camundaDelegateExpressionAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_DELEGATE_EXPRESSION)
    .namespace(CAMUNDA_NS)
    .build();

  camundaExpressionAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_EXPRESSION)
    .namespace(CAMUNDA_NS)
    .build();

  camundaResultVariableAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_RESULT_VARIABLE)
    .namespace(CAMUNDA_NS)
    .build();

  camundaTopicAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_TOPIC)
      .namespace(CAMUNDA_NS)
      .build();

  camundaTypeAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_TYPE)
    .namespace(CAMUNDA_NS)
    .build();
  
  camundaTaskPriorityAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_TASK_PRIORITY)
    .namespace(CAMUNDA_NS)
    .build();

  typeBuilder.build();
}
 
Example #19
Source File: SendTaskImpl.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
public Message getMessage() {
  return messageRefAttribute.getReferenceTargetElement(this);
}
 
Example #20
Source File: SendTaskImpl.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
public void setMessage(Message message) {
  messageRefAttribute.setReferenceTargetElement(this, message);
}
 
Example #21
Source File: ReceiveTaskImpl.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
public Message getMessage() {
  return messageRefAttribute.getReferenceTargetElement(this);
}
 
Example #22
Source File: ReceiveTaskImpl.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
public void setMessage(Message message) {
  messageRefAttribute.setReferenceTargetElement(this, message);
}
 
Example #23
Source File: MessageEventDefinitionImpl.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
public static void registerType(ModelBuilder modelBuilder) {
  ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(MessageEventDefinition.class, BPMN_ELEMENT_MESSAGE_EVENT_DEFINITION)
    .namespaceUri(BPMN20_NS)
    .extendsType(EventDefinition.class)
    .instanceProvider(new ModelElementTypeBuilder.ModelTypeInstanceProvider<MessageEventDefinition>() {
      public MessageEventDefinition newInstance(ModelTypeInstanceContext instanceContext) {
        return new MessageEventDefinitionImpl(instanceContext);
      }
    });

  messageRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_MESSAGE_REF)
    .qNameAttributeReference(Message.class)
    .build();

  SequenceBuilder sequenceBuilder = typeBuilder.sequence();

  operationRefChild = sequenceBuilder.element(OperationRef.class)
    .qNameElementReference(Operation.class)
    .build();

  /** camunda extensions */

  camundaClassAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_CLASS)
    .namespace(CAMUNDA_NS)
    .build();

  camundaDelegateExpressionAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_DELEGATE_EXPRESSION)
    .namespace(CAMUNDA_NS)
    .build();

  camundaExpressionAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_EXPRESSION)
    .namespace(CAMUNDA_NS)
    .build();

  camundaResultVariableAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_RESULT_VARIABLE)
    .namespace(CAMUNDA_NS)
    .build();

  camundaTopicAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_TOPIC)
      .namespace(CAMUNDA_NS)
      .build();

  camundaTypeAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_TYPE)
      .namespace(CAMUNDA_NS)
      .build();
      
  camundaTaskPriorityAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_TASK_PRIORITY)
    .namespace(CAMUNDA_NS)
    .build();

  typeBuilder.build();
}
 
Example #24
Source File: MessageEventDefinitionImpl.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
public Message getMessage() {
  return messageRefAttribute.getReferenceTargetElement(this);
}
 
Example #25
Source File: MessageEventDefinitionImpl.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
public void setMessage(Message message) {
  messageRefAttribute.setReferenceTargetElement(this, message);
}
 
Example #26
Source File: SendTaskImpl.java    From camunda-bpmn-model with Apache License 2.0 4 votes vote down vote up
public static void registerType(ModelBuilder modelBuilder) {
  ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(SendTask.class, BPMN_ELEMENT_SEND_TASK)
    .namespaceUri(BPMN20_NS)
    .extendsType(Task.class)
    .instanceProvider(new ModelTypeInstanceProvider<SendTask>() {
      public SendTask newInstance(ModelTypeInstanceContext instanceContext) {
        return new SendTaskImpl(instanceContext);
      }
    });

  implementationAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_IMPLEMENTATION)
    .defaultValue("##WebService")
    .build();

  messageRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_MESSAGE_REF)
    .qNameAttributeReference(Message.class)
    .build();

  operationRefAttribute = typeBuilder.stringAttribute(BPMN_ATTRIBUTE_OPERATION_REF)
    .qNameAttributeReference(Operation.class)
    .build();

  /** camunda extensions */

  camundaClassAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_CLASS)
    .namespace(CAMUNDA_NS)
    .build();

  camundaDelegateExpressionAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_DELEGATE_EXPRESSION)
    .namespace(CAMUNDA_NS)
    .build();

  camundaExpressionAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_EXPRESSION)
    .namespace(CAMUNDA_NS)
    .build();

  camundaResultVariableAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_RESULT_VARIABLE)
    .namespace(CAMUNDA_NS)
    .build();

  camundaTopicAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_TOPIC)
      .namespace(CAMUNDA_NS)
      .build();

  camundaTypeAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_TYPE)
    .namespace(CAMUNDA_NS)
    .build();
  
  camundaTaskPriorityAttribute = typeBuilder.stringAttribute(CAMUNDA_ATTRIBUTE_TASK_PRIORITY)
    .namespace(CAMUNDA_NS)
    .build();

  typeBuilder.build();
}
 
Example #27
Source File: OperationImpl.java    From camunda-bpmn-model with Apache License 2.0 4 votes vote down vote up
public Message getInMessage() {
  return inMessageRefChild.getReferenceTargetElement(this);
}
 
Example #28
Source File: OperationImpl.java    From camunda-bpmn-model with Apache License 2.0 4 votes vote down vote up
public void setInMessage(Message message) {
  inMessageRefChild.setReferenceTargetElement(this, message);
}
 
Example #29
Source File: OperationImpl.java    From camunda-bpmn-model with Apache License 2.0 4 votes vote down vote up
public Message getOutMessage() {
  return outMessageRefChild.getReferenceTargetElement(this);
}
 
Example #30
Source File: OperationImpl.java    From camunda-bpmn-model with Apache License 2.0 4 votes vote down vote up
public void setOutMessage(Message message) {
  outMessageRefChild.setReferenceTargetElement(this, message);
}