Class CompleteTaskWithFormCmd
- java.lang.Object
-
- org.flowable.cmmn.engine.impl.cmd.NeedsActiveTaskCmd<Void>
-
- org.flowable.cmmn.engine.impl.cmd.CompleteTaskWithFormCmd
-
- All Implemented Interfaces:
Serializable,Command<Void>
public class CompleteTaskWithFormCmd extends NeedsActiveTaskCmd<Void>
- Author:
- Tijs Rademakers, Joram Barrez
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringformDefinitionIdprotected booleanlocalScopeprotected Stringoutcomeprotected Map<String,Object>transientVariablesprotected Map<String,Object>transientVariablesLocalprotected Map<String,Object>variablesprotected Map<String,Object>variablesLocal-
Fields inherited from class org.flowable.cmmn.engine.impl.cmd.NeedsActiveTaskCmd
taskId
-
-
Constructor Summary
Constructors Constructor Description CompleteTaskWithFormCmd(String taskId, String formDefinitionId, String outcome, Map<String,Object> variables)CompleteTaskWithFormCmd(String taskId, String formDefinitionId, String outcome, Map<String,Object> variables, boolean localScope)CompleteTaskWithFormCmd(String taskId, String formDefinitionId, String outcome, Map<String,Object> variables, Map<String,Object> transientVariables)CompleteTaskWithFormCmd(String taskId, String formDefinitionId, String outcome, Map<String,Object> variables, Map<String,Object> variablesLocal, Map<String,Object> transientVariables, Map<String,Object> transientVariablesLocal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcompleteTask(CommandContext commandContext, TaskEntity task, Map<String,Object> taskVariables)protected Voidexecute(CommandContext commandContext, TaskEntity task)Subclasses must implement in this method their normal command logic.protected StringgetSuspendedTaskException()Subclasses can override this method to provide a customized exception message that will be thrown when the task is suspended.protected booleanisFormFieldValidationEnabled(TaskEntity task)-
Methods inherited from class org.flowable.cmmn.engine.impl.cmd.NeedsActiveTaskCmd
execute
-
-
-
-
Constructor Detail
-
CompleteTaskWithFormCmd
public CompleteTaskWithFormCmd(String taskId, String formDefinitionId, String outcome, Map<String,Object> variables)
-
CompleteTaskWithFormCmd
public CompleteTaskWithFormCmd(String taskId, String formDefinitionId, String outcome, Map<String,Object> variables, boolean localScope)
-
CompleteTaskWithFormCmd
public CompleteTaskWithFormCmd(String taskId, String formDefinitionId, String outcome, Map<String,Object> variables, Map<String,Object> transientVariables)
-
-
Method Detail
-
execute
protected Void execute(CommandContext commandContext, TaskEntity task)
Description copied from class:NeedsActiveTaskCmdSubclasses must implement in this method their normal command logic. The provided task is ensured to be active.- Specified by:
executein classNeedsActiveTaskCmd<Void>
-
isFormFieldValidationEnabled
protected boolean isFormFieldValidationEnabled(TaskEntity task)
-
completeTask
protected void completeTask(CommandContext commandContext, TaskEntity task, Map<String,Object> taskVariables)
-
getSuspendedTaskException
protected String getSuspendedTaskException()
Description copied from class:NeedsActiveTaskCmdSubclasses can override this method to provide a customized exception message that will be thrown when the task is suspended.- Overrides:
getSuspendedTaskExceptionin classNeedsActiveTaskCmd<Void>
-
-