9 Replies Latest reply on Feb 28, 2007 8:08 AM by Ronald van Kuijk

    Problem with getting process instance's creator

    Marcin M Newbie

      Hello,

      I'm new to jBPM, so forgive me silly question.

      How to get process instance's creator.

      I tried like this

      ProcessDefinition.

      <?xml version="1.0" encoding="UTF-8"?>
      
      <process-definition xmlns="" name="vacationRequest">
       <swimlane name="originator"/>
       <start-state name="start">
       <task swimlane ="originator"/>
      
       <transition name="" to="decision"/>
       </start-state>
       <task-node name="decision">
       <task name="decide">
       <assignment pooled-actors="#{vacationRequest.assign}"/>
       </task>
       <transition name="cancel" to="canceled"/>
      
       <transition name="ok" to="approved"/>
       </task-node>
       <end-state name="canceled"></end-state>
       <end-state name="approved"></end-state>
      </process-definition>
      


      then I start a process (with Seam):
      @CreateProcess(definition = "vacationRequest")
       public void startProcess() {
       System.out.println("start process");
      
       }
      


      or, by using API

      Jbpm bpm = Jbpm.instance();
       JbpmConfiguration conf = bpm.getJbpmConfiguration();
       JbpmContext context = conf.createJbpmContext();
       ProcessDefinition pd = context.getGraphSession().findLatestProcessDefinition(definition);
       context.setActorId(Actor.instance().getId());
       ProcessInstance p = new ProcessInstance(pd);
      
       Token t = p.getRootToken();
       t.signal();
       /*Collection taskInstances = p.getTaskMgmtInstance().getTaskInstances();
       Iterator iter = taskInstances.iterator();
       while(iter.hasNext()) {
      
       TaskInstance task = (TaskInstance) iter.next();
       System.out.println("start" + task.getName());
       task.start();
       System.out.println("end" + task.getName());
       task.end();
       System.out.println("save" + task.getName());
       context.save(task);
       }*/
      
       context.save(p);
       context.close();
       System.out.println("po jade");
      


        • 1. Re: Problem with getting process instance's creator
          Ronald van Kuijk Master

          - What is the behaviour you see?
          - What version of jBPM?
          - What does the debug output log?
          - create a unittest with embedded processdefinition
          - .....

          • 2. Re: Problem with getting process instance's creator
            Marcin M Newbie

            continued, because I have pressed 'Enter' by accident. :)

            context.setActorId(Actor.instance().getId());
            


            the Actor object is injected Seam component. getId() expression returns not null value.

            after process gets started I try to check jbpm_swimlaneInstance, which is always empty (I don't have any other process definition deployed).

            What am I doing wrong?

            Is there any easier / other way to get process instance originator?

            Thanks in advance for help

            • 3. Re: Problem with getting process instance's creator
              Marcin M Newbie

               

              "kukeltje" wrote:
              - What is the behaviour you see?

              I just check jbpm_swimlaneinstance. I look for a place in database where the login on creator is stored what is needed for quering all proccess instances started by given login.

              "kukeltje" wrote:

              - What version of jBPM?
              [/quote="kukeltje"]
              3.1.4

              "kukeltje" wrote:

              - What does the debug output log?

              After starting a process?

              15:47:55,813 INFO [STDOUT] Hibernate: select top ? processdef0_.ID_ as ID1_2994_, processdef0_.NAME_ as NAME2_2994_, processdef0_.VERSION_ as VERSION3_2994_, processdef0_.ISTERMINATIONIMPLICIT_ as ISTERMIN4_2994_, processdef0_.STARTSTATE_ as STARTSTATE5_2994_ from JBPM_PROCESSDEFINITION processdef0_ where processdef0_.NAME_=? order by processdef0_.VERSION_ desc
              15:47:55,819 INFO [STDOUT] Hibernate: insert into JBPM_TOKEN (ID_, VERSION_, NAME_, START_, END_, NODEENTER_, NEXTLOGINDEX_, ISABLETOREACTIVATEPARENT_, ISTERMINATIONIMPLICIT_, ISSUSPENDED_, NODE_, PROCESSINSTANCE_, PARENT_, SUBPROCESSINSTANCE_) values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
              15:47:55,820 INFO [STDOUT] Hibernate: call identity()
              15:47:55,821 INFO [STDOUT] Hibernate: insert into JBPM_PROCESSINSTANCE (ID_, VERSION_, START_, END_, ISSUSPENDED_, PROCESSDEFINITION_, ROOTTOKEN_, SUPERPROCESSTOKEN_) values (null, ?, ?, ?, ?, ?, ?, ?)
              15:47:55,822 INFO [STDOUT] Hibernate: call identity()
              15:47:55,823 INFO [STDOUT] Hibernate: select definition0_.PROCESSDEFINITION_ as PROCESSD4_1_, definition0_.ID_ as ID1_1_, definition0_.NAME_ as NAME3_1_, definition0_.ID_ as ID1_3006_0_, definition0_.NAME_ as NAME3_3006_0_, definition0_.PROCESSDEFINITION_ as PROCESSD4_3006_0_, definition0_.STARTTASK_ as STARTTASK5_3006_0_, definition0_.CLASS_ as CLASS2_3006_0_ from JBPM_MODULEDEFINITION definition0_ where definition0_.PROCESSDEFINITION_=?
              15:47:55,835 INFO [STDOUT] Hibernate: select events0_.PROCESSDEFINITION_ as PROCESSD5_1_, events0_.ID_ as ID1_1_, events0_.EVENTTYPE_ as EVENTTYPE2_1_, events0_.ID_ as ID1_2997_0_, events0_.EVENTTYPE_ as EVENTTYPE2_2997_0_, events0_.TYPE_ as TYPE3_2997_0_, events0_.GRAPHELEMENT_ as GRAPHELE4_2997_0_ from JBPM_EVENT events0_ where events0_.PROCESSDEFINITION_=?
              15:47:55,837 INFO [STDOUT] Hibernate: select node0_.ID_ as ID1_2995_0_, node0_.NAME_ as NAME3_2995_0_, node0_.PROCESSDEFINITION_ as PROCESSD4_2995_0_, node0_.ISASYNC_ as ISASYNC5_2995_0_, node0_.ACTION_ as ACTION6_2995_0_, node0_.SUPERSTATE_ as SUPERSTATE7_2995_0_, node0_.SUBPROCESSDEFINITION_ as SUBPROCE8_2995_0_, node0_.DECISIONEXPRESSION_ as DECISION9_2995_0_, node0_.DECISIONDELEGATION as DECISIO10_2995_0_, node0_.SIGNAL_ as SIGNAL11_2995_0_, node0_.CREATETASKS_ as CREATET12_2995_0_, node0_.ENDTASKS_ as ENDTASKS13_2995_0_, node0_.CLASS_ as CLASS2_2995_0_ from JBPM_NODE node0_ where node0_.ID_=?
              15:47:55,839 INFO [STDOUT] Hibernate: select leavingtra0_.FROM_ as FROM4_1_, leavingtra0_.ID_ as ID1_1_, leavingtra0_.FROMINDEX_ as FROMINDEX6_1_, leavingtra0_.ID_ as ID1_2996_0_, leavingtra0_.NAME_ as NAME2_2996_0_, leavingtra0_.PROCESSDEFINITION_ as PROCESSD3_2996_0_, leavingtra0_.FROM_ as FROM4_2996_0_, leavingtra0_.TO_ as TO5_2996_0_ from JBPM_TRANSITION leavingtra0_ where leavingtra0_.FROM_=?
              15:47:55,842 INFO [STDOUT] Hibernate: select events0_.NODE_ as NODE6_1_, events0_.ID_ as ID1_1_, events0_.EVENTTYPE_ as EVENTTYPE2_1_, events0_.ID_ as ID1_2997_0_, events0_.EVENTTYPE_ as EVENTTYPE2_2997_0_, events0_.TYPE_ as TYPE3_2997_0_, events0_.GRAPHELEMENT_ as GRAPHELE4_2997_0_ from JBPM_EVENT events0_ where events0_.NODE_=?
              15:47:55,844 INFO [STDOUT] Hibernate: select events0_.TRANSITION_ as TRANSITION7_1_, events0_.ID_ as ID1_1_, events0_.EVENTTYPE_ as EVENTTYPE2_1_, events0_.ID_ as ID1_2997_0_, events0_.EVENTTYPE_ as EVENTTYPE2_2997_0_, events0_.TYPE_ as TYPE3_2997_0_, events0_.GRAPHELEMENT_ as GRAPHELE4_2997_0_ from JBPM_EVENT events0_ where events0_.TRANSITION_=?
              15:47:55,846 INFO [STDOUT] Hibernate: select node0_.ID_ as ID1_2995_0_, node0_.NAME_ as NAME3_2995_0_, node0_.PROCESSDEFINITION_ as PROCESSD4_2995_0_, node0_.ISASYNC_ as ISASYNC5_2995_0_, node0_.ACTION_ as ACTION6_2995_0_, node0_.SUPERSTATE_ as SUPERSTATE7_2995_0_, node0_.SUBPROCESSDEFINITION_ as SUBPROCE8_2995_0_, node0_.DECISIONEXPRESSION_ as DECISION9_2995_0_, node0_.DECISIONDELEGATION as DECISIO10_2995_0_, node0_.SIGNAL_ as SIGNAL11_2995_0_, node0_.CREATETASKS_ as CREATET12_2995_0_, node0_.ENDTASKS_ as ENDTASKS13_2995_0_, node0_.CLASS_ as CLASS2_2995_0_ from JBPM_NODE node0_ where node0_.ID_=?
              15:47:55,848 INFO [STDOUT] Hibernate: select events0_.NODE_ as NODE6_1_, events0_.ID_ as ID1_1_, events0_.EVENTTYPE_ as EVENTTYPE2_1_, events0_.ID_ as ID1_2997_0_, events0_.EVENTTYPE_ as EVENTTYPE2_2997_0_, events0_.TYPE_ as TYPE3_2997_0_, events0_.GRAPHELEMENT_ as GRAPHELE4_2997_0_ from JBPM_EVENT events0_ where events0_.NODE_=?
              15:47:55,855 INFO [STDOUT] Hibernate: select tasks0_.TASKNODE_ as TASKNODE11_1_, tasks0_.ID_ as ID1_1_, tasks0_.ID_ as ID1_3004_0_, tasks0_.NAME_ as NAME2_3004_0_, tasks0_.PROCESSDEFINITION_ as PROCESSD3_3004_0_, tasks0_.DESCRIPTION_ as DESCRIPT4_3004_0_, tasks0_.ISBLOCKING_ as ISBLOCKING5_3004_0_, tasks0_.ISSIGNALLING_ as ISSIGNAL6_3004_0_, tasks0_.DUEDATE_ as DUEDATE7_3004_0_, tasks0_.ACTORIDEXPRESSION_ as ACTORIDE8_3004_0_, tasks0_.POOLEDACTORSEXPRESSION_ as POOLEDAC9_3004_0_, tasks0_.TASKMGMTDEFINITION_ as TASKMGM10_3004_0_, tasks0_.TASKNODE_ as TASKNODE11_3004_0_, tasks0_.STARTSTATE_ as STARTSTATE12_3004_0_, tasks0_.ASSIGNMENTDELEGATION_ as ASSIGNM13_3004_0_, tasks0_.SWIMLANE_ as SWIMLANE14_3004_0_, tasks0_.TASKCONTROLLER_ as TASKCON15_3004_0_ from JBPM_TASK tasks0_ where tasks0_.TASKNODE_=?
              15:47:55,856 WARN [ProxyWarnLog] Narrowing proxy to class org.jbpm.graph.node.TaskNode - this operation breaks ==
              15:47:55,864 INFO [STDOUT] Hibernate: insert into JBPM_TASKINSTANCE (ID_, NAME_, DESCRIPTION_, ACTORID_, CREATE_, START_, END_, DUEDATE_, PRIORITY_, ISCANCELLED_, ISSUSPENDED_, ISOPEN_, ISSIGNALLING_, ISBLOCKING_, TASK_, TOKEN_, SWIMLANINSTANCE_, TASKMGMTINSTANCE_, CLASS_) values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'T')
              15:47:55,865 INFO [STDOUT] Hibernate: call identity()
              15:47:55,866 INFO [STDOUT] Hibernate: select events0_.TASK_ as TASK8_1_, events0_.ID_ as ID1_1_, events0_.EVENTTYPE_ as EVENTTYPE2_1_, events0_.ID_ as ID1_2997_0_, events0_.EVENTTYPE_ as EVENTTYPE2_2997_0_, events0_.TYPE_ as TYPE3_2997_0_, events0_.GRAPHELEMENT_ as GRAPHELE4_2997_0_ from JBPM_EVENT events0_ where events0_.TASK_=?
              15:47:55,975 INFO [STDOUT] Hibernate: insert into JBPM_LOG (ID_, INDEX_, DATE_, TOKEN_, PARENT_, CLASS_) values (null, ?, ?, ?, ?, 'I')
              15:47:55,976 INFO [STDOUT] Hibernate: call identity()
              15:47:55,976 INFO [STDOUT] Hibernate: insert into JBPM_LOG (ID_, INDEX_, DATE_, TOKEN_, PARENT_, TRANSITION_, CLASS_) values (null, ?, ?, ?, ?, ?, 'S')
              15:47:55,977 INFO [STDOUT] Hibernate: call identity()
              15:47:55,978 INFO [STDOUT] Hibernate: insert into JBPM_LOG (ID_, INDEX_, DATE_, TOKEN_, PARENT_, TRANSITION_, SOURCENODE_, DESTINATIONNODE_, CLASS_) values (null, ?, ?, ?, ?, ?, ?, ?, 'T')
              15:47:55,979 INFO [STDOUT] Hibernate: call identity()
              15:47:55,980 INFO [STDOUT] Hibernate: insert into JBPM_LOG (ID_, INDEX_, DATE_, TOKEN_, PARENT_, TASKINSTANCE_, TASKACTORID_, CLASS_) values (null, ?, ?, ?, ?, ?, ?, '1')
              15:47:55,980 INFO [STDOUT] Hibernate: call identity()
              15:47:55,982 INFO [STDOUT] Hibernate: insert into JBPM_MODULEINSTANCE (ID_, PROCESSINSTANCE_, TASKMGMTDEFINITION_, CLASS_) values (null, ?, ?, 'T')
              15:47:55,982 INFO [STDOUT] Hibernate: call identity()
              15:47:55,983 INFO [STDOUT] Hibernate: insert into JBPM_MODULEINSTANCE (ID_, PROCESSINSTANCE_, CLASS_) values (null, ?, 'C')
              15:47:55,984 INFO [STDOUT] Hibernate: call identity()
              15:47:55,985 INFO [STDOUT] Hibernate: insert into JBPM_POOLEDACTOR (ID_, ACTORID_, SWIMLANEINSTANCE_) values (null, ?, ?)
              15:47:55,986 INFO [STDOUT] Hibernate: call identity()
              15:47:55,990 INFO [STDOUT] Hibernate: update JBPM_TOKEN set VERSION_=?, NAME_=?, START_=?, END_=?, NODEENTER_=?, NEXTLOGINDEX_=?, ISABLETOREACTIVATEPARENT_=?, ISTERMINATIONIMPLICIT_=?, ISSUSPENDED_=?, NODE_=?, PROCESSINSTANCE_=?, PARENT_=?, SUBPROCESSINSTANCE_=? where ID_=? and VERSION_=?
              15:47:55,991 INFO [STDOUT] Hibernate: update JBPM_PROCESSINSTANCE set VERSION_=?, START_=?, END_=?, ISSUSPENDED_=?, PROCESSDEFINITION_=?, ROOTTOKEN_=?, SUPERPROCESSTOKEN_=? where ID_=? and VERSION_=?
              15:47:55,991 INFO [STDOUT] Hibernate: update JBPM_TASKINSTANCE set NAME_=?, DESCRIPTION_=?, ACTORID_=?, CREATE_=?, START_=?, END_=?, DUEDATE_=?, PRIORITY_=?, ISCANCELLED_=?, ISSUSPENDED_=?, ISOPEN_=?, ISSIGNALLING_=?, ISBLOCKING_=?, TASK_=?, TOKEN_=?, SWIMLANINSTANCE_=?, TASKMGMTINSTANCE_=? where ID_=?
              15:47:55,992 INFO [STDOUT] Hibernate: update JBPM_MODULEINSTANCE set PROCESSINSTANCE_=?, NAME_=? where ID_=?
              15:47:55,992 INFO [STDOUT] Hibernate: update JBPM_MODULEINSTANCE set PROCESSINSTANCE_=?, NAME_=? where ID_=?
              15:47:55,993 INFO [STDOUT] Hibernate: insert into JBPM_TASKACTORPOOL (TASKINSTANCE_, POOLEDACTOR_) values (?, ?)
              15:47:55,994 INFO [STDOUT] Hibernate: call identity()
              15:47:56,092 INFO [STDOUT] Hibernate: select taskinstan0_.ID_ as ID1_3017_, taskinstan0_.NAME_ as NAME3_3017_, taskinstan0_.DESCRIPTION_ as DESCRIPT4_3017_, taskinstan0_.ACTORID_ as ACTORID5_3017_, taskinstan0_.CREATE_ as CREATE6_3017_, taskinstan0_.START_ as START7_3017_, taskinstan0_.END_ as END8_3017_, taskinstan0_.DUEDATE_ as DUEDATE9_3017_, taskinstan0_.PRIORITY_ as PRIORITY10_3017_, taskinstan0_.ISCANCELLED_ as ISCANCE11_3017_, taskinstan0_.ISSUSPENDED_ as ISSUSPE12_3017_, taskinstan0_.ISOPEN_ as ISOPEN13_3017_, taskinstan0_.ISSIGNALLING_ as ISSIGNA14_3017_, taskinstan0_.ISBLOCKING_ as ISBLOCKING15_3017_, taskinstan0_.TASK_ as TASK16_3017_, taskinstan0_.TOKEN_ as TOKEN17_3017_, taskinstan0_.SWIMLANINSTANCE_ as SWIMLAN18_3017_, taskinstan0_.TASKMGMTINSTANCE_ as TASKMGM19_3017_ from JBPM_TASKINSTANCE taskinstan0_ where taskinstan0_.ACTORID_=? and taskinstan0_.ISSUSPENDED_<>1 and taskinstan0_.ISOPEN_=1
              15:47:56,110 INFO [STDOUT] Hibernate: select taskinstan0_.ID_ as ID1_3017_, taskinstan0_.NAME_ as NAME3_3017_, taskinstan0_.DESCRIPTION_ as DESCRIPT4_3017_, taskinstan0_.ACTORID_ as ACTORID5_3017_, taskinstan0_.CREATE_ as CREATE6_3017_, taskinstan0_.START_ as START7_3017_, taskinstan0_.END_ as END8_3017_, taskinstan0_.DUEDATE_ as DUEDATE9_3017_, taskinstan0_.PRIORITY_ as PRIORITY10_3017_, taskinstan0_.ISCANCELLED_ as ISCANCE11_3017_, taskinstan0_.ISSUSPENDED_ as ISSUSPE12_3017_, taskinstan0_.ISOPEN_ as ISOPEN13_3017_, taskinstan0_.ISSIGNALLING_ as ISSIGNA14_3017_, taskinstan0_.ISBLOCKING_ as ISBLOCKING15_3017_, taskinstan0_.TASK_ as TASK16_3017_, taskinstan0_.TOKEN_ as TOKEN17_3017_, taskinstan0_.SWIMLANINSTANCE_ as SWIMLAN18_3017_, taskinstan0_.TASKMGMTINSTANCE_ as TASKMGM19_3017_ from JBPM_TASKINSTANCE taskinstan0_ where taskinstan0_.ACTORID_=? and taskinstan0_.ISSUSPENDED_<>1 and taskinstan0_.ISOPEN_=1
              


              • 4. Re: Problem with getting process instance's creator
                Ronald van Kuijk Master

                This is only hibernate stdout, not jbpm debug output...

                • 5. Re: Problem with getting process instance's creator
                  Marcin M Newbie

                  I did a tail server.log -n | grep 'org.jbpm' to get only jbpm messages as I don't get anything for jbpm on stout.

                  I hope they are the logs you have asked for.

                  2007-02-27 15:59:33,872 DEBUG [org.jbpm.configuration.JbpmContextInfo] creating jbpm context with service factories '[message, scheduler, logging, persistence, authentication]'
                  2007-02-27 15:59:33,872 DEBUG [org.jbpm.JbpmContext] creating JbpmContext
                  2007-02-27 15:59:33,872 DEBUG [org.jbpm.persistence.db.DbPersistenceServiceFactory] creating persistence service
                  2007-02-27 15:59:33,872 DEBUG [org.jbpm.persistence.db.DbPersistenceService] creating hibernate session
                  2007-02-27 15:59:33,874 DEBUG [org.hibernate.loader.Loader] result row: EntityKey[org.jbpm.graph.def.ProcessDefinition#1]
                  2007-02-27 15:59:33,874 DEBUG [org.hibernate.engine.TwoPhaseLoad] resolving associations for [org.jbpm.graph.def.ProcessDefinition#1]
                  2007-02-27 15:59:33,875 DEBUG [org.hibernate.engine.TwoPhaseLoad] adding entity to second-level cache: [org.jbpm.graph.def.ProcessDefinition#1]
                  2007-02-27 15:59:33,875 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Caching: org.jbpm.graph.def.ProcessDefinition#1
                  2007-02-27 15:59:33,875 DEBUG [org.hibernate.engine.TwoPhaseLoad] done materializing entity [org.jbpm.graph.def.ProcessDefinition#1]
                  2007-02-27 15:59:33,879 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.graph.def.ProcessDefinition.definitions#1
                  2007-02-27 15:59:33,879 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.module.def.ModuleDefinition#1
                  2007-02-27 15:59:33,879 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.module.def.ModuleDefinition#2
                  2007-02-27 15:59:33,880 DEBUG [org.jbpm.graph.def.GraphElement] event 'process-start' on 'ProcessDefinition(vacationRequest)' for 'Token(/)'
                  2007-02-27 15:59:33,880 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.graph.def.ProcessDefinition.events#1
                  2007-02-27 15:59:33,880 DEBUG [org.hibernate.impl.SessionImpl] initializing proxy: [org.jbpm.graph.def.Node#1]
                  2007-02-27 15:59:33,880 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.graph.def.Node#1
                  2007-02-27 15:59:33,880 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.graph.def.Node.leavingTransitions#1
                  2007-02-27 15:59:33,880 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.graph.def.Transition#1
                  2007-02-27 15:59:33,881 DEBUG [org.jbpm.graph.def.GraphElement] event 'before-signal' on 'StartState(start)' for 'Token(/)'
                  2007-02-27 15:59:33,881 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.graph.def.Node.events#1
                  2007-02-27 15:59:33,881 DEBUG [org.jbpm.graph.def.GraphElement] event 'node-leave' on 'StartState(start)' for 'Token(/)'
                  2007-02-27 15:59:33,881 DEBUG [org.jbpm.graph.def.GraphElement] event 'transition' on 'Transition()' for 'Token(/)'
                  2007-02-27 15:59:33,881 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.graph.def.Transition.events#1
                  2007-02-27 15:59:33,881 DEBUG [org.hibernate.impl.SessionImpl] initializing proxy: [org.jbpm.graph.def.Node#2]
                  2007-02-27 15:59:33,881 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.graph.def.Node#2
                  2007-02-27 15:59:33,881 DEBUG [org.jbpm.graph.def.GraphElement] event 'node-enter' on 'TaskNode(decision)' for 'Token(/)'
                  2007-02-27 15:59:33,881 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.graph.def.Node.events#2
                  2007-02-27 15:59:33,881 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.graph.node.TaskNode.tasks#2
                  2007-02-27 15:59:33,881 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.taskmgmt.def.Task#1
                  2007-02-27 15:59:33,882 WARN [org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog] Narrowing proxy to class org.jbpm.graph.node.TaskNode - this operation breaks ==
                  2007-02-27 15:59:33,882 DEBUG [org.hibernate.impl.SessionImpl] initializing proxy: [org.jbpm.graph.node.TaskNode#2]
                  2007-02-27 15:59:33,884 DEBUG [org.jbpm.graph.def.GraphElement] event 'task-create' on 'Task(decide)' for 'Token(/)'
                  2007-02-27 15:59:33,884 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.taskmgmt.def.Task.events#1
                  2007-02-27 15:59:33,886 DEBUG [org.jbpm.jpdl.el.impl.BeanMethod] invoking expression method 'assign'
                  2007-02-27 15:59:33,888 DEBUG [org.jbpm.graph.def.GraphElement] event 'after-signal' on 'StartState(start)' for 'Token(/)'
                  2007-02-27 15:59:33,888 DEBUG [org.jbpm.svc.Services] executing default save operations
                  2007-02-27 15:59:33,888 DEBUG [org.jbpm.svc.save.HibernateSaveOperation] saving process instance
                  2007-02-27 15:59:33,888 DEBUG [org.jbpm.svc.save.SaveLogsOperation] flushing logs to logging service.
                  2007-02-27 15:59:33,894 DEBUG [org.jbpm.svc.save.CascadeSaveOperation] cascading save of 'org.jbpm.graph.exe.ProcessInstance@1060f37'
                  2007-02-27 15:59:33,894 DEBUG [org.jbpm.JbpmContext] closing JbpmContext
                  2007-02-27 15:59:33,895 DEBUG [org.jbpm.svc.Services] closing service 'persistence': org.jbpm.persistence.db.DbPersistenceService@18640f5
                  2007-02-27 15:59:33,895 DEBUG [org.jbpm.persistence.db.DbPersistenceService] flushing hibernate session
                  2007-02-27 15:59:33,900 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.ProcessDefinition.events#1], was: [org.jbpm.graph.def.ProcessDefinition.even
                  ts#1] (initialized)
                  2007-02-27 15:59:33,900 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.ProcessDefinition.exceptionHandlers#1], was: [org.jbpm.graph.def.ProcessDefi
                  nition.exceptionHandlers#1] (uninitialized)
                  2007-02-27 15:59:33,900 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.ProcessDefinition.nodes#1], was: [org.jbpm.graph.def.ProcessDefinition.nodes
                  #1] (uninitialized)
                  2007-02-27 15:59:33,900 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.ProcessDefinition.actions#1], was: [org.jbpm.graph.def.ProcessDefinition.act
                  ions#1] (uninitialized)
                  2007-02-27 15:59:33,900 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.ProcessDefinition.definitions#1], was: [org.jbpm.graph.def.ProcessDefinition
                  2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.exe.ProcessInstance.instances#2], was: [<unreferenced>] (initialized)
                  2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.def.TaskMgmtDefinition.swimlanes#2], was: [org.jbpm.taskmgmt.def.TaskMgmtDefi
                  nition.swimlanes#2] (uninitialized)
                  2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.def.TaskMgmtDefinition.tasks#2], was: [org.jbpm.taskmgmt.def.TaskMgmtDefiniti
                  on.tasks#2] (uninitialized)
                  2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Node.events#1], was: [org.jbpm.graph.def.Node.events#1] (initialized)
                  2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Node.exceptionHandlers#1], was: [org.jbpm.graph.def.Node.exceptionHandlers#1
                  ] (uninitialized)
                  2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Node.leavingTransitions#1], was: [org.jbpm.graph.def.Node.leavingTransitions
                  #1] (initialized)
                  2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Node.arrivingTransitions#1], was: [org.jbpm.graph.def.Node.arrivingTransitio
                  ns#1] (uninitialized)
                  2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Transition.events#1], was: [org.jbpm.graph.def.Transition.events#1] (initial
                  ized)
                  2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Transition.exceptionHandlers#1], was: [org.jbpm.graph.def.Transition.excepti
                  onHandlers#1] (uninitialized)
                  2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Node.events#2], was: [org.jbpm.graph.def.Node.events#2] (initialized)
                  2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Node.exceptionHandlers#2], was: [org.jbpm.graph.def.Node.exceptionHandlers#2
                  ] (uninitialized)
                  2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Node.leavingTransitions#2], was: [org.jbpm.graph.def.Node.leavingTransitions
                  #2] (uninitialized)
                  2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Node.arrivingTransitions#2], was: [org.jbpm.graph.def.Node.arrivingTransitio
                  ns#2] (uninitialized)
                  2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.node.TaskNode.tasks#2], was: [org.jbpm.graph.node.TaskNode.tasks#2] (initialized
                  )
                  2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.def.Task.events#1], was: [org.jbpm.taskmgmt.def.Task.events#1] (initialized)
                  2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.def.Task.exceptionHandlers#1], was: [org.jbpm.taskmgmt.def.Task.exceptionHand
                  lers#1] (uninitialized)
                  2007-02-27 15:59:33,902 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.exe.TaskInstance.pooledActors#2], was: [<unreferenced>] (initialized)
                  2007-02-27 15:59:33,902 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.exe.TaskMgmtInstance.taskInstances#3], was: [<unreferenced>] (initialized)
                  2007-02-27 15:59:33,902 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.exe.PooledActor.taskInstances#2], was: [<unreferenced>] (initialized)
                  2007-02-27 15:59:33,902 DEBUG [org.hibernate.pretty.Printer] org.jbpm.taskmgmt.exe.PooledActor{actorId=admin, swimlaneInstance=null, taskInstances=[org.jbpm.taskmgmt.exe.TaskInsta
                  nce#2], id=2}
                  2007-02-27 15:59:33,902 DEBUG [org.hibernate.pretty.Printer] org.jbpm.graph.log.SignalLog{index=1, transition=org.jbpm.graph.def.Transition#1, token=org.jbpm.graph.exe.Token#2, da
                  te=2007-02-27 15:59:33, parent=null, id=6}
                  2007-02-27 15:59:33,902 DEBUG [org.hibernate.pretty.Printer] org.jbpm.context.def.ContextDefinition{name=org.jbpm.context.def.ContextDefinition, id=1, processDefinition=org.jbpm.g
                  raph.def.ProcessDefinition#1}
                  2007-02-27 15:59:33,902 DEBUG [org.hibernate.pretty.Printer] org.jbpm.graph.def.Transition{to=org.jbpm.graph.def.Node#2, events=[], from=org.jbpm.graph.def.Node#1, exceptionHandle
                  rs=<uninitialized>, name=, id=1, processDefinition=org.jbpm.graph.def.ProcessDefinition#1}
                  2007-02-27 15:59:33,902 DEBUG [org.hibernate.pretty.Printer] org.jbpm.taskmgmt.log.TaskCreateLog{taskActorId=null, taskInstance=org.jbpm.taskmgmt.exe.TaskInstance#2, index=3, toke
                  n=org.jbpm.graph.exe.Token#2, date=2007-02-27 15:59:33, parent=org.jbpm.logging.log.CompositeLog#6, id=8}
                  2007-02-27 15:59:33,902 DEBUG [org.hibernate.pretty.Printer] org.jbpm.graph.def.ProcessDefinition{startState=org.jbpm.graph.def.Node#1, events=[], definitions=[org.jbpm.module.def
                  .ModuleDefinition#1, org.jbpm.module.def.ModuleDefinition#2], actions=<uninitialized>, nodes=<uninitialized>, exceptionHandlers=<uninitialized>, isTerminationImplicit=false, name=
                  vacationRequest, id=1, version=1}
                  2007-02-27 15:59:33,903 DEBUG [org.hibernate.pretty.Printer] org.jbpm.graph.exe.Token{comments=null, processInstance=org.jbpm.graph.exe.ProcessInstance#2, subProcessInstance=null,
                   start=2007-02-27 15:59:33, isSuspended=false, end=null, node=org.jbpm.graph.def.Node#0, id=2, version=0, nextLogIndex=4, name=null, isTerminationImplicit=false, children=null, is
                  AbleToReactivateParent=true, parent=null, nodeEnter=2007-02-27 15:59:33}
                  2007-02-27 15:59:33,903 DEBUG [org.hibernate.pretty.Printer] org.jbpm.graph.node.TaskNode{signal=4, events=[], action=null, leavingTransitions=<uninitialized>, superState=null, ta
                  sks=[org.jbpm.taskmgmt.def.Task#1], id=2, createTasks=true, processDefinition=org.jbpm.graph.def.ProcessDefinition#1, isAsync=false, endTasks=false, exceptionHandlers=<uninitializ
                  ed>, name=decision, arrivingTransitions=<uninitialized>}
                  2007-02-27 15:59:33,903 DEBUG [org.hibernate.pretty.Printer] org.jbpm.taskmgmt.exe.TaskInstance{comments=null, isBlocking=false, start=null, variableInstances=null, taskMgmtInstan
                  ce=org.jbpm.taskmgmt.exe.TaskMgmtInstance#3, isSuspended=false, isOpen=true, end=null, swimlaneInstance=null, dueDate=null, token=org.jbpm.graph.exe.Token#2, pooledActors=[org.jbp
                  m.taskmgmt.exe.PooledActor#2], id=2, actorId=null, isSignalling=true, create=2007-02-27 15:59:33, description=null, isCancelled=false, task=org.jbpm.taskmgmt.def.Task#1, name=deci
                  de, priority=3}
                  2007-02-27 15:59:33,903 DEBUG [org.hibernate.pretty.Printer] org.jbpm.taskmgmt.def.TaskMgmtDefinition{swimlanes=<uninitialized>, startTask=org.jbpm.taskmgmt.def.Task#2, tasks=<uninitialized>, name=org.jbpm.taskmgmt.def.TaskMgmtDefinition, id=2, processDefinition=org.jbpm.graph.def.ProcessDefinition#1}
                  2007-02-27 15:59:33,903 DEBUG [org.hibernate.pretty.Printer] org.jbpm.context.exe.ContextInstance{processInstance=org.jbpm.graph.exe.ProcessInstance#2, id=4, tokenVariableMaps=nul
                  l}
                  2007-02-27 15:59:33,903 DEBUG [org.hibernate.pretty.Printer] org.jbpm.graph.log.TransitionLog{index=2, destinationNode=org.jbpm.graph.def.Node#2, sourceNode=org.jbpm.graph.def.Nod
                  e#1, transition=org.jbpm.graph.def.Transition#1, token=org.jbpm.graph.exe.Token#2, date=2007-02-27 15:59:33, parent=org.jbpm.logging.log.CompositeLog#6, id=7}
                  2007-02-27 15:59:33,903 DEBUG [org.hibernate.pretty.Printer] org.jbpm.taskmgmt.def.Task{swimlane=null, assignmentDelegation=null, startState=null, events=[], isBlocking=false, due
                  Date=null, taskMgmtDefinition=org.jbpm.taskmgmt.def.TaskMgmtDefinition#2, pooledActorsExpression=#{vacationRequest.assign}, id=1, processDefinition=org.jbpm.graph.def.ProcessDefin
                  ition#1, taskNode=org.jbpm.graph.node.TaskNode#2, isSignalling=true, description=null, actorIdExpression=null, exceptionHandlers=<uninitialized>, taskController=null, name=decide}
                  2007-02-27 15:59:33,903 DEBUG [org.hibernate.pretty.Printer] org.jbpm.taskmgmt.exe.TaskMgmtInstance{processInstance=org.jbpm.graph.exe.ProcessInstance#2, taskMgmtDefinition=org.jb
                  pm.taskmgmt.def.TaskMgmtDefinition#2, taskInstances=[org.jbpm.taskmgmt.exe.TaskInstance#2], swimlaneInstances=null, id=3}
                  2007-02-27 15:59:33,903 DEBUG [org.hibernate.pretty.Printer] org.jbpm.graph.log.ProcessInstanceCreateLog{index=0, token=org.jbpm.graph.exe.Token#2, date=2007-02-27 15:59:33, paren
                  t=null, id=5}
                  2007-02-27 15:59:33,903 DEBUG [org.hibernate.pretty.Printer] org.jbpm.graph.node.StartState{events=[], leavingTransitions=[org.jbpm.graph.def.Transition#1], action=null, superStat
                  e=null, exceptionHandlers=<uninitialized>, name=start, id=1, arrivingTransitions=<uninitialized>, isAsync=false, processDefinition=org.jbpm.graph.def.ProcessDefinition#1}
                  2007-02-27 15:59:33,904 DEBUG [org.hibernate.pretty.Printer] org.jbpm.graph.exe.ProcessInstance{start=2007-02-27 15:59:33, instances=[org.jbpm.module.exe.ModuleInstance#3, org.jbp
                  m.module.exe.ModuleInstance#4], runtimeActions=null, isSuspended=false, end=null, superProcessToken=null, rootToken=org.jbpm.graph.exe.Token#2, id=2, processDefinition=org.jbpm.gr
                  aph.def.ProcessDefinition#1, version=1}
                  2007-02-27 15:59:33,906 DEBUG [org.hibernate.persister.collection.AbstractCollectionPersister] Inserting collection: [org.jbpm.graph.exe.ProcessInstance.instances#2]
                  2007-02-27 15:59:33,906 DEBUG [org.hibernate.persister.collection.AbstractCollectionPersister] Inserting collection: [org.jbpm.taskmgmt.exe.TaskInstance.pooledActors#2]
                  2007-02-27 15:59:33,907 DEBUG [org.jbpm.persistence.db.DbPersistenceService] closing hibernate session
                  2007-02-27 15:59:33,907 DEBUG [org.jbpm.svc.Services] closing service 'logging': org.jbpm.logging.db.DbLoggingService@dbe549
                  2007-02-27 15:59:33,907 DEBUG [org.jbpm.svc.Services] closing service 'authentication': org.jbpm.security.authentication.DefaultAuthenticationService@aa4a39
                  2007-02-27 15:59:34,012 DEBUG [org.jbpm.configuration.JbpmContextInfo] creating jbpm context with service factories '[message, scheduler, logging, persistence, authentication]'
                  2007-02-27 15:59:34,012 DEBUG [org.jbpm.JbpmContext] creating JbpmContext
                  2007-02-27 15:59:34,012 DEBUG [org.jbpm.configuration.JbpmContextInfo] creating jbpm context with service factories '[message, scheduler, logging, persistence, authentication]'
                  2007-02-27 15:59:34,012 DEBUG [org.jbpm.JbpmContext] creating JbpmContext
                  2007-02-27 15:59:34,012 DEBUG [org.jbpm.JbpmContext] closing JbpmContext
                  2007-02-27 15:59:34,012 DEBUG [org.jbpm.persistence.db.DbPersistenceServiceFactory] creating persistence service
                  2007-02-27 15:59:34,012 DEBUG [org.jbpm.persistence.db.DbPersistenceService] creating hibernate session
                  2007-02-27 15:59:34,336 DEBUG [org.jbpm.JbpmContext] closing JbpmContext
                  2007-02-27 15:59:34,336 DEBUG [org.jbpm.svc.Services] closing service 'persistence': org.jbpm.persistence.db.DbPersistenceService@ce92e7
                  2007-02-27 15:59:34,336 DEBUG [org.jbpm.persistence.db.DbPersistenceService] flushing hibernate session
                  2007-02-27 15:59:34,336 DEBUG [org.jbpm.persistence.db.DbPersistenceService] closing hibernate session
                  2007-02-27 15:59:34,336 DEBUG [org.jbpm.svc.Services] closing service 'authentication': org.jbpm.security.authentication.DefaultAuthenticationService@e9cee
                  


                  • 6. Re: Problem with getting process instance's creator
                    Marcin M Newbie

                    the same in more readable form (sorry, for the mess, why can't I edit my posts?)

                    2007-02-27 15:59:33,872 DEBUG [org.jbpm.configuration.JbpmContextInfo] creating jbpm context with service factories '[message, scheduler, logging, persistence, authentication]'
                    2007-02-27 15:59:33,872 DEBUG [org.jbpm.JbpmContext] creating JbpmContext
                    2007-02-27 15:59:33,872 DEBUG [org.jbpm.persistence.db.DbPersistenceServiceFactory] creating persistence service
                    2007-02-27 15:59:33,872 DEBUG [org.jbpm.persistence.db.DbPersistenceService] creating hibernate session
                    2007-02-27 15:59:33,874 DEBUG [org.hibernate.loader.Loader] result row: EntityKey[org.jbpm.graph.def.ProcessDefinition#1]
                    2007-02-27 15:59:33,874 DEBUG [org.hibernate.engine.TwoPhaseLoad] resolving associations for [org.jbpm.graph.def.ProcessDefinition#1]
                    2007-02-27 15:59:33,875 DEBUG [org.hibernate.engine.TwoPhaseLoad] adding entity to second-level cache: [org.jbpm.graph.def.ProcessDefinition#1]
                    2007-02-27 15:59:33,875 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Caching: org.jbpm.graph.def.ProcessDefinition#1
                    2007-02-27 15:59:33,875 DEBUG [org.hibernate.engine.TwoPhaseLoad] done materializing entity [org.jbpm.graph.def.ProcessDefinition#1]
                    2007-02-27 15:59:33,879 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.graph.def.ProcessDefinition.definitions#1
                    2007-02-27 15:59:33,879 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.module.def.ModuleDefinition#1
                    2007-02-27 15:59:33,879 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.module.def.ModuleDefinition#2
                    2007-02-27 15:59:33,880 DEBUG [org.jbpm.graph.def.GraphElement] event 'process-start' on 'ProcessDefinition(vacationRequest)' for 'Token(/)'
                    2007-02-27 15:59:33,880 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.graph.def.ProcessDefinition.events#1
                    2007-02-27 15:59:33,880 DEBUG [org.hibernate.impl.SessionImpl] initializing proxy: [org.jbpm.graph.def.Node#1]
                    2007-02-27 15:59:33,880 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.graph.def.Node#1
                    2007-02-27 15:59:33,880 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.graph.def.Node.leavingTransitions#1
                    2007-02-27 15:59:33,880 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.graph.def.Transition#1
                    2007-02-27 15:59:33,881 DEBUG [org.jbpm.graph.def.GraphElement] event 'before-signal' on 'StartState(start)' for 'Token(/)'
                    2007-02-27 15:59:33,881 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.graph.def.Node.events#1
                    2007-02-27 15:59:33,881 DEBUG [org.jbpm.graph.def.GraphElement] event 'node-leave' on 'StartState(start)' for 'Token(/)'
                    2007-02-27 15:59:33,881 DEBUG [org.jbpm.graph.def.GraphElement] event 'transition' on 'Transition()' for 'Token(/)'
                    2007-02-27 15:59:33,881 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.graph.def.Transition.events#1
                    2007-02-27 15:59:33,881 DEBUG [org.hibernate.impl.SessionImpl] initializing proxy: [org.jbpm.graph.def.Node#2]
                    2007-02-27 15:59:33,881 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.graph.def.Node#2
                    2007-02-27 15:59:33,881 DEBUG [org.jbpm.graph.def.GraphElement] event 'node-enter' on 'TaskNode(decision)' for 'Token(/)'
                    2007-02-27 15:59:33,881 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.graph.def.Node.events#2
                    2007-02-27 15:59:33,881 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.graph.node.TaskNode.tasks#2
                    2007-02-27 15:59:33,881 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.taskmgmt.def.Task#1
                    2007-02-27 15:59:33,882 WARN [org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog] Narrowing proxy to class org.jbpm.graph.node.TaskNode - this operation breaks ==
                    2007-02-27 15:59:33,882 DEBUG [org.hibernate.impl.SessionImpl] initializing proxy: [org.jbpm.graph.node.TaskNode#2]
                    2007-02-27 15:59:33,884 DEBUG [org.jbpm.graph.def.GraphElement] event 'task-create' on 'Task(decide)' for 'Token(/)'
                    2007-02-27 15:59:33,884 DEBUG [org.hibernate.cache.NonstrictReadWriteCache] Cache lookup: org.jbpm.taskmgmt.def.Task.events#1
                    2007-02-27 15:59:33,886 DEBUG [org.jbpm.jpdl.el.impl.BeanMethod] invoking expression method 'assign'
                    2007-02-27 15:59:33,888 DEBUG [org.jbpm.graph.def.GraphElement] event 'after-signal' on 'StartState(start)' for 'Token(/)'
                    2007-02-27 15:59:33,888 DEBUG [org.jbpm.svc.Services] executing default save operations
                    2007-02-27 15:59:33,888 DEBUG [org.jbpm.svc.save.HibernateSaveOperation] saving process instance
                    2007-02-27 15:59:33,888 DEBUG [org.jbpm.svc.save.SaveLogsOperation] flushing logs to logging service.
                    2007-02-27 15:59:33,894 DEBUG [org.jbpm.svc.save.CascadeSaveOperation] cascading save of 'org.jbpm.graph.exe.ProcessInstance@1060f37'
                    2007-02-27 15:59:33,894 DEBUG [org.jbpm.JbpmContext] closing JbpmContext
                    2007-02-27 15:59:33,895 DEBUG [org.jbpm.svc.Services] closing service 'persistence': org.jbpm.persistence.db.DbPersistenceService@18640f5
                    2007-02-27 15:59:33,895 DEBUG [org.jbpm.persistence.db.DbPersistenceService] flushing hibernate session
                    2007-02-27 15:59:33,900 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.ProcessDefinition.events#1], was: [org.jbpm.graph.def.ProcessDefinition.events#1] (initialized)
                    2007-02-27 15:59:33,900 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.ProcessDefinition.exceptionHandlers#1], was: [org.jbpm.graph.def.ProcessDefinition.exceptionHandlers#1] (uninitialized)
                    2007-02-27 15:59:33,900 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.ProcessDefinition.nodes#1], was: [org.jbpm.graph.def.ProcessDefinition.nodes#1] (uninitialized)
                    2007-02-27 15:59:33,900 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.ProcessDefinition.actions#1], was: [org.jbpm.graph.def.ProcessDefinition.actions#1] (uninitialized)
                    2007-02-27 15:59:33,900 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.ProcessDefinition.definitions#1], was: [org.jbpm.graph.def.ProcessDefinition.definitions#1] (initialized)
                    2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.exe.ProcessInstance.instances#2], was: [<unreferenced>] (initialized)
                    2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.def.TaskMgmtDefinition.swimlanes#2], was: [org.jbpm.taskmgmt.def.TaskMgmtDefinition.swimlanes#2] (uninitialized)
                    2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.def.TaskMgmtDefinition.tasks#2], was: [org.jbpm.taskmgmt.def.TaskMgmtDefinition.tasks#2] (uninitialized)
                    2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Node.events#1], was: [org.jbpm.graph.def.Node.events#1] (initialized)
                    2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Node.exceptionHandlers#1], was: [org.jbpm.graph.def.Node.exceptionHandlers#1] (uninitialized)
                    2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Node.leavingTransitions#1], was: [org.jbpm.graph.def.Node.leavingTransitions#1] (initialized)
                    2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Node.arrivingTransitions#1], was: [org.jbpm.graph.def.Node.arrivingTransitions#1] (uninitialized)
                    2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Transition.events#1], was: [org.jbpm.graph.def.Transition.events#1] (initialized)
                    2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Transition.exceptionHandlers#1], was: [org.jbpm.graph.def.Transition.exceptionHandlers#1] (uninitialized)
                    2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Node.events#2], was: [org.jbpm.graph.def.Node.events#2] (initialized)
                    2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Node.exceptionHandlers#2], was: [org.jbpm.graph.def.Node.exceptionHandlers#2] (uninitialized)
                    2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Node.leavingTransitions#2], was: [org.jbpm.graph.def.Node.leavingTransitions#2] (uninitialized)
                    2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.def.Node.arrivingTransitions#2], was: [org.jbpm.graph.def.Node.arrivingTransitions#2] (uninitialized)
                    2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.graph.node.TaskNode.tasks#2], was: [org.jbpm.graph.node.TaskNode.tasks#2] (initialized)
                    2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.def.Task.events#1], was: [org.jbpm.taskmgmt.def.Task.events#1] (initialized)
                    2007-02-27 15:59:33,901 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.def.Task.exceptionHandlers#1], was: [org.jbpm.taskmgmt.def.Task.exceptionHandlers#1] (uninitialized)
                    2007-02-27 15:59:33,902 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.exe.TaskInstance.pooledActors#2], was: [<unreferenced>] (initialized)
                    2007-02-27 15:59:33,902 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.exe.TaskMgmtInstance.taskInstances#3], was: [<unreferenced>] (initialized)
                    2007-02-27 15:59:33,902 DEBUG [org.hibernate.engine.Collections] Collection found: [org.jbpm.taskmgmt.exe.PooledActor.taskInstances#2], was: [<unreferenced>] (initialized)
                    2007-02-27 15:59:33,902 DEBUG [org.hibernate.pretty.Printer] org.jbpm.taskmgmt.exe.PooledActor{actorId=admin, swimlaneInstance=null, taskInstances=[org.jbpm.taskmgmt.exe.TaskInstance#2], id=2}
                    2007-02-27 15:59:33,902 DEBUG [org.hibernate.pretty.Printer] org.jbpm.graph.log.SignalLog{index=1, transition=org.jbpm.graph.def.Transition#1, token=org.jbpm.graph.exe.Token#2, date=2007-02-27 15:59:33, parent=null, id=6}
                    2007-02-27 15:59:33,902 DEBUG [org.hibernate.pretty.Printer] org.jbpm.context.def.ContextDefinition{name=org.jbpm.context.def.ContextDefinition, id=1, processDefinition=org.jbpm.graph.def.ProcessDefinition#1}
                    2007-02-27 15:59:33,902 DEBUG [org.hibernate.pretty.Printer] org.jbpm.graph.def.Transition{to=org.jbpm.graph.def.Node#2, events=[], from=org.jbpm.graph.def.Node#1, exceptionHandlers=<uninitialized>, name=, id=1, processDefinition=org.jbpm.graph.def.ProcessDefinition#1}
                    2007-02-27 15:59:33,902 DEBUG [org.hibernate.pretty.Printer] org.jbpm.taskmgmt.log.TaskCreateLog{taskActorId=null, taskInstance=org.jbpm.taskmgmt.exe.TaskInstance#2, index=3, token=org.jbpm.graph.exe.Token#2, date=2007-02-27 15:59:33, parent=org.jbpm.logging.log.CompositeLog#6, id=8}
                    2007-02-27 15:59:33,902 DEBUG [org.hibernate.pretty.Printer] org.jbpm.graph.def.ProcessDefinition{startState=org.jbpm.graph.def.Node#1, events=[], definitions=[org.jbpm.module.def.ModuleDefinition#1, org.jbpm.module.def.ModuleDefinition#2], actions=<uninitialized>, nodes=<uninitialized>, exceptionHandlers=<uninitialized>, isTerminationImplicit=false, name=vacationRequest, id=1, version=1}
                    2007-02-27 15:59:33,903 DEBUG [org.hibernate.pretty.Printer] org.jbpm.graph.exe.Token{comments=null, processInstance=org.jbpm.graph.exe.ProcessInstance#2, subProcessInstance=null, start=2007-02-27 15:59:33, isSuspended=false, end=null, node=org.jbpm.graph.def.Node#0, id=2, version=0, nextLogIndex=4, name=null, isTerminationImplicit=false, children=null, isAbleToReactivateParent=true, parent=null, nodeEnter=2007-02-27 15:59:33}
                    2007-02-27 15:59:33,903 DEBUG [org.hibernate.pretty.Printer] org.jbpm.graph.node.TaskNode{signal=4, events=[], action=null, leavingTransitions=<uninitialized>, superState=null, tasks=[org.jbpm.taskmgmt.def.Task#1], id=2, createTasks=true, processDefinition=org.jbpm.graph.def.ProcessDefinition#1, isAsync=false, endTasks=false, exceptionHandlers=<uninitialized>, name=decision, arrivingTransitions=<uninitialized>}
                    2007-02-27 15:59:33,903 DEBUG [org.hibernate.pretty.Printer] org.jbpm.taskmgmt.exe.TaskInstance{comments=null, isBlocking=false, start=null, variableInstances=null, taskMgmtInstance=org.jbpm.taskmgmt.exe.TaskMgmtInstance#3, isSuspended=false, isOpen=true, end=null, swimlaneInstance=null, dueDate=null, token=org.jbpm.graph.exe.Token#2, pooledActors=[org.jbpm.taskmgmt.exe.PooledActor#2], id=2, actorId=null, isSignalling=true, create=2007-02-27 15:59:33, description=null, isCancelled=false, task=org.jbpm.taskmgmt.def.Task#1, name=decide, priority=3}
                    2007-02-27 15:59:33,903 DEBUG [org.hibernate.pretty.Printer] org.jbpm.taskmgmt.def.TaskMgmtDefinition{swimlanes=<uninitialized>, startTask=org.jbpm.taskmgmt.def.Task#2, tasks=<uninitialized>, name=org.jbpm.taskmgmt.def.TaskMgmtDefinition, id=2, processDefinition=org.jbpm.graph.def.ProcessDefinition#1}
                    2007-02-27 15:59:33,903 DEBUG [org.hibernate.pretty.Printer] org.jbpm.context.exe.ContextInstance{processInstance=org.jbpm.graph.exe.ProcessInstance#2, id=4, tokenVariableMaps=null}
                    2007-02-27 15:59:33,903 DEBUG [org.hibernate.pretty.Printer] org.jbpm.graph.log.TransitionLog{index=2, destinationNode=org.jbpm.graph.def.Node#2, sourceNode=org.jbpm.graph.def.Node#1, transition=org.jbpm.graph.def.Transition#1, token=org.jbpm.graph.exe.Token#2, date=2007-02-27 15:59:33, parent=org.jbpm.logging.log.CompositeLog#6, id=7}
                    2007-02-27 15:59:33,903 DEBUG [org.hibernate.pretty.Printer] org.jbpm.taskmgmt.def.Task{swimlane=null, assignmentDelegation=null, startState=null, events=[], isBlocking=false, dueDate=null, taskMgmtDefinition=org.jbpm.taskmgmt.def.TaskMgmtDefinition#2, pooledActorsExpression=#{vacationRequest.assign}, id=1, processDefinition=org.jbpm.graph.def.ProcessDefinition#1, taskNode=org.jbpm.graph.node.TaskNode#2, isSignalling=true, description=null, actorIdExpression=null, exceptionHandlers=<uninitialized>, taskController=null, name=decide}
                    2007-02-27 15:59:33,903 DEBUG [org.hibernate.pretty.Printer] org.jbpm.taskmgmt.exe.TaskMgmtInstance{processInstance=org.jbpm.graph.exe.ProcessInstance#2, taskMgmtDefinition=org.jbpm.taskmgmt.def.TaskMgmtDefinition#2, taskInstances=[org.jbpm.taskmgmt.exe.TaskInstance#2], swimlaneInstances=null, id=3}
                    2007-02-27 15:59:33,903 DEBUG [org.hibernate.pretty.Printer] org.jbpm.graph.log.ProcessInstanceCreateLog{index=0, token=org.jbpm.graph.exe.Token#2, date=2007-02-27 15:59:33, parent=null, id=5}
                    2007-02-27 15:59:33,903 DEBUG [org.hibernate.pretty.Printer] org.jbpm.graph.node.StartState{events=[], leavingTransitions=[org.jbpm.graph.def.Transition#1], action=null, superState=null, exceptionHandlers=<uninitialized>, name=start, id=1, arrivingTransitions=<uninitialized>, isAsync=false, processDefinition=org.jbpm.graph.def.ProcessDefinition#1}
                    2007-02-27 15:59:33,904 DEBUG [org.hibernate.pretty.Printer] org.jbpm.graph.exe.ProcessInstance{start=2007-02-27 15:59:33, instances=[org.jbpm.module.exe.ModuleInstance#3, org.jbpm.module.exe.ModuleInstance#4], runtimeActions=null, isSuspended=false, end=null, superProcessToken=null, rootToken=org.jbpm.graph.exe.Token#2, id=2, processDefinition=org.jbpm.graph.def.ProcessDefinition#1, version=1}
                    2007-02-27 15:59:33,906 DEBUG [org.hibernate.persister.collection.AbstractCollectionPersister] Inserting collection: [org.jbpm.graph.exe.ProcessInstance.instances#2]
                    2007-02-27 15:59:33,906 DEBUG [org.hibernate.persister.collection.AbstractCollectionPersister] Inserting collection: [org.jbpm.taskmgmt.exe.TaskInstance.pooledActors#2]
                    2007-02-27 15:59:33,907 DEBUG [org.jbpm.persistence.db.DbPersistenceService] closing hibernate session
                    2007-02-27 15:59:33,907 DEBUG [org.jbpm.svc.Services] closing service 'logging': org.jbpm.logging.db.DbLoggingService@dbe549
                    2007-02-27 15:59:33,907 DEBUG [org.jbpm.svc.Services] closing service 'authentication': org.jbpm.security.authentication.DefaultAuthenticationService@aa4a39
                    2007-02-27 15:59:34,012 DEBUG [org.jbpm.configuration.JbpmContextInfo] creating jbpm context with service factories '[message, scheduler, logging, persistence, authentication]'
                    2007-02-27 15:59:34,012 DEBUG [org.jbpm.JbpmContext] creating JbpmContext
                    2007-02-27 15:59:34,012 DEBUG [org.jbpm.configuration.JbpmContextInfo] creating jbpm context with service factories '[message, scheduler, logging, persistence, authentication]'
                    2007-02-27 15:59:34,012 DEBUG [org.jbpm.JbpmContext] creating JbpmContext
                    2007-02-27 15:59:34,012 DEBUG [org.jbpm.JbpmContext] closing JbpmContext
                    2007-02-27 15:59:34,012 DEBUG [org.jbpm.persistence.db.DbPersistenceServiceFactory] creating persistence service
                    2007-02-27 15:59:34,012 DEBUG [org.jbpm.persistence.db.DbPersistenceService] creating hibernate session
                    2007-02-27 15:59:34,336 DEBUG [org.jbpm.JbpmContext] closing JbpmContext
                    2007-02-27 15:59:34,336 DEBUG [org.jbpm.svc.Services] closing service 'persistence': org.jbpm.persistence.db.DbPersistenceService@ce92e7
                    2007-02-27 15:59:34,336 DEBUG [org.jbpm.persistence.db.DbPersistenceService] flushing hibernate session
                    2007-02-27 15:59:34,336 DEBUG [org.jbpm.persistence.db.DbPersistenceService] closing hibernate session
                    2007-02-27 15:59:34,336 DEBUG [org.jbpm.svc.Services] closing service 'authentication': org.jbpm.security.authentication.DefaultAuthenticationService@e9cee
                    


                    • 7. Re: Problem with getting process instance's creator
                      Ronald van Kuijk Master

                      I do not see anything in the logging about the originator swimlane.. heck not even anything about the task in this start state (you could notice this to)

                      Two things:
                      - there is a whitespace between swimlane and = (swimlane ="originator" instead of swimlane="originator") don't know if it makes a difference, but I noticed it
                      - tasks in the start state are not automatically created (afaik). Use

                      taskMgmtInstance = processInstance.getTaskMgmtInstance();
                       taskMgmtInstance.createStartTaskInstance();
                      


                      If you extend your tests (other words for ' making them better' ;-)) you would have had better insight in the creation of the tasks...

                      • 8. Re: Problem with getting process instance's creator
                        Marcin M Newbie

                         

                        "kukeltje" wrote:
                        I do not see anything in the logging about the originator swimlane.. heck not even anything about the task in this start state (you could notice this to)

                        Two things:
                        - there is a whitespace between swimlane and = (swimlane ="originator" instead of swimlane="originator") don't know if it makes a difference, but I noticed it
                        - tasks in the start state are not automatically created (afaik). Use
                        taskMgmtInstance = processInstance.getTaskMgmtInstance();
                         taskMgmtInstance.createStartTaskInstance();
                        


                        1. seems like the whitespace doesn't matter.
                        2. following your suggestion I added

                        TaskInstance task = taskMgmtInstance.createStartTaskInstance();
                        task.start();
                        task.end();
                        context.save(task);
                        


                        and now it works. Thank you ;)

                        "kukeltje" wrote:

                        If you extend your tests (other words for ' making them better' ;-)) you would have had better insight in the creation of the tasks...


                        could you provide any tips?

                        • 9. Re: Problem with getting process instance's creator
                          Ronald van Kuijk Master

                          tips:

                          just look at the testcases provided by jbpm. e.g. If you had tested if you were in the start task, you would have found out you never were.