Search in sources :

Example 6 with CamundaInputOutput

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

the class AbstractActivityBuilder 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)

Example 7 with CamundaInputOutput

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

the class AbstractActivityBuilder method camundaInputParameter.

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

Example 8 with CamundaInputOutput

use of org.camunda.bpm.model.bpmn.instance.camunda.CamundaInputOutput 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

CamundaInputOutput (org.camunda.bpm.model.bpmn.instance.camunda.CamundaInputOutput)8 CamundaInputParameter (org.camunda.bpm.model.bpmn.instance.camunda.CamundaInputParameter)4 CamundaOutputParameter (org.camunda.bpm.model.bpmn.instance.camunda.CamundaOutputParameter)4 Test (org.junit.Test)2 ArrayList (java.util.ArrayList)1 CamundaConnector (org.camunda.bpm.model.bpmn.instance.camunda.CamundaConnector)1 CamundaConnectorId (org.camunda.bpm.model.bpmn.instance.camunda.CamundaConnectorId)1 ModelTypeInstanceContext (org.camunda.bpm.model.xml.impl.instance.ModelTypeInstanceContext)1 ModelElementTypeBuilder (org.camunda.bpm.model.xml.type.ModelElementTypeBuilder)1 SequenceBuilder (org.camunda.bpm.model.xml.type.child.SequenceBuilder)1