3 Replies Latest reply on Aug 18, 2006 2:36 AM by kukeltje

    JBPM_VARIABLEINSTANCE - REGISTERS WITHOUT PROCESS OR TASK AS

    eskina

      Hi!

      Using the example websale.
      1 - I create a new instance of process
      ProcessDefinition processDefinition =
      graphSession.findLatestProcessDefinition("websale");
      ProcessInstance processInstance = new ProcessInstance(processDefinition);

      2 - I create the Task
      TaskInstance taskInstance =
      processInstance.getTaskMgmtInstance().createStartTaskInstance();

      3 - I create the variable
      taskInstance.setVariable("item", "TV");
      taskInstance.setVariable("quantity", "20");
      taskInstance.setVariable("address", "Here");

      4 - saved ProcessInstance
      jbpmContext.save(processInstance);
      5 - it close jbpmContext
      jbpmContext.close();

      To the look table JBPM_VARIABLEINSTANCE I have the following one:
      id_ class_ name_ converter_ token_ tokenvariablemap_ processinstance_ ... longvalue_ ... stringvalue_ taskinstance_
      1 N item null null null null ... null ... null null
      2 N quantity null null null null ... null ... null null
      3 N address null null null null ... null ... null null
      4 S item null 1 null 1 ... null ... TV 1
      5 L quantity I 1 null 1 ... 20 ... null 1
      6 S address null 1 null 1 ... null ... Here 1

      The question is the following one, why is created registers without ProcessInstance or TaskInstance associates, who later the o to follow ahead with the process remain thus?

      I am using jBPM 3.1.2.

      Thanks!

        • 1. Re: JBPM_VARIABLEINSTANCE - REGISTERS WITHOUT PROCESS OR TAS
          kukeltje

          some generic comments:
          - just post normal code with normal java comment and use [ c o d e ] tags (without spaces) for this
          - how can we know WHEN the 1,2 and 3 variable instances are created? You could have a process with an actionhandler that just creates independent variableinstances? I'm not saying you do but it could be and we cannot determine that.
          - post your processdefinition and use code tags for that as well

          I bet you can determin when they are created. Process instantiation time, task creation time? so please be a little more specific. Also use debug to find info.

          who later the o to follow ahead with the process remain thus?


          What do you mean by this?



          • 2. Re: JBPM_VARIABLEINSTANCE - REGISTERS WITHOUT PROCESS OR TAS
            eskina

            Hi ronald!

            Thank you for the fast return!

            In this in case that I am executing the process webapp (jBPM-3.1.2), he does not include new implementations, to understand its persistence solely. I did not understand why when saving the data, I remain in same task ("create new web sale to order"), it practically generates 3 registers with null values, without association to any process or task... When I visualize this task and I follow again for next ("evaluate web to order") the these registers remain unchanged... without association with task or process that it generated it.... you could explain because this to me?

            Very Thanks!

            • 3. Re: JBPM_VARIABLEINSTANCE - REGISTERS WITHOUT PROCESS OR TAS
              kukeltje

              saving is just like saying 'I've entered som data, but are not finished yet with this task'.

              The behaviour you describe is at least not something to worry about (it works right?). File a jira issue for this so it does not get lost. We'll look at it in due time