Package org.activiti.engine.impl.cmd
Class NeedsActiveExecutionCmd<T>
- java.lang.Object
-
- org.activiti.engine.impl.cmd.NeedsActiveExecutionCmd<T>
-
- All Implemented Interfaces:
java.io.Serializable,Command<T>
- Direct Known Subclasses:
MessageEventReceivedCmd,RemoveExecutionVariablesCmd,SetExecutionVariablesCmd,TriggerCmd
public abstract class NeedsActiveExecutionCmd<T> extends java.lang.Object implements Command<T>, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringexecutionId
-
Constructor Summary
Constructors Constructor Description NeedsActiveExecutionCmd(java.lang.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 java.lang.StringgetSuspendedExceptionMessage()Subclasses can override this to provide a more detailed exception message that will be thrown when the execution is suspended.
-
-
-
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 java.lang.String getSuspendedExceptionMessage()
Subclasses can override this to provide a more detailed exception message that will be thrown when the execution is suspended.
-
-