How to keep the value of global variable defined in a wkf after it ends
Hi,
May anyone tell me how to keep the value of a global variabile (es. vars.numErrors) defined inside a workflow after the workflow ends its execution?
Note that the status of the workflow is always STARTED because of an external signal.
vars.numErrors is modified inside a javascript activity like that:
if(vars.numErrors == null || vars.numErrors==""){
vars.numErrors = 0;
}
var numErr = vars.numErrors;
numErr++;
vars.numErrors = numErr;
logInfo("Numero errori: "+numErr);
In current situation, after each execution vars.numErrors will be equal to 1, while I want it to be 1,2,3....
Does it exist a global variable that has a scope greater than the workflow?
Could you suggest me a solution that don't required an SQL table?
Thanks,
Salvatore