AnsweredAssumed Answered

Task Multi-level Organization Assignment

Question asked by pinorom on Dec 23, 2013
Latest reply on Dec 24, 2013 by jbarrez
I am planning to implement a concept of "Organization Units" in Activiti which is currently present in Oracle BPM as demonstrated on the following link: (https://blogs.oracle.com/ateamsoab2b/entry/bpm_11g_dynamic_task_assignment).
What is the best way to extend Activiti to implement such a feature?

The simplest that I thought are the following:
1) Add a primary String attribute "orgUnit" in line with taskId and candidateGroup in Task object.
2) Modify the Task.xml to include additional filter if orgUnit is not null.

      <if test="orgUnit!= null">
          RES.ORG_UNIT_ like #{orgUnit}
      </if>

3) Modify The TaskQueryAPI to add a method "public TaskQueryImpl taskAccessibleFromOrgUnit(String userOrgUnit);"

Please advice.

Outcomes