
ENABLED can be started manually using the CaseService as follows:
ACTIVE, a new task is created in the task list of the user(s) or group(s) assigned to that task.
If the work associated with the human task is done, it is possible to complete the human task manually using the CaseService as follows:
CaseService it is also possible to use the TaskService to complete a human task:
Properties
In that case the associated human task is completed as well.Description
A human task can have a description. In fact, any CMMN 1.1 element can have a description. A description is defined by adding thedescription attribute.
Due Date
Each task has a field indicating the due date of that task. The Query API can be used to query for tasks that are due on, before or after a certain date. There is an extension attribute that allows to specify an expression in a task definition to set the initial due date of a task when it is created. The expression should always resolve to ajava.util.Date, java.util.String (ISO8601 formatted) or null. When using ISO8601 formatted Strings, you may either specify an exact point in time or a time period relative to the time the task is created.
Follow Up Date
Each task has a field indicating the follow up date of that task. The Query API can be used to query for tasks that need to be followed up on, before or after a certain date. There is an extension attribute that allows you to specify an expression in a task definition to set the initial follow up date of a task when it is created. The expression should always resolve to ajava.util.Date, java.util.String (ISO8601 formatted) or null. When using ISO8601 formatted Strings, you may either specify an exact point in time or a time period relative to the time the task is created.
User Assignment
A human task can be directly assigned to a single user, a list of users or a list of groups.Assignment using CMMN Case Role
CMMN defines some native assignment concepts which can be used in ASEE Flow. As a more powerful alternative, ASEE Flow also defines a set of custom extension elements (see below). The CMMN concept ofperformerRef can be used to assign a task to a single user. The performerRef attribute references an existing role. Such a role definition needs a name that defines the user.
User Assignment using ASEE Flow Extensions
When strictly following the CMMN standard, user and group assignments can be quite cumbersome for use cases where the assignment is more complicated. To avoid these complexities, custom extensions on the human task element can be set. The CMMN Human task supports the same assignment extensions and concepts as the BPMN User Task. You can read up on these extensions in the BPMN User Task Section. Same as for the BPMN User task, assignment based on data and service logic is supported for the CMMN Human Task as well.Forms
It is possible to provide information to render a human task form by using thecamunda:formKey
attribute:
formKey and retrieved at runtime using the process engine API.
If the user task form is displayed inside the ASEE Flow Tasklist, the format of the formKey must follow
special rules. See the corresponding section in the user guide for details.
In custom applications, the value of the form key can be chosen freely. In a custom application the
value of the form key attribute can be interpreted freely. Based on the specific UI technology used,
it can reference the name of an HTML file, a JSF / Facelets template, a Vaadin / GWT view, …
Retrieving the form key using the form service.
Retrieving the form using the task service
When performing a task query, it is possible to retrieve the form key as well. This is most useful if the form keys need to be retrieved for a complete list of tasks:.initializeFormKeys() method on the TaskQuery object to
make sure the form keys are initialized.
ASEE Flow Extensions
| Attributes | camunda:assignee, camunda:candidateGroups, camunda:candidateUsers, camunda:dueDate, camunda:formKey, camunda:priority |
|---|---|
| Extension Elements | camunda:in, camunda:out, camunda:caseExecutionListener, camunda:taskListener, camunda:variableListener |
| Constraints | The attribute camunda:assignee cannot be used simultaneously with the perfomerRef attribute on a human task element. |