Class BpmnParseUtil
java.lang.Object
org.finos.fluxnova.bpm.engine.impl.bpmn.parser.BpmnParseUtil
Helper methods to reused for common parsing tasks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ElementfindFluxnovaExtensionElement(Element element, String extensionElementName) Returns the extension element in the configured custom extension namespace aliases and the given name.protected static ExpressionManagerstatic booleanisRestricted(Element element) Extracts the restricted attribute from a BPMN element.static booleanisTransient(Element element) Extracts the isTransient attribute from a BPMN element.parseFluxnovaExtensionProperties(Element element) static voidparseFluxnovaInputParameters(Element inputOutputElement, IoMapping ioMapping) Parses all input parameters of an input output element and adds them to theIoMapping.static voidparseFluxnovaOutputParameters(Element inputOutputElement, IoMapping ioMapping) Parses all output parameters of an input output element and adds them to theIoMapping.static ExecutableScriptparseFluxnovaScript(Element scriptElement) Parses a camunda script element.static IoMappingparseInputOutput(Element element) Returns theIoMappingof an element.static voidparseInputParameterElement(Element inputParameterElement, IoMapping ioMapping) Parses a input parameter and adds it to theIoMapping.protected static ParameterValueProviderparseNestedParamValueProvider(Element element) static voidparseOutputParameterElement(Element outputParameterElement, IoMapping ioMapping) Parses a output parameter and adds it to theIoMapping.protected static ParameterValueProviderparseParamValueProvider(Element parameterElement)
-
Constructor Details
-
BpmnParseUtil
public BpmnParseUtil()
-
-
Method Details
-
findFluxnovaExtensionElement
Returns the extension element in the configured custom extension namespace aliases and the given name.- Parameters:
element- the parent element of the extension elementextensionElementName- the name of the extension element to find- Returns:
- the extension element or null if not found
-
parseInputOutput
Returns theIoMappingof an element.- Parameters:
element- the element to parse- Returns:
- the input output mapping or null if non defined
- Throws:
BpmnParseException- if a input/output parameter element is malformed
-
parseFluxnovaInputParameters
Parses all input parameters of an input output element and adds them to theIoMapping.- Parameters:
inputOutputElement- the input output element to processioMapping- the input output mapping to add input parameters to- Throws:
BpmnParseException- if a input parameter element is malformed
-
parseFluxnovaOutputParameters
Parses all output parameters of an input output element and adds them to theIoMapping.- Parameters:
inputOutputElement- the input output element to processioMapping- the input output mapping to add input parameters to- Throws:
BpmnParseException- if a output parameter element is malformed
-
isRestricted
Extracts the restricted attribute from a BPMN element. The attribute is read from the Fluxnova extensions namespace first, falling back to the (legacy) Camunda namespace and finally to a non-namespaced attribute, for backwards compatibility with existing models. -
isTransient
Extracts the isTransient attribute from a BPMN element. The attribute is read from the Fluxnova extensions namespace first, falling back to the (legacy) Camunda namespace and finally to a non-namespaced attribute, for backwards compatibility with existing models. -
parseInputParameterElement
Parses a input parameter and adds it to theIoMapping.- Parameters:
inputParameterElement- the input parameter elementioMapping- the mapping to add the element- Throws:
BpmnParseException- if the input parameter element is malformed
-
parseOutputParameterElement
Parses a output parameter and adds it to theIoMapping.- Parameters:
outputParameterElement- the output parameter elementioMapping- the mapping to add the element- Throws:
BpmnParseException- if the output parameter element is malformed
-
parseNestedParamValueProvider
- Throws:
BpmnParseException- if the parameter is invalid
-
parseParamValueProvider
- Throws:
BpmnParseException- if the parameter is invalid
-
parseFluxnovaScript
Parses a camunda script element.- Parameters:
scriptElement- the script element ot parse- Returns:
- the generated executable script
- Throws:
BpmnParseException- if the a attribute is missing or the script cannot be processed
-
parseFluxnovaExtensionProperties
-
getExpressionManager
-