1 Reply Latest reply on Oct 4, 2012 2:46 PM by marcio.dantas

    How to get the name of a user task?

    marcio.dantas

      Hi,

       

      I'm using Jbpm 5.3.0.Final and have a BPMN 2.0 user task like below:

       

      <userTask id="usertask1" name="User Task Name" >

      ...

       

      When I query my task instances using a LocalTaskService I would like to retrieve the task instance's name ("User Task Name", for example).

       

      How is this done?

       

      org.jbpm.task.Task has a "getNames()" which isn't returning nothing.

        • 1. Re: How to get the name of a user task?
          marcio.dantas

          Just finded out what was going wrong..

           

          I first modeled the diagram with Activiti designer and then opened it with Jbpm's.

           

          The graphical editor showed the task names right, but the TaskName attribute wasn't really setted.

           

          Hope this helps someone else.

           

          cheers