9 Replies Latest reply on Jun 11, 2008 5:57 AM by kukeltje

    removing the identity component

    ajanz

      Hello,

      i want to use my own identity component. because we got already existing users and groups in our system.

      i read the documentation with "removing the identity component", but got no idea how to proceed from that point. i remove the hibernate mapping and then? must i implement my own expressionassigmenthandler? how can i tell jbpm to use it?


        • 1. Re: removing the identity component
          anuragpaliwal

          Hi,

          Well it depends whether you really like to use expression fro assignment or not.

          If not then its easy because jbpm use String datatype to store actorIds. Hence you can use your own IdentityComponent ini AssignmentHandler's assign method. You don't have to tell jbpm anything about your IC(IdentityComponent).

          But if you would like to use expressionhandler then its not that easy. It has small dependency on IC provided by Jbpm.

          Cheers!!!!!!

          • 2. Re: removing the identity component
            ajanz

            don't know if i understand you right.

            suppose i don't want to use expressions....

            so i write my own assignmenthandler ( with use of strings as ids) and use it in the processdefinition?

            so i can completly forget about the jbpm identity component?

            or what is meant by identity component?

            • 3. Re: removing the identity component
              ajanz

              the only way i see so long is modifying the sources. especially the Class IdentitySession

              Is this the right way???

              • 4. Re: removing the identity component
                ajanz

                so i replaced the implementation of identitysession with my own.

                but it is never called...

                what am i doing wrong?

                please help. it's urgent

                • 5. Re: removing the identity component
                  gustavodesimone

                  I have the same problem.

                  Have you resolved it?

                  Thank in advance.

                  • 6. Re: removing the identity component
                    ajanz

                    for me there are two solutions.

                    first

                    - modify the source of the existing component, an delegate the functions to your own component. ( you have to remove the hibernate configuration)

                    this will even work with the sample web app

                    be carfeful with the mail node. you must write some code for resolving the email adress

                    second

                    use your own assignmenthandler.

                    this will not work with the sample app

                    • 7. Re: removing the identity component
                      kukeltje

                      in a few weeks I'll post a document that describes how to do things like this. So keep posted.

                      • 8. Re: removing the identity component
                        lblaauw

                        Ronald,

                        Did you ever get to post the document you mention below ? I would love to see that too, since we also have our own user database allready. We use the jboss custom jaas handlers to authenticate and authorise the users and get their groups allready.

                        Rigth now we are not using the jbpm identity library but loosing the option to assign the adressee of a task with expressions is a shame in this way.

                        Since we need to dynamically assign users to tasks I believe it would be handy to have this functionality back even if we use our own user database...

                        Or would it be simpler to have a variable and to assign a user to this variable in the starttask and use this variable as the assignee of the first task in the flow ??



                        Greetings,
                        Leo

                        "kukeltje" wrote:
                        in a few weeks I'll post a document that describes how to do things like this. So keep posted.


                        • 9. Re: removing the identity component
                          kukeltje

                          uhmm... no... because I was also refactoring some things in jBPM, at least trying to and it did not fully work yet because of my limited hibernate knowledge. It has a lesser priority now.

                          If you try to do things and run into issues, feel free to ask and I'll see how I can help out