Package org.camunda.bpm.engine.impl.cmd
Class SetTaskNameCmd
java.lang.Object
org.camunda.bpm.engine.impl.cmd.AbstractSetTaskPropertyCmd<String>
org.camunda.bpm.engine.impl.cmd.SetTaskNameCmd
- All Implemented Interfaces:
Serializable,Command<Void>
Command to change a Task's name to a new value.
- See Also:
-
Field Summary
Fields inherited from class org.camunda.bpm.engine.impl.cmd.AbstractSetTaskPropertyCmd
taskId, value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecuteSetOperation(TaskEntity task, String value) Executes the set operation of the concrete command.protected StringReturns the User Operation Log name that corresponds to this command.Methods inherited from class org.camunda.bpm.engine.impl.cmd.AbstractSetTaskPropertyCmd
checkTaskAgainstContext, ensureNotNullAndGet, execute, logOperation, validateAndGet
-
Constructor Details
-
SetTaskNameCmd
Public Constructor.- Parameters:
taskId- the id of the referenced task, non-nullname- the new name value to set, non-null- Throws:
NullValueException- in case the given taskId or the given name value are null
-
-
Method Details
-
getUserOperationLogName
Description copied from class:AbstractSetTaskPropertyCmdReturns the User Operation Log name that corresponds to this command. Meant to be implemented by concretions.- Specified by:
getUserOperationLogNamein classAbstractSetTaskPropertyCmd<String>- Returns:
- the user operation log name
-
executeSetOperation
Description copied from class:AbstractSetTaskPropertyCmdExecutes the set operation of the concrete command.- Specified by:
executeSetOperationin classAbstractSetTaskPropertyCmd<String>- Parameters:
task- the task entity on which to set a propertyvalue- the value to se
-