java - Activiti Process Updated Variable value is not getting persisted in DB -


i'm trying update process variable after starting process when starting activiti, pass random string value variable need update variable value afterwards.

system.out.println(runtimeservice.getvariables(executionid));             runtimeservice.setvariable(executionid, varname, varvalue); system.out.println(runtimeservice.getvariables(executionid)); 

and output

variableone : "randomvalue" variableone : "updatedvalue"

but when documentation of task documentation

the variable value ${variableone}

i output

the variable value randomvalue

instead of

the variable value updatedvalue

the problem execution id not same process instance id. need update variable against process instance id rather execution id.

cheers, greg


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -