How do I update a process variable in process model instance via WebAPI ?
============================================================
The use case is an external system which triggers an onboarding process.
It calls a webAPI which starts an onboarding process. An email is being sent
to the customer for email verification. The process waits for the code to be entered
on the external system form. Once entered on the external system form, it should be
posted to the running process instance to resume execution.
So I need a way for the external system to post the code to the
previously initiated process.
Discussion posts and replies are publicly visible
You can use set External PV's Smart service to set the variable for the particular instance. You can create a separate process which can use this smart service and on submission of the external form, call the newly create process model to set the process variable value.
I recommend to not have a waiting process instance, but persist the data to DB and just start the follow up process as the external site calls the API. This is way more scalable.