JBoss Community

saving params in process and task when task is complete

created by franco80 in jBPM - View the full discussion

Hello all !

 

when params are saveing when process start is ok, I see in table VariableInstanceLog, example decisionInfoMap, and when I get the variable for example:

 

StatefulKnowledgeSession ksession = JbpmAPIUtil.getSession();

WorkflowProcessInstance pi = (WorkflowProcessInstance) ksession

                .getProcessInstance(pid);

return pi.getVariable(key);

 

I see that variable,

 

but when I'm adding other variable for example:

 

StatefulKnowledgeSession ksession = JbpmAPIUtil.getSession();

WorkflowProcessInstance pi = (WorkflowProcessInstance) ksession

                .getProcessInstance(pid);

pi.setVariable(key, value);

 

nothing is save in VariableInstanceLog table

 

how to save variables properly ?

 

second question is how to get process context ?

 

regars

Reply to this message by going to Community

Start a new discussion in jBPM at Community