Class ScriptingCmmnUtils
java.lang.Object
com.flowable.platform.engine.impl.scripting.ScriptingCmmnUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidthrowFault(String faultCode) Throws a CMMN fault which can be handled in the model by fault sentries withstandardEvent="fault".voidthrowFault(String faultCode, String message) Throws a CMMN fault which can be handled in the model by fault sentries withstandardEvent="fault".
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ScriptingCmmnUtils
public ScriptingCmmnUtils()
-
-
Method Details
-
throwFault
Throws a CMMN fault which can be handled in the model by fault sentries withstandardEvent="fault". 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:
faultCode- the fault code used as reference in CMMN sentries.message- additional message to carry.
-
throwFault
Throws a CMMN fault which can be handled in the model by fault sentries withstandardEvent="fault". For scripts that may run in either BPMN or CMMN contexts, preferScriptingErrorUtils.throwBusinessError(String)(flw.error.throwBusinessError) instead.- Parameters:
faultCode- the fault code used as reference in CMMN sentries.
-