Package org.activiti.engine.impl.cmd
Class TriggerCmd
- java.lang.Object
-
- org.activiti.engine.impl.cmd.NeedsActiveExecutionCmd<java.lang.Object>
-
- org.activiti.engine.impl.cmd.TriggerCmd
-
- All Implemented Interfaces:
java.io.Serializable,Command<java.lang.Object>
public class TriggerCmd extends NeedsActiveExecutionCmd<java.lang.Object>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.lang.Object>processVariablesprotected java.util.Map<java.lang.String,java.lang.Object>transientVariables-
Fields inherited from class org.activiti.engine.impl.cmd.NeedsActiveExecutionCmd
executionId
-
-
Constructor Summary
Constructors Constructor Description TriggerCmd(java.lang.String executionId, java.util.Map<java.lang.String,java.lang.Object> processVariables)TriggerCmd(java.lang.String executionId, java.util.Map<java.lang.String,java.lang.Object> processVariables, java.util.Map<java.lang.String,java.lang.Object> transientVariables)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Objectexecute(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.-
Methods inherited from class org.activiti.engine.impl.cmd.NeedsActiveExecutionCmd
execute
-
-
-
-
Constructor Detail
-
TriggerCmd
public TriggerCmd(java.lang.String executionId, java.util.Map<java.lang.String,java.lang.Object> processVariables)
-
TriggerCmd
public TriggerCmd(java.lang.String executionId, java.util.Map<java.lang.String,java.lang.Object> processVariables, java.util.Map<java.lang.String,java.lang.Object> transientVariables)
-
-
Method Detail
-
execute
protected java.lang.Object execute(CommandContext commandContext, ExecutionEntity execution)
Description copied from class:NeedsActiveExecutionCmdSubclasses should implement this method. The providedExecutionEntityis guaranteed to be active (ie. not suspended).- Specified by:
executein classNeedsActiveExecutionCmd<java.lang.Object>
-
getSuspendedExceptionMessage
protected java.lang.String getSuspendedExceptionMessage()
Description copied from class:NeedsActiveExecutionCmdSubclasses can override this to provide a more detailed exception message that will be thrown when the execution is suspended.- Overrides:
getSuspendedExceptionMessagein classNeedsActiveExecutionCmd<java.lang.Object>
-
-