Use process variable in groovy script

Hi everyone,

i want to alter/update a row in my local business data model via an operation. The business object gets the value via a process variable. Normaly i would do it with a custom SQL UPDATE query, but Bonita supports only custom SELECT queries. Is it possible to get the right value with a groovy script? (i never worked with groovy before)

f.e.:
newValue = oldValue - someValue

Every value needed is stored in process variables, but i dont know how to get these variables/values in the groovy script. I would appreciate it if someone could give me a hint :slight_smile:

Cheers!

EDIT:
Found it, but thanks for the read :stuck_out_tongue_winking_eye:

You’ve answered it!

Great,

Now can you mark it as resolved so we don’t have to read it again! :slight_smile: :smiley:

Thanks

Whats the solution for that. For the benefit of Everyone, please post your finding.