3 Replies Latest reply on Sep 18, 2010 4:42 AM by mwohlf

    Change Password feature

    sbwarrier

      I need to implement change pasword feature inside my Java handler class. How do I get the logged in user id, password, new password etc within my java handler class? Once the password is changed, how do I send that message to that user and also to force the user to relogin?

      Thanks,

      SW

        • 1. Re: Change Password feature
          mwohlf

          Hi SB,

          jbpm is a workflow engine, the identity management features are very limited and not suited for production in my opinion.

          You use the EnvironmentImpl.setAuthenticatedUserId()  to tell the Engine which user is performing actions.

          Getting the authenticated user, password management etc. is not in the scope of jbpm, this is the job of other frameworks like spring-security, seam or JAAS...

          • 2. Re: Change Password feature
            sbwarrier

            I am calling a Java Handler class when my task/decision is executed. Inside this Java code I need to know the user id of the user executing the task. Hoo can I achieve that?

            Thanks,

            SW

            • 3. Re: Change Password feature
              mwohlf

              you might want to try EnvironmentImpl.getAuthenticatedUserId() or task.getAssignee()