Class ScriptingCmmnUtils

java.lang.Object
com.flowable.platform.engine.impl.scripting.ScriptingCmmnUtils

public class ScriptingCmmnUtils extends Object
  • Field Details

  • Constructor Details

    • ScriptingCmmnUtils

      public ScriptingCmmnUtils()
  • Method Details

    • throwFault

      public void throwFault(String faultCode, String message)
      Throws a CMMN fault which can be handled in the model by fault sentries with standardEvent="fault". For scripts that may run in either BPMN or CMMN contexts, prefer ScriptingErrorUtils.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

      public void throwFault(String faultCode)
      Throws a CMMN fault which can be handled in the model by fault sentries with standardEvent="fault". For scripts that may run in either BPMN or CMMN contexts, prefer ScriptingErrorUtils.throwBusinessError(String) (flw.error.throwBusinessError) instead.
      Parameters:
      faultCode - the fault code used as reference in CMMN sentries.