In jBPM 4, they are by default in the DB
an additional noob question: the userguide explains that changes to variables have to be saved to the DB explicity.
in which cases i have to do this ?
(1) when i modify variables in an java node - inside the process ?
(2) when i modify variables in an eventlistener/handler - inside the process ?
(3) when i modify variables from outside ? (change variables over the services)
where in the userguide is that stated?
"jBPM doesn't have a mechanism for detecting changes automatically to variable values. So if you get e.g. a serializable collection from the process variables and add an element, then you need to set the changed variable value explicitely for the changes to be saved to the DB. "
or did i get it wrong ?
Yep, you got it wrong.... you have to SET it, not save it. pseudocode:
HashMap <String, String> var = service.getVariable("myVar");
Then the processvariable in the engine is not updated.
You have to do
and that is with all variables, not just collections
thx for support, now i see =)
i realy would like to invite you to a beer ^^
Beer? Definitely not tonight (even if you lived next door) since I still am not fully recuperated from last night.
So can I take a rain check? (where do you live?)