Search in sources :

Example 6 with CamundaOutputParameter

use of org.camunda.bpm.model.bpmn.instance.camunda.CamundaOutputParameter in project camunda-bpmn-model by camunda.

the class AbstractEventBuilder method camundaOutputParameter.

/**
 * Creates a new camunda output parameter extension element with the
 * given name and value.
 *
 * @param name the name of the output parameter
 * @param value the value of the output parameter
 * @return the builder object
 */
public B camundaOutputParameter(String name, String value) {
    CamundaInputOutput camundaInputOutput = getCreateSingleExtensionElement(CamundaInputOutput.class);
    CamundaOutputParameter camundaOutputParameter = createChild(camundaInputOutput, CamundaOutputParameter.class);
    camundaOutputParameter.setCamundaName(name);
    camundaOutputParameter.setTextContent(value);
    return myself;
}
Also used : CamundaOutputParameter(org.camunda.bpm.model.bpmn.instance.camunda.CamundaOutputParameter) CamundaInputOutput(org.camunda.bpm.model.bpmn.instance.camunda.CamundaInputOutput)

Aggregations

CamundaOutputParameter (org.camunda.bpm.model.bpmn.instance.camunda.CamundaOutputParameter)6 CamundaInputOutput (org.camunda.bpm.model.bpmn.instance.camunda.CamundaInputOutput)4 CamundaInputParameter (org.camunda.bpm.model.bpmn.instance.camunda.CamundaInputParameter)2 Test (org.junit.Test)2 ArrayList (java.util.ArrayList)1 BpmnModelElementInstance (org.camunda.bpm.model.bpmn.instance.BpmnModelElementInstance)1 CamundaConnector (org.camunda.bpm.model.bpmn.instance.camunda.CamundaConnector)1 CamundaConnectorId (org.camunda.bpm.model.bpmn.instance.camunda.CamundaConnectorId)1 CamundaEntry (org.camunda.bpm.model.bpmn.instance.camunda.CamundaEntry)1 CamundaList (org.camunda.bpm.model.bpmn.instance.camunda.CamundaList)1 CamundaMap (org.camunda.bpm.model.bpmn.instance.camunda.CamundaMap)1 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)1 ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)1