Package org.flowable.engine.impl.cmd
Class CompleteTaskWithFormCmd
- java.lang.Object
-
- org.flowable.engine.impl.cmd.NeedsActiveTaskCmd<Void>
-
- org.flowable.engine.impl.cmd.CompleteTaskWithFormCmd
-
- All Implemented Interfaces:
Serializable,Command<Void>
public class CompleteTaskWithFormCmd extends NeedsActiveTaskCmd<Void>
- Author:
- Tijs Rademakers
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringformDefinitionIdprotected Stringoutcomeprotected Map<String,Object>transientVariablesprotected Map<String,Object>transientVariablesLocalprotected Map<String,Object>variablesprotected Map<String,Object>variablesLocal-
Fields inherited from class org.flowable.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 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, ProcessEngineConfigurationImpl processEngineConfiguration, String processDefinitionId, String taskDefinitionKey)-
Methods inherited from class org.flowable.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, ProcessEngineConfigurationImpl processEngineConfiguration, String processDefinitionId, String taskDefinitionKey)
-
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>
-
-