Creating an entity (with a single validating role):
The process for this workflow is as follows:
-
Start of the workflow (startEvent).
-
Sending notification to the owner role (Sent Notification Task).
-
Validation by the owner role (User Task).
-
Validation gateway.
-
The final processes in Anjana are executed before the workflow ends, whether the workflow has been approved or rejected (LastExecution Task).
-
Notification to the creating user (Sent Notification Task).
-
Activiti is notified of the cancelled workflow (Cancel Workflow Task).
-
Final notification that the workflow has been approved (Sent Notification Task).
-
Notification to the person in charge, indicating that the workflow has been rejected (Sent Notification Task).
-
End of the workflow (End Event).
Creating an entity by reducing the configured tasks. The relevant notification is sent as part of the validation task:
The process for this workflow is as follows:
-
Start of the workflow (startEvent).
-
Sending notification to the owner role and validation (User Task). To send the notification, the notificationCode is included in the task in the same way as indicated in the SentNotification task type.
-
Validation gateway.
-
The final processes in Anjana are executed before the workflow ends, whether the workflow has been approved or rejected (LastExecution Task).
-
Notification to the creating user (Sent Notification Task).
-
Activiti is notified of the cancelled workflow (Cancel Workflow Task).
-
Final notification that the workflow has been approved (Sent Notification Task).
-
Notification to the person in charge, indicating that the workflow has been rejected (Sent Notification Task).
-
End of the workflow (End Event).
This reduction of tasks has been achieved by merging the sending of the notification and the role validation into a single user task, configured as follows:
Adherence request (with two validating roles)
Workflow steps:
-
Start of the workflow (StartEvent).
-
Sending notification to the owner role for validation (Sent Notification Task).
-
Validation by the owner role (User Task).
-
The final processes in Anjana are executed before the workflow ends, whether the workflow has been approved or rejected (LastExecution Task).
-
Activiti is informed of the rejection (Cancel Workflow Task).
-
When the owner role approves, the notification is sent to the next validating role, the destination owner (Sent Notification Task).
-
Validation by the destination owner role (User Task).
-
Final notification to the creator (Sent Notification Task).
-
Final notification to the validating roles (Sent Notification Task).
-
End of the workflow (End Event).
Changing the organizational unit of an entity (with three validating roles)
The workflow steps are as follows:
-
Start of the workflow (StartEvent).
-
Sending notification to the data owner role for validation (Sent Notification Task).
-
Validation by the data owner role (User Task).
-
When the data owner role approves, a notification is sent to the admin role for validation (Sent Notification Task).
-
Validation by the admin role (User Task).
-
When the admin approves this step of the workflow, a notification is sent to the last role involved, compliance, for validation (Sent Notification Task).
-
Validation by the compliance role (User Task).
-
If the compliance role validates the last step, Anjana's internal processes that will change the object's organizational unit are started (Last Execution Task).
-
Final notification to the creator (Sent Notification Task).
-
Final notification to the validating roles (Sent Notification Task).
-
If any validating role indicates that it rejects the workflow, Anjana's internal processes are started (Last Execution Task).
-
Activiti is informed of the workflow cancellation (Cancel Workflow Task).
-
A KO notification is sent to the person responsible for the workflow (Sent Notification Task).
-
End of the workflow (End Event).
Creating an entity with attribute evaluation to allow branching (with validating roles dependent on the object to be validated)
The process for this workflow is as follows:
-
Start of the workflow (startEvent).
-
Gateway for the following branch
-
Condition that checks whether the object to be validated is NOT a dataset (${OBJECT_SUB_TYPE != "DATASET"})
-
Sending notification to the data owner role and validation (User Task).
-
Sending notification to the admin role and validation (User Task).
-
If the admin role approves, Anjana's internal processes that will change the object's organizational unit are started (Last Execution Task).
-
Final notification to the creator (Sent Notification Task).
-
Final notification to the validating roles (Sent Notification Task).
-
Condition that checks whether the object to be validated IS a dataset (${OBJECT_SUB_TYPE=="DATASET"})
-
Sending notification to the data steward role and validation (User Task).
-
Gateway for the following branch
-
Condition that checks whether the pi attribute of the object to be validated is true (${pi == 'true'})
-
Condition that checks whether the pi attribute of the object to be validated is false (${pi == 'false'})
-
Sending notification to the developer role and validation (User Task).
-
If any of the validators rejects the workflow, Anjana's internal processes are started (Last Execution Task).
-
Activiti is informed of the workflow cancellation (Cancel Workflow Task).
-
A KO notification is sent to the person responsible for the workflow (Sent Notification Task).
-
End of the workflow (End Event).