Package org.activiti.engine.impl.cmd
Class NeedsActiveExecutionCmd<T>
- java.lang.Object
-
- org.activiti.engine.impl.cmd.NeedsActiveExecutionCmd<T>
-
- All Implemented Interfaces:
Serializable,Command<T>
- Direct Known Subclasses:
MessageEventReceivedCmd,RemoveExecutionVariablesCmd,SetExecutionVariablesCmd,TriggerCmd
public abstract class NeedsActiveExecutionCmd<T> extends Object implements Command<T>, Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringexecutionId
-
Constructor Summary
Constructors Constructor Description NeedsActiveExecutionCmd(String executionId)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Texecute(CommandContext commandContext)protected abstract Texecute(CommandContext commandContext, ExecutionEntity execution)Subclasses should implement this method.protected StringgetSuspendedExceptionMessage()Subclasses can override this to provide a more detailed exception message that will be thrown when the execution is suspended.
-
-
-
Field Detail
-
executionId
protected String executionId
-
-
Constructor Detail
-
NeedsActiveExecutionCmd
public NeedsActiveExecutionCmd(String executionId)
-
-
Method Detail
-
execute
public T execute(CommandContext commandContext)
-
execute
protected abstract T execute(CommandContext commandContext, ExecutionEntity execution)
Subclasses should implement this method. The providedExecutionEntityis guaranteed to be active (ie. not suspended).
-
getSuspendedExceptionMessage
protected String getSuspendedExceptionMessage()
Subclasses can override this to provide a more detailed exception message that will be thrown when the execution is suspended.
-
-