How to set taskAssigneeId

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

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

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).

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