2 Replies Latest reply on Mar 14, 2014 8:45 AM by hwintun

    How to get actors in jBPM

    wailwinmoe

      Hi

      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
          salaboy21

          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.

           

          HTH

          • 2. Re: How to get actors in jBPM
            hwintun

            Hi,

            I am using like that.

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

            WorkflowProcessInstance workflowProcessInstance = (WorkflowProcessInstance) instance;

             

            workflowProcessInstance.getVariable("variableName");

             

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

            I think, it will be help you.