use of org.camunda.bpm.engine.impl.core.variable.mapping.InputParameter in project camunda-bpm-platform by camunda.
the class BpmnParseUtil method parseInputParameterElement.
/**
* Parses a input parameter and adds it to the {@link IoMapping}.
*
* @param inputParameterElement the input parameter element
* @param ioMapping the mapping to add the element
* @throws BpmnParseException if the input parameter element is malformed
*/
public static void parseInputParameterElement(Element inputParameterElement, IoMapping ioMapping) {
String nameAttribute = inputParameterElement.attribute("name");
if (nameAttribute == null || nameAttribute.isEmpty()) {
throw new BpmnParseException("Missing attribute 'name' for inputParameter", inputParameterElement);
}
ParameterValueProvider valueProvider = parseNestedParamValueProvider(inputParameterElement);
// add parameter
ioMapping.addInputParameter(new InputParameter(nameAttribute, valueProvider));
}
Aggregations