3 Replies Latest reply on Jan 2, 2009 1:08 PM by kukeltje

    findAllProcessDefinitions()

      Hi All,

      I am working on a one of POC to know the features of JBPM. I just create a processdefinition and assigned tasks to some of the groups. Everything is working fine.

      I have 2 questions now...

      1. I want to assign the process start of the processdefinition to a perticular group only. In fact when user of that group log in, he should only see that process definition to start and all other should not... Is this possible in JBPM. What exactly I want to achieve is, the procedefinition start should be assign to perticular group only. No other user from other group should not see that processdefinition, only to see the tasks assigned to him/her.
      How to do this?

      2. I am want to display list of process that assigned to perticular user.
      **
      jbpmContext.getGraphSession().findAllProcessDefinitions()
      **
      There is any api which allows me to list only processdefinitions that are assigned user of that group.

      Any help appreciated.

      Thanks.
      Giri

        • 1. Re: findAllProcessDefinitions()
          kukeltje

          1: by writing your own code to show what you want to show

          2: No, see 1 unless you mean tasks for process INSTANCES, not definitions. Then just use the api to get tasklists

          • 2. Re: findAllProcessDefinitions()

            Hi Kukeltje,

            Thanks for your help.. With your first answer now its clear to me, I should write my own code to show which processes I have to show for which users... In this case the user interface code always have to modify if new process definitions are adding....

            But I am still thinking this is a draw back in JBPM. There should an enhancement this feature in JBPM.

            Because, in the current functionality of JBPM, there is no way to restick only particular group of users to start the processdefinition.

            lets say, I have a one task after processdifinition start and that task is assigned to a user.

            start--->task assigned to a user ---> end

            In this case anyone can start this process and assigns the task to that user.

            • 3. Re: findAllProcessDefinitions()
              kukeltje

               

              there is no way to restick only particular group of users to start the processdefinition.


              Yes there is... in your application. In the jBPM console there is no such functionality since it was never intended to be used by end-users.