Class ScriptingBpmnUtils

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

public class ScriptingBpmnUtils extends Object
Author:
Arthur Hupka-Merle
  • Field Details

  • Constructor Details

    • ScriptingBpmnUtils

      public ScriptingBpmnUtils()
  • Method Details

    • throwError

      public void throwError(String errorCode, String message)
      Throws an BPMN Error which can be handled in the model by Error start events or Error boundary events. 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:
      errorCode - the BPMN error code used as reference in BPMN models.
      message - additional message to carry.
    • throwError

      public void throwError(String errorCode)
      Throws an BPMN Error which can be handled in the model by Error start events or Error boundary events. For scripts that may run in either BPMN or CMMN contexts, prefer ScriptingErrorUtils.throwBusinessError(String) (flw.error.throwBusinessError) instead.
      Parameters:
      errorCode - the BPMN error code used as reference in BPMN models.