Configuration
Breadcrumbs

Examples: Workflows

Creation of an entity (with a single validator role):


The process of this workflow will be as follows:

https://lh7-rt.googleusercontent.com/docsz/AD_4nXdexQyhf2JDWFaKa7VJn9QkxFtBYFdi9M7tUhxwxUa6OLGuxwxMv2-Jx3Ut0J2bavft1sbwva5jn-bj4ry-BkPbGbbHDaL_MNLxMM4qvg4P1IX74FYKntZwZmh0dbGOzNYFbkPPg2-qNScMKcanxuF5KgZ-?key=VuGvqD0xqkUCXHbH5grjaQ
  1. The workflow is started (startEvent).

  2. Notification sent to the owner role (Sent Notification Task).

  3. Validation by the owner role (User Task).

  4. Validation gateway.

  5. The last processes in Anjana are executed before the workflow ends, whether the workflow has been approved or rejected (LastExecution Task).

  6. Notification to the creating user (Sent Notification Task).

  7. Activiti is notified of the cancelled workflow (Cancel Workflow Task).

  8. Final notification that the workflow has been approved (Sent Notification Task).

  9. Notification to the responsible party, informing them that the workflow has been rejected (Sent Notification Task).

  10. End of the workflow (End Event).


Creation of an entity reducing the configured tasks. The validation task incorporates the sending of the relevant notification:

https://lh7-rt.googleusercontent.com/docsz/AD_4nXfo_a2W4EvCwGwS9OWwFX3ezXo9BVkkgrV9l_ui1Uf0PNGkdtPH5o5jNlqYAZqfwb9_Nq3YzfRkaxyYB-GJ76tbQFW0HmQC00o0aFEcMa4Fpvw6V-Plg8HZ7VxQjqKAPoQ5Uad_sR-rLzl0SZ0PtXFnh9_t?key=VuGvqD0xqkUCXHbH5grjaQ

The process of this workflow will be as follows:

  1. The workflow is started (startEvent).

  2. Notification sent to the owner role and validation (User Task). For sending the notification, the notificationCode is included in the task in the same way as described for the SentNotification task type.

  3. Validation gateway.

  4. The last processes in Anjana are executed before the workflow ends, whether the workflow has been approved or rejected (LastExecution Task).

  5. Notification to the creating user (Sent Notification Task).

  6. Activiti is notified of the cancelled workflow (Cancel Workflow Task).

  7. Final notification that the workflow has been approved (Sent Notification Task).

  8. Notification to the responsible party, informing them that the workflow has been rejected (Sent Notification Task).

  9. End of the workflow (End Event).


This reduction of tasks was achieved by merging the notification sending and the role validation into a single user task, configured as follows:

https://lh7-rt.googleusercontent.com/docsz/AD_4nXcCWLNB7NuxN4Hg8wgyKryHk-zqFVkPeF-TxuRrfK-BHQlDwl6AGVbpvJ0PHmj9k2Yt5eZQLhfpOSdCy2SBnGgiT9f2j9h_udSQs0dtchwkx2J2xrokcGr6ayAyRpRwzHCUWm9GFHxTrCRRw3kuCUzrQ920?key=VuGvqD0xqkUCXHbH5grjaQ

Adherence request (with two validator roles)

Workflow steps:

https://lh7-rt.googleusercontent.com/docsz/AD_4nXfOxybOaUARiC5eGeIYVz7hx2rML4m6cu21OCNfKOokMG-Vp8heFf3-16PCGBhwgurqOxiv8dZlhFx0g1mmEJ8b19fLVn9VwPueDY3Hh5JyaEMjxnCDh_ocKTNMsYh_zaGHG2bVkMnXF9s3u8dm-KJYgNAD?key=VuGvqD0xqkUCXHbH5grjaQ
  1. Workflow start (StartEvent).

  2. Notification sent to the owner role for validation (Sent Notification Task).

  3. Validation by the owner role (User Task).

  4. The last processes in Anjana are executed before the workflow ends, whether the workflow has been approved or rejected (LastExecution Task).

  5. Activiti is informed of the rejection (Cancel Workflow Task).

  6. When the owner role approves, a notification is sent to the next validator role, the destination owner (Sent Notification Task).

  7. Validation by the destination owner role (User Task).

  8. Final notification to the creator (Sent Notification Task).

  9. Final notification to the validator roles (Sent Notification Task).

  10. End of the workflow (End Event).


