Class ScriptTaskActivityBehavior

    • Field Detail

      • resultVariable

        protected java.lang.String resultVariable
    • Constructor Detail

      • ScriptTaskActivityBehavior

        public ScriptTaskActivityBehavior​(ExecutableScript script,
                                          java.lang.String resultVariable)
    • Method Detail

      • performExecution

        public void performExecution​(ActivityExecution execution)
                              throws java.lang.Exception
        Description copied from class: TaskActivityBehavior
        The method which should be overridden by the sub classes to perform an execution.
        Overrides:
        performExecution in class TaskActivityBehavior
        Parameters:
        execution - the execution which is used during performing the execution
        Throws:
        java.lang.Exception
      • checkIfCauseOfExceptionIsBpmnError

        protected BpmnError checkIfCauseOfExceptionIsBpmnError​(java.lang.Throwable e)
        Searches recursively through the exception to see if the exception itself or one of its causes is a BpmnError.
        Parameters:
        e - the exception to check
        Returns:
        the BpmnError that was the cause of this exception or null if no BpmnError was found