7 Replies Latest reply on Oct 9, 2009 12:59 PM by kukeltje

    "startable" processes for a given user

      Hello,

      I am a bit confused with the "Start" activity and swimlanes.

      I would need to retrieve information like : "Le list of processes the currently logged user have the right to start".


      I have tried to set an "initiator" swimlane and various other thing, but I cannot find a way to filter processDefinitions on usernames.

      Does somebody has a clue ?

        • 1. Re:
          sebastian.s

          AFAIK is jBPM lacking a permission system to restrict users from starting processes at the moment so every user can start every process right now.

          • 2. Re:

            Thanks.

            That's what I was suspecting anyway :)

            • 3. Re:

              And an additional question on the same subjet ...

              I did not manage to "capture" the user that started the process in a swimlane. (in order to allow this user perform other tasks afterwards).

              Is this also impossible ?

              I've seens several references to an "initiator" swimlane, but I haven't managed to make it work.

              • 4. Re:
                kukeltje

                the initiator swimlane is something from jBPM 3

                • 5. Re:

                  Ok.

                  Is there a way to "capture" the initiator in JBPM4 ?

                  I mean getting the Id of the user that initiated the process.

                  It is not something unusual that this user has a separate swimlane.

                  • 6. Re:

                     

                    "Krohm" wrote:
                    Ok.

                    Is there a way to "capture" the initiator in JBPM4 ?

                    I mean getting the Id of the user that initiated the process.

                    It is not something unusual that this user has a separate swimlane.


                    I just store it in the process context. I have a web form that gathers information, creates the a process instance, and stores a couple of other things in the context as well.

                    • 7. Re:
                      kukeltje

                      That is indeed an option. You can also set the actor of the swimlane of that specific task.