1 Reply Latest reply on Sep 9, 2010 2:21 AM by swiderski.maciej

    jbpm-console is not displaying task in start node

    speleomaniac

      Hi everybody,

       

      I have a problem with jbpm 3.2.7...

       

      I had the following process, as you may see I have a task at start node and I am expecting that jbpm-console create a task with the form that I deployed a task when I create an instance of the process but that doesn't happening.

       

      If I signal to the transition out of start-state as you may see second node is a task node and jbpm creates the task and display the task form....

       

      Am I doing something wrong here? (below I would place the forms.xml also and I seeing that in the archive forms.xml and xhtml are included...)

       

      Second part of the question would be, the concept of blocking and non-blocking task is confusing me...in the workflow if I don't trigger a transition that workflow should wait at the task, so what is the meaning of the blocking, non-blocking here.

       

      And a final question, I tried to verify the problem exists also in 4.4 and I created a process definition for it also, I think it is not possible any more to define a task in start node or? And Graphical Designer has no support to creates forms for 4.4. processes....(below you can find my 4.4 version of the process) and what would be trigger to leave the start and go into first task.....

       

      Thx for the answers

       

      process


      <?xml version="1.0" encoding="UTF-8"?>
      <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="sample_process">
           <swimlane name="Marketing">
                <assignment expression="group(Marketing)"/>
           </swimlane>
           <swimlane name="Campaign Manager">
                <assignment expression="group(Campaign Manager)"/>
           </swimlane>
           <swimlane name="Promo Definition Cockpit">
                <assignment expression="group(Promo Definition Cockpit)"/>
           </swimlane>
           <start-state name="Create Ticket in Tool">
                <task swimlane="Marketing" name="Create Ticket in Tool">
                     <controller>
                          <variable access="read,write,required" name="ticketName" mapped-name="Ticket Name"/>
                     </controller>
                </task>
                <transition to="Attach Document" name="Done"/>
           </start-state>
           <task-node name="Attach Document">
                <task name="Attach Document" swimlane="Marketing">
                     <controller>
                          <variable access="read,write" name="document" mapped-name="Document"/>
                     </controller>
                </task>
                <transition to="end-state1" name="Done"/>
           </task-node>
           <end-state name="end-state1"/>
      </process-definition>
      

       

      forms.xml

       

      <forms>

        <form task="Create Ticket in Tool" form="CreateTicketinTool.xhtml"/>

        <form task="Attach Document" form="AttachDocument.xhtml"/>

      </forms>

       

       

      forms.xml
      <forms>
        <form task="Create Ticket in Tool" form="CreateTicketinTool.xhtml"/>
        <form task="Attach Document" form="AttachDocument.xhtml"/>
      </forms>

       


      process 4.4


      <?xml version="1.0" encoding="UTF-8"?>
      <process name="jbpm4" xmlns="http://jbpm.org/4.4/jpdl">
           <swimlane name="Marketing"/>
           <start g="263,69,48,48" name="start1">
                <transition g="-146,-17" name="Done" to="Create Ticket in  Tool"/>
           </start>
           <task g="214,190,144,52" name="Create Ticket in Tool" swimlane="group(Marketing)">
                <transition name="Done" to="Attach Document" g="-151,-18"/>
           </task>
           <task name="Attach Document" g="193,324,187,52" swimlane="group(Marketing)">
                <transition name="to end1" to="end1" g="-42,-18"/>
           </task>
           <end name="end1" g="262,442,48,48"/>
      </process>
      
        • 1. Re: jbpm-console is not displaying task in start node
          swiderski.maciej

          Process definition is a bit different for version 4.x so it does not  have same funtionalities as 3.x. I am not expert in version 3.x so  unfortunately I am not able to answer all your questions.

          Mehmet Salgar wrote:


          And a final question, I tried to verify the problem exists also in 4.4 and I created a process definition for it also, I think it is not possible any more to define a task in start node or? And Graphical Designer has no support to creates forms for 4.4. processes....(below you can find my 4.4 version of the process) and what would be trigger to leave the start and go into first task.....

          You could define a form for a start node using attribute form that contains path to the form you would like to display on process instance start. The same way you could attach forms to task nodes. Please have a look at documentation in dev guide for more details.

           

          HTH