How to set taskAssigneeId

1
0
-1

Hi,

I have a table [Users] already populated and I would like to use the users' IDs [UserId] as taskAssigneeIds,

I actually need so because I have to store actions and there respective executors in another table which has a foreign key referencing [Users].[UserId]

All these tables already exist, and I can't afford to alter any of them.

Thanks

Comments

Submitted by Sean McP on Fri, 05/08/2015 - 12:49

Couple of questions as not quite clear,

Where does table [users] come from and how is it populated? Is it from the Bonita Organization/Users? Are you using the Bonita userid as [userId]

If so then this is quite easy, use:

assignUserTask(long userTaskId, long userId)

if not then you need to map your userid to Bonita userId

Hope that helps, regards

Submitted by amine250 on Fri, 05/08/2015 - 13:48

Hi,

No, the table's content is independent from Bonita and I would like to map Bonita's taskAssigneeId (if there's a way) to [users].[userId].

(I just got the idea of using LDAP, but I would still prefer the first option in my case).

Submitted by Sean McP on Fri, 05/08/2015 - 14:37

In the User of Bonita use a customfield to save the [userid-other] then use that as your actor selector field to choose the person you want and then take their id from bonita...

You would then have to run an overnight sync process to ensure the two tables sync...

That should do it...

regards

No answers yet.
Notifications