1 Reply Latest reply on Oct 9, 2013 10:13 AM by Shiju John

    How to get workitemId from last saved ksession obj

    shivarajud dasaraju Newbie

      HumanTaskNodeInstance htask = (HumanTaskNodeInstance) nodeInstance;

      i want to get workitem id for human tasks, so i am doing as follows:

      htask.getWorkItemId() and it is showing correct id only.

      but, when i restart the application this workitem id showing as 1.

       

      Is this wokritem info is persisted or it resides in memory only.

       

      and i am loading last saved session object by passing sessionid as follows:

      loadStatefulKnowledgeSession(KnowledgeBase kbase, int sessionId)