cancel
Showing results for 
Search instead for 
Did you mean: 

How can I model this?

jcosano
Champ in-the-making
Champ in-the-making
I have a simplest process, with for sample two groups: administrative and boss.
But… this process is very common in my organization… for sample I have 1000 offices with a couple (administrative-boss).
How can I work with this process if one administrative of the one office can't see work for other administrative of other office…
One solution was… 2000 groups, 1000 groups represent each administrative-office and the other 1000 boss-office…

but, I'm very lazy to create 2000 groups Smiley Tongue

Which is the best way to implement this cases? bpmn has any solution to this?
5 REPLIES 5

jbarrez
Star Contributor
Star Contributor
I don't get your problem. Could you explain it a bit more?

jcosano
Champ in-the-making
Champ in-the-making
Yes, I'll try…

Sometimes, We can model a generic process, this process model the behaviour of some interaction between diferents actors.
For sample, one process between one secretary and her boss inside a big company.

But.. this process is so generic.. then is valid for all departments that has a secretary and boss…

If I model this… inside activiti, secretary is a group, and boss is another group… but then.. all secretaries can see work of other secretaries.. and for privacy reason this is not valid solution…

Then this implies a specific group for each department:
secretary-dep1, secretary-dep2, etc… and same for boss…

Then… If organization is bigger.. maybe I have 1000 groups for secretaries and another 1000 for boss.

In resum, I think that maybe we need some plus for define the scope of visibility of the data…

Do you understand my point of view?

jbarrez
Star Contributor
Star Contributor
Ok now I understand your problem

can't you retrieve your secretary at runtime? I mean:

<userTask activiti:assignee="secretaryLookupService.getSecretary(boss)", where boss is a process variable ?

jcosano
Champ in-the-making
Champ in-the-making
Yes…. I think, this can be a valid solution!!

I though that task only can be assigned to user or group… now I read that I can define a listener to delegate assignment.

jbarrez
Star Contributor
Star Contributor
Indeed 🙂

You can use an expression on assignee/candidateUsers/groups, but you can also use a task listener to do the assignment.