2 Replies Latest reply on Mar 14, 2014 8:45 AM by Hlaing Win Tun

    How to get actors in jBPM

    wailwinmoe Newbie


      I would like to ask about how to get actors of jbpm workflow by using process instance id.

      My problem is that I want to show workflow's actors of specified workflow.

      In order to show like that I know only process instance id. How can I get actors?

      If you have any idea about this, kindly reply me.


      Best regards,

      Wai Lwin Moe.

        • 1. Re: How to get actors in jBPM
          Mauricio Salatino Master

          Hi Wai,

          I'm not sure to understand what is the problem that you are trying to solve.

          If you have a business process you know which groups/users are assigned to the tasks right?

          Then you need to use the task service APIs to query for this tasks depending the user that is logged in to the system right?

          From the User Task perspective you usually don't care about which process is requiring the task, you just get all the tasks associated with one user or group.



          • 2. Re: How to get actors in jBPM
            Hlaing Win Tun Newbie


            I am using like that.

            ProcessInstance instance = (ProcessInstance) StatefulKnowledgeSession.getProcessInstance(processInstaceId);

            WorkflowProcessInstance workflowProcessInstance = (WorkflowProcessInstance) instance;




            In this way, you can get dynamic actor value, by giving variableName.

            I think, it will be help you.