3 Replies Latest reply on Mar 14, 2006 7:41 AM by ingoott

    Help, i am stuck with jbpm

    ingoott

      Hi at all,

      i am developing a major application with jboss and jbpm. It will be an integration plattform that is connecting at least 6 databases. Now i managed to adapt jbpm that it uses postgres, ldap for authentication and i deployed a simple process with a start state, onde task node and a end state.
      The start-state has a task and the task has an action that will be executed at "task.assign".

      The problem i have is that i cannot get the actorId. It simply is null. Although the getAuthenticatedActorId-Method says that it is null too. After the login process the getAuthenticatedActorId-Method says my login, but when i am processing a proecess it is null?

      Did i forgot something in the code? How does the authentication in jbpm work? Does it have something to do with the swimlanes? At the moment i use the swimlane "personal" but i don't have the actor associated with "personal". The funy thing - if it has something to do with the swimlanes - is that i can start the process. After i closed and finished the task, jbpm says "a new task has been assigned to null".


      I am using jBPM 3.0.

      Many thanks in advance,

      Ingo

        • 1. Re: Help, i am stuck with jbpm
          akakunin

          Do you process all process in one method - or in some sort of web-application?
          For web-application you need to set actorId into JbpmContext (JbpmSession) on every loading the new page (look Jbpm Web-Example application - AuthenticationFilter)

          Hope it will help.

          • 2. Re: Help, i am stuck with jbpm
            ingoott

            Hi,

            i am using a web-application and wanted to do what you just said, but i can't find any JbmpContext in jBPM 3.0(!) - instead i found it in jBPM 3.1, where i have to rewrite everything in my code!

            What do i have to do in jBPM 3.0?

            Thanks in advance,

            Ingo

            • 3. Re: Help, i am stuck with jbpm
              ingoott

              Hi @all,

              i found it out

              Thanks for the effort,

              Ingo