2 Replies Latest reply on Aug 20, 2010 8:21 AM by aguizar

    jbpm3: how to band pages to task node?

    yushanyuan

      hi,all

       

           just as the title. when i list the tasklist by actorid, i need give each taskinstance a hyperlink pointing to the task form page.

      how can i get this hyperlink? or where do i save it?

       

      Thanks.

        • 1. Re: jbpm3: how to band pages to task node?
          sberthouzoz

          Hi,

           

          I had this usecase in my previous application. I aslo didn't find any nice solution so I finally used the description of the task node to store the link:

          ...

          <task-node name="TaskNode">
            <description>/cmc/searchldapuser.xhtml</description>
            <task name="taskname" swimlane="main">
              <description>task decription displayed on the UI</description>
            </task>
            <transition to="next" />
          </task-node>
          ...
          then you can get the link with task.getToken().getNode().getDescription()
          • 2. Re: jbpm3: how to band pages to task node?
            aguizar

            Other solutions include setting a task instance variable (see TaskInstance API) or supplying a custom task instance factory. If you want to provide a link to the task form page in the JSF console shipped with jBPM3, you can compose it from the task instance ID as follows.

            http://${host}:8080/jbpm-console/app/task.jsf?id=${taskInstance.id}