Hi Deniss,
camAPI
is an angular service for the camunda-bpm-sdk. It basically allows you to make REST-requests. But you can use custom scripts to create a new angular service that you can inject in embedded forms. You can check out an example about how to use custom scripts and read more about angular services.
The variable itself should definitely be saved as process variable. Otherwise you could lose the variable if the user refreshes the page or clears the browser cache. It should look something like this:
- Embedded form for a task retrieves the process variable that was created in a previous step
- Embedded form calls some angular service that was created in a custom script to work with the variable
- Embedded form creates or updates a process variable with the result of this work
- Variable is saved as process variable
Does this help you?
Cheers
Sebastian