I would like to assign multiple task or a list of tasks to single user in one REST API call to activiti.Is this possible in activiti?
Solved! Go to Solution.
Hi krithikasridhar ,
Unfortunately, I just got confirm from my supervisor that this is currently not available out of the box.
Having said that, keep in mind that Activiti is open source, which means you have total control over the source code. You can add your own REST endpoint like Niklas Menke suggested given that you understand the code base well enough to do it properly.
Also, you can submit feature request to JIRA using this guideline: Activiti User Guide
Thanks,
Thong
bp3
Hi krithikasridhar ,
Activiti provides REST API to update a task. Here's the docs Activiti User Guide
In order to update multiple tasks, you just have to provide a list of task ids and create a REST call for each of the ids.
Does this work for you?
Thanks,
Thong Huynh
Hi @Thong Huynh,
Thanks for the quick reply.
I believe I wasn't very clear in the previous statement. what I want to is do a bulk upload of the list of tasks for one user. Instead of doing upload for each task.
Is there any way to pass in a list of task at a time and map the assignee to all these tasks instead of calling and mapping for each task.
I would like to do this as I am going to assign these set of tasks to a single user.
Hi krithikasridhar ,
I guess the bulk update, task assignment in particular, is not available since the current REST API as I have mentioned is only taking 1 variable. Also, it's a PUT method instead of a POST or PATCH and it doesn't take a list of resources. I am seeking advice from my supervisor Greg Harley and I can confirm with you more.
Is this a blocker for you?
Thanks,
Thong Huynh
I wouldn't call it a blocker as I can iterate each value and proceed. However this will make several calls to activiti. So, if I could get a better solution I will highly appreciate it.
Hi krithikasridhar,
you could implement your own rest endpoint to avoid those multiple calls.
Hi krithikasridhar ,
Unfortunately, I just got confirm from my supervisor that this is currently not available out of the box.
Having said that, keep in mind that Activiti is open source, which means you have total control over the source code. You can add your own REST endpoint like Niklas Menke suggested given that you understand the code base well enough to do it properly.
Also, you can submit feature request to JIRA using this guideline: Activiti User Guide
Thanks,
Thong
bp3
Hi Thong Huynh,
Sorry for the late reply. I took the iterative route for now.
Also I have created a task in jira(ACT-4260)
Thank you!
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.