Package org.activiti.engine.impl.cmd
Class ClaimTaskCmd
- java.lang.Object
-
- org.activiti.engine.impl.cmd.NeedsActiveTaskCmd<java.lang.Void>
-
- org.activiti.engine.impl.cmd.ClaimTaskCmd
-
- All Implemented Interfaces:
java.io.Serializable
,Command<java.lang.Void>
public class ClaimTaskCmd extends NeedsActiveTaskCmd<java.lang.Void>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
userId
-
Fields inherited from class org.activiti.engine.impl.cmd.NeedsActiveTaskCmd
taskId
-
-
Constructor Summary
Constructors Constructor Description ClaimTaskCmd(java.lang.String taskId, java.lang.String userId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Void
execute(CommandContext commandContext, TaskEntity task)
Subclasses must implement in this method their normal command logic.protected java.lang.String
getSuspendedTaskException()
Subclasses can override this method to provide a customized exception message that will be thrown when the task is suspended.-
Methods inherited from class org.activiti.engine.impl.cmd.NeedsActiveTaskCmd
execute
-
-
-
-
Method Detail
-
execute
protected java.lang.Void execute(CommandContext commandContext, TaskEntity task)
Description copied from class:NeedsActiveTaskCmd
Subclasses must implement in this method their normal command logic. The provided task is ensured to be active.- Specified by:
execute
in classNeedsActiveTaskCmd<java.lang.Void>
-
getSuspendedTaskException
protected java.lang.String getSuspendedTaskException()
Description copied from class:NeedsActiveTaskCmd
Subclasses can override this method to provide a customized exception message that will be thrown when the task is suspended.- Overrides:
getSuspendedTaskException
in classNeedsActiveTaskCmd<java.lang.Void>
-
-