Class ScriptingBpmnUtils
java.lang.Object
com.flowable.platform.engine.impl.scripting.ScriptingBpmnUtils
- Author:
- Arthur Hupka-Merle
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidthrowError(String errorCode) Throws an BPMN Error which can be handled in the model byError start eventsorError boundary events.voidthrowError(String errorCode, String message) Throws an BPMN Error which can be handled in the model byError start eventsorError boundary events.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ScriptingBpmnUtils
public ScriptingBpmnUtils()
-
-
Method Details
-
throwError
Throws an BPMN Error which can be handled in the model byError start eventsorError boundary events. For scripts that may run in either BPMN or CMMN contexts, preferScriptingErrorUtils.throwBusinessError(String, String)(flw.error.throwBusinessError) instead: it is caught by both BPMN error boundary events and CMMN fault sentries.- Parameters:
errorCode- the BPMN error code used as reference in BPMN models.message- additional message to carry.
-
throwError
Throws an BPMN Error which can be handled in the model byError start eventsorError boundary events. For scripts that may run in either BPMN or CMMN contexts, preferScriptingErrorUtils.throwBusinessError(String)(flw.error.throwBusinessError) instead.- Parameters:
errorCode- the BPMN error code used as reference in BPMN models.
-