Use process variable in groovy script

1
0
-1

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 :)

Cheers!

EDIT:
Found it, but thanks for the read ;P

Comments

Submitted by prabubeit on Tue, 06/21/2016 - 18:17

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

1 answer

1
0
-1

You've answered it!

Great,

Now can you mark it as resolved so we don't have to read it again! :) :D

Thanks

Notifications