Message Boards

Liferay 7.0 workflow tasks to custom approvers ?

Jiten R. Vaghela, modified 3 Years ago.

Liferay 7.0 workflow tasks to custom approvers ?

New Member Posts: 20 Join Date: 8/22/16 Recent Posts

Hi Team,

I am working on liferay 7.0 kaleo workflow component, i have requirement to trigger task to custom approver.

I am storing custom approvars deatils in one of the custom feild as comma separated string of email Ids, i need a solution to trigger a task to this users.

As researched, liferay is restricting to assign tasks to multiple users in scripting assignments.

since kaleo workflow in liferay is role based or user based, either i can assign to role or a single user, since my requirment is restricting to create roles i am not able to assign to group of users.
Example:
Custom approvar : abc@liferay.com, xyz@liferay.com, pqr@liferay.com
Creating new task and want to assign same task to above listed custom approver. Here the will be 1 but want to assign the single task to all listed approvers.

Can any one guide me how i can achive this ?

Thanks

thumbnail
Mohammed Yasin, modified 3 Years ago.

RE: Liferay 7.0 workflow tasks to custom approvers ?

Liferay Master Posts: 591 Join Date: 8/8/14 Recent Posts

Hi,

One way is to create roles dynamically and in worklfow script assign the task to dynamic created roles , As in your case you can create role programically and map  users to that role then in workflow script you can fetch that role and assign it .   

Jiten R. Vaghela, modified 3 Years ago.

RE: RE: Liferay 7.0 workflow tasks to custom approvers ?

New Member Posts: 20 Join Date: 8/22/16 Recent Posts

 

Thanks Mohammed yasin,

Yes, It is possible with dummy role. I proposed that solution but it will creates huge amount of dummy roles and we don't want that.
Is there any other solution you have?