Changing the organizational unit of an entity (with three validator roles)

The workflow steps are as follows:

https://lh7-rt.googleusercontent.com/docsz/AD_4nXdMCJBw1E4SJU_v2lN4s9s9QYcrlPA3o7Z7mxFNIF2106DcjRllqCq6tCAIm103z2sq-SmCkTmzqeYRRcOVdaNYuRKUUoO6LU5Fz9mrvruvXRrBnf6u51bzmGCv6-6eImrbmqG72Oc7xhxzmLMq0qFZGjL1?key=VuGvqD0xqkUCXHbH5grjaQ
  1. Workflow start (StartEvent).

  2. Notification sent to the data owner role for validation (Sent Notification Task).

  3. Validation by the data owner role (User Task).

  4. When the data owner role approves, a notification is sent to the admin role for validation (Sent Notification Task).

  5. Validation by the admin role (User Task).

  6. When the admin approves the workflow step, a notification is sent to the last role involved, compliance, for validation (Sent Notification Task).

  7. Validation by the compliance role (User Task).

  8. If the compliance role validates the last step, the internal Anjana processes that will change the organizational unit of the object are initiated (Last Execution Task).

  9. Final notification to the creator (Sent Notification Task).

  10. Final notification to the validator roles (Sent Notification Task).

  11. If any validator role rejects the workflow, the internal Anjana processes are initiated (Last Execution Task).

  12. Activiti is informed of the workflow cancellation (Cancel Workflow Task).

  13. A KO notification is sent to the workflow owner (Sent Notification Task).

  14. End of the workflow (End Event).


Creation of an entity with attribute evaluation to allow branching (with validator roles dependent on the object to be validated)

https://lh7-rt.googleusercontent.com/docsz/AD_4nXeBT-ZZ2UBHrk3vLMO39CtDOal-MnX5OOpYGaxIIvL0TXOUVxzYZqXVVuKNUJlIpQrRrlL52D3X1IdMugLEaaT7Sju0Xc1d7dc9yY15jvj8hJRgHv6sRdkHrM37O06EkBVKOTDYKupJjxn-d-IRucqC78Sk?key=VuGvqD0xqkUCXHbH5grjaQ

The process of this workflow will be as follows:

  1. The workflow is started (startEvent).

  2. Gateway for the following branching

  3. Condition that checks whether the object to be validated is NOT a dataset (${OBJECT_SUB_TYPE != "DATASET"})

  4. Notification sent to the data owner role and validation (User Task).

  5. Notification sent to the admin role and validation (User Task).

  6. If the admin role approves, the internal Anjana processes that will change the organizational unit of the object are initiated (Last Execution Task).

  7. Final notification to the creator (Sent Notification Task).

  8. Final notification to the validator roles (Sent Notification Task).

  9. Condition that checks whether the object to be validated IS a dataset (${OBJECT_SUB_TYPE=="DATASET"})

  10. Notification sent to the data steward role and validation (User Task).

  11. Gateway for the following branching

  12. Condition that checks whether the pi attribute of the object to be validated is true (${pi == 'true'})

  13. Condition that checks whether the pi attribute of the object to be validated is false (${pi == 'false'})

  14. Notification sent to the developer role and validation (User Task).

  15. If any of the validators rejects the workflow, the internal Anjana processes are initiated (Last Execution Task).

  16. Activiti is informed of the workflow cancellation (Cancel Workflow Task).

  17. A KO notification is sent to the workflow owner (Sent Notification Task).

  18. End of the workflow (End Event).