cancel
Showing results for 
Search instead for 
Did you mean: 

Task Multi-level Organization Assignment

pinorom
Champ in-the-making
Champ in-the-making
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.
2 REPLIES 2

pinorom
Champ in-the-making
Champ in-the-making
  (RES.ORG_UNIT_ IS NULL
<if test="orgUnit!= null">
   or RES.ORG_UNIT_ like #{orgUnit}
  </if>


ps: How to edit post?

jbarrez
Star Contributor
Star Contributor
Can't you map this concept to the 'candidateGroup' concept in Activiti?

Modifying the table is something you could do, but always keep in mind that this might get tricky when upgrading Activiti later on.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.