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
Post a Comment