Best practices for multi-tenancy and tasks

Hello,

We are deploying separate workflow diagram for each tenant in same Process engine.
The process will be marked with tenant_id. The workflow for different tenants contains some of the same tasks but with a slight variation in the implementation logic of the task.

What is the best practice here to implement this scenarion?

  1. Have separate task in each tenant workflow? such as TENTANT_1_TASK_1, TENTANT_2_TASK_1, etc.
    OR
  2. Have same task in different tenant workflows such as TASK_1, TASK_2, etc. And in the implementation of these tasks, based on tenant, invoke different logic?

Regards,
Yogesh

Hello Yogesh

Were you able to decide on this? I have a similar requirement and your analysis would really help me.
Thanks in advance

Hello @Manjunatha_Patkar

We took a hybrid approach.
For the tasks that are exactly same for different tenants, we just name them TASK_1, TASK_2, etc.
For the tasks that have different implementation for different tenants, we name the TENANT_NAME1_TASK_1, TENANT_NAME2_TASK_2, etc.

Regards,
Yogesh