public class CompleteTaskWithFormCmd extends NeedsActiveTaskCmd<Void>
Modifier and Type | Field and Description |
---|---|
protected String |
formDefinitionId |
protected boolean |
localScope |
protected String |
outcome |
protected Map<String,Object> |
transientVariables |
protected Map<String,Object> |
variables |
taskId
Constructor and 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) |
Modifier and Type | Method and Description |
---|---|
protected Void |
execute(CommandContext commandContext,
TaskEntity task)
Subclasses must implement in this method their normal command logic.
|
protected String |
getSuspendedTaskException()
Subclasses can override this method to provide a customized exception message that will be thrown when the task is suspended.
|
protected void |
processUploadFieldsIfNeeded(FormModel formModel,
TaskEntity task,
CommandContext commandContext)
When content is uploaded for a field, it is uploaded as a 'temporary related content'.
|
execute
protected String formDefinitionId
protected String outcome
protected boolean localScope
public CompleteTaskWithFormCmd(String taskId, String formDefinitionId, String outcome, Map<String,Object> variables)
public CompleteTaskWithFormCmd(String taskId, String formDefinitionId, String outcome, Map<String,Object> variables, boolean localScope)
protected Void execute(CommandContext commandContext, TaskEntity task)
NeedsActiveTaskCmd
execute
in class NeedsActiveTaskCmd<Void>
protected void processUploadFieldsIfNeeded(FormModel formModel, TaskEntity task, CommandContext commandContext)
protected String getSuspendedTaskException()
NeedsActiveTaskCmd
getSuspendedTaskException
in class NeedsActiveTaskCmd<Void>
Copyright © 2016 Flowable. All rights reserved.