-
- All Implemented Interfaces:
-
io.holunda.camunda.taskpool.api.business.WithCorrelations,io.holunda.camunda.taskpool.api.task.CamundaTaskEventType,io.holunda.camunda.taskpool.api.task.EngineTaskCommand,io.holunda.camunda.taskpool.api.task.TaskIdentity,io.holunda.camunda.taskpool.api.task.TaskIdentityWithPayloadAndCorrelations,io.holunda.camunda.taskpool.api.task.WithFormKey,io.holunda.camunda.taskpool.api.task.WithPayload,io.holunda.camunda.taskpool.api.task.WithTaskId
public final class CreateTaskCommand implements TaskIdentityWithPayloadAndCorrelations, WithFormKey, EngineTaskCommand
Engine command to create a task.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringidprivate final SourceReferencesourceReferenceprivate final StringtaskDefinitionKeyprivate final StringformKeyprivate final Integerorderprivate final StringeventNameprivate final StringbusinessKeyprivate final VariableMappayloadprivate final VariableMapcorrelationsprivate Booleanenrichedprivate final Stringassigneeprivate final Set<String>candidateUsersprivate final Set<String>candidateGroupsprivate final DatecreateTimeprivate final Stringdescriptionprivate final DatedueDateprivate final DatefollowUpDateprivate final Stringnameprivate final Stringownerprivate final Integerpriority
-
Constructor Summary
Constructors Constructor Description CreateTaskCommand(String id, SourceReference sourceReference, String taskDefinitionKey, String formKey, Integer order, String eventName, String businessKey, VariableMap payload, VariableMap correlations, Boolean enriched, String assignee, Set<String> candidateUsers, Set<String> candidateGroups, Date createTime, String description, Date dueDate, Date followUpDate, String name, String owner, Integer priority)
-
Method Summary
Modifier and Type Method Description StringgetId()User task id. SourceReferencegetSourceReference()Source reference, indicating why this task exists. StringgetTaskDefinitionKey()Task definition key aka task type. StringgetFormKey()Form key used to create a task URL. IntegergetOrder()Command order used for sorting in collector. StringgetEventName()Command intent name. StringgetBusinessKey()Business key of the underlying process instance. VariableMapgetPayload()Task payload. VariableMapgetCorrelations()Task correlations. BooleangetEnriched()Enrichment flag. UnitsetEnriched(Boolean enriched)Enrichment flag. final StringgetAssignee()Username of the assigned user. final Set<String>getCandidateUsers()Set of usernames marked as candidates. final Set<String>getCandidateGroups()Set of user groups marked as candidates. final DategetCreateTime()Creation timestamp. final StringgetDescription()Task description. final DategetDueDate()Task due date. final DategetFollowUpDate()Task follow-up date. final StringgetName()Task name. final StringgetOwner()Task owner (assigned user). final IntegergetPriority()Task priority. -
-
Constructor Detail
-
CreateTaskCommand
CreateTaskCommand(String id, SourceReference sourceReference, String taskDefinitionKey, String formKey, Integer order, String eventName, String businessKey, VariableMap payload, VariableMap correlations, Boolean enriched, String assignee, Set<String> candidateUsers, Set<String> candidateGroups, Date createTime, String description, Date dueDate, Date followUpDate, String name, String owner, Integer priority)
-
-
Method Detail
-
getSourceReference
SourceReference getSourceReference()
Source reference, indicating why this task exists.
-
getTaskDefinitionKey
String getTaskDefinitionKey()
Task definition key aka task type.
-
getFormKey
String getFormKey()
Form key used to create a task URL.
-
getEventName
String getEventName()
Command intent name.
-
getBusinessKey
String getBusinessKey()
Business key of the underlying process instance.
-
getPayload
VariableMap getPayload()
Task payload.
-
getCorrelations
VariableMap getCorrelations()
Task correlations.
-
getEnriched
Boolean getEnriched()
Enrichment flag.
-
setEnriched
Unit setEnriched(Boolean enriched)
Enrichment flag.
-
getAssignee
final String getAssignee()
Username of the assigned user.
-
getCandidateUsers
final Set<String> getCandidateUsers()
Set of usernames marked as candidates.
-
getCandidateGroups
final Set<String> getCandidateGroups()
Set of user groups marked as candidates.
-
getCreateTime
final Date getCreateTime()
Creation timestamp.
-
getDescription
final String getDescription()
Task description.
-
getDueDate
final Date getDueDate()
Task due date.
-
getFollowUpDate
final Date getFollowUpDate()
Task follow-up date.
-
getPriority
final Integer getPriority()
Task priority.
-
-
-
-