1 Reply Latest reply on Nov 13, 2012 3:54 AM by thomas.setiabudi

    (saving Map param in process) and (task when task is complete)

    franco80

      Hello all !

       

      I'm putting param Map when process is starting - it works, I see in table VariableInstanceLog, and when I'm geting the variable for example:

       

      StatefulKnowledgeSession ksession = JbpmAPIUtil.getSession();

      WorkflowProcessInstance pi = (WorkflowProcessInstance) ksession.getProcessInstance(pid);

      return pi.getVariable(key);// map id

       

      I see that variable - return map value,

       

      but when I'm adding other variable: Map(declared in proces like java.util.Map without generics) (String always recorded, but not Map):

       

      StatefulKnowledgeSession ksession = JbpmAPIUtil.getSession();

      WorkflowProcessInstance pi = (WorkflowProcessInstance) ksession.getProcessInstance(pid);

      pi.setVariable(key, value);

       

      or put in results map.put("decisionInfoMap", map) when I'm completing task nothing is save in VariableInstanceLog table

       

      how to save variables properly ?

       

      second question is how to get/init process context ?

       

      regars