03-14-2017 12:39 PM
Hello everyone,
I want to update several variables existing in an array with REST Call
endpoint : api/runtime/process-instances/${id}/variables
Method : PUT
But in Activiti only we are allowed to update one variable because of the request mapping
I am using Alfresco Activiti
Please any help is appreciated
Kind regards.
03-27-2017 03:16 PM
Btw, you can now do request body JSON mapping in the newer version of the product which was released last week. See REST call | Alfresco Documentation for more details.
However as Greg said, a script/service task would be more appropriate in this particular use case.
03-15-2017 11:45 AM
03-19-2017 12:38 PM
but I am using Alfreco Activiti environment , so how can I map this request as json body into the request mapping ?
03-20-2017 08:49 AM
03-20-2017 08:55 AM
Your reply is kind of rude.
I just want to update variables of parent process with rest inside a call activity and not in same process, if you don't have an answer you can just not reply.thank you
03-20-2017 09:02 AM
03-20-2017 09:07 AM
Apology accepted, thank you for your advice I will take it in consideration.
03-26-2017 08:55 PM
Hi Ben,
If you are trying to update/add a variable to a parent process from child via a groovy script, the following will do
runtimeService.setVariable( execution.getSuperExecutionId(), 'varname', 'varvalue');
-Ciju
03-27-2017 03:00 PM
Hi Joseph
Thank you , this works like a charm
03-27-2017 03:16 PM
Btw, you can now do request body JSON mapping in the newer version of the product which was released last week. See REST call | Alfresco Documentation for more details.
However as Greg said, a script/service task would be more appropriate in this particular use case.
Explore our Alfresco products with the links below. Use labels to filter content by product module.