Skip to main content
August 20, 2022
Question

Update process variable from webAPI call

  • August 20, 2022
  • 2 replies
  • 0 views

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.

2 replies

August 20, 2022

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.

stefanhelzle0001
Brainy
August 21, 2022

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.