Page 2 of 2

Re: Assign Task to Multiple Users

PostPosted:Wed Apr 08, 2015 5:25 am
by vsubramanian
Hi pavila,
Thanks for the code - will try it and get back to you.

Re: Assign Task to Multiple Users

PostPosted:Wed Aug 12, 2015 8:35 am
by vsubramanian
Hi pavila,
I was able to solve the error:
Code: Select all
org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.jBPM.taskmgmt.def.Swimlane
by adding the following lines for swimlane:
Code: Select all
swimlane.addTask(task);
procInst.getTaskMgmtInstance().getTaskMgmtDefinition().addSwimlane(swimlane);
task.setSwimlane(swimlane);
Thanks,
Vasu

Re: Assign Task to Multiple Users

PostPosted:Wed Aug 12, 2015 8:50 am
by vsubramanian
Hi pavila,
I was able to add a 'Dynamic Task Node'.
But:
1. The 'Task' is NOT getting assigned to any user
2. No 'Notification' is sent to any user

If I un-comment the following (line 106 in com.openkm.workflow.ActorAssigment() ), then the 'notification' is sent to 'all users', but the 'Task' is assigned ONLY to the last user.
assign.setActorId(reviewerName);

Please find attached the code.

Can you please let me know how to solve this issue?

Thanks in advance,
Vasu

Re: Assign Task to Multiple Users

PostPosted:Mon Aug 24, 2015 6:43 am
by vsubramanian
Hi pavila,
Can you please help?
Thanks,
Vasu