Hi there,
In the following process, ‘articles’ are fetched from the system to be displayed in a form in which the user derives ‘events’. A service task delegate is executed by ‘Fetch Article Entries’ and the ‘articles’ are assigned to process variables which are subsequently loaded in the user task form in ‘Create Event Entries’. How might I reload or refresh the articles without restarting the process?
Many thanks!
Hi @simonwibberley.
You can do a REST call to update your variable data.
PUT `/process-instance/{id}/variables/{varName}`
Documentation:
https://docs.camunda.org/manual/7.11/reference/rest/process-instance/variables/put-variable/
Hope it helps.
1 Like
Thanks @regissantana! That’s useful.
But is there a way to [re-]trigger a delegate from a User Task form directly?
Otherwise, I believe the procedure would be to gather the required process instance variables (in javascript?), provide them to a custom REST call (or call directly from js), which then calls the put-variable
end point.
Thanks for your help.