Class NeedsActiveExecutionCmd<T>

java.lang.Object
org.flowable.engine.impl.cmd.NeedsActiveExecutionCmd<T>
All Implemented Interfaces:
Serializable, Command<T>
Direct Known Subclasses:
EvaluateConditionalEventsCmd, MessageEventReceivedCmd, RemoveExecutionVariablesCmd, SetExecutionVariablesCmd, TriggerCmd

public abstract class NeedsActiveExecutionCmd<T> extends Object implements Command<T>, Serializable
Author:
Joram Barrez
See Also:
  • Field Details

    • executionId

      protected String executionId
  • Constructor Details

    • NeedsActiveExecutionCmd

      public NeedsActiveExecutionCmd(String executionId)
  • Method Details

    • execute

      public T execute(CommandContext commandContext)
      Specified by:
      execute in interface Command<T>
    • execute

      protected abstract T execute(CommandContext commandContext, ExecutionEntity execution)
      Subclasses should implement this method. The provided ExecutionEntity is guaranteed to be active (ie. not suspended).
    • getSuspendedExceptionMessagePrefix

      protected String getSuspendedExceptionMessagePrefix()
      Subclasses can override this to provide a more detailed exception message that will be thrown when the execution is suspended.