12 Replies Latest reply on Apr 26, 2006 7:46 AM by nirmalonline

    problem running my process

    achilloman_jbpm

      hi,
      using the getting started, and after that i've deployed my process, when i run it i can't log with the users i have defined in my process. there r still "cookie monster, ernie,.."
      what do i hav to do to log on in the first page "login.jsp" with my users???

        • 1. Re: problem running my process
          kukeltje

          uuhhhmmm... make sure jBPM, including the database, is correctly configured and just select one in the dropdown list (assuming you are using 3.0/3.1)

          Ronald

          • 2. Re: problem running my process
            achilloman_jbpm

            hi,
            in the login interface i have in th Start New Process Execution my process ("consultation") but there is no "create new process" link[img][/img]

            • 3. Re: problem running my process
              kukeltje

              Does your process have a task in the start node?

              It should have for it to work from the webapp. (this is mentioned in several places)

              • 4. Re: problem running my process
                achilloman_jbpm

                yes it has a task..

                • 5. Re: problem running my process
                  kukeltje

                  then I have no idea. Can you post your process definition? Please include it in a square bracketed code tag

                  • 6. Re: problem running my process
                    achilloman_jbpm

                    i wonder why the users i defined in my process don't show up in the login list?

                    • 7. Re: problem running my process
                      achilloman_jbpm

                       

                      <?xml version="1.0" encoding="UTF-8"?>
                      
                      <process-definition
                       xmlns="urn:jbpm.org:jpdl-3.1" name="consultation">
                       <swimlane name="souscripteur">
                       <assignment expression="user(souscripteur)"></assignment>
                       </swimlane>
                       <swimlane name="intermediaire">
                       <assignment expression="user(intermediaire)"></assignment>
                       </swimlane>
                      
                       <swimlane name="Responsable VR">
                       <assignment expression="user(ResponsableVR)"></assignment>
                       </swimlane>
                       <start-state name="Nouvelle consultation">
                       <task name="demande de consultation" swimlane="intermediaire">
                       <controller>
                       <variable name="num_consultation" access="read,write,required"></variable>
                       <variable name="date_dmde_sousc" access="read,write,required"></variable>
                       <variable name="garantie" access="read,write,required"></variable>
                       <variable name="assure" access="read,write,required"></variable>
                       <variable name="date_transmission" access="read,write,required"></variable>
                       <variable name="type_assure" access="read,write,required"></variable>
                       <variable name="ville_assure" access="read,write,required"></variable>
                       <variable name="activite_assure" access="read,write,required"></variable>
                       <variable name="capital_assure" access="read,write,required"></variable>
                       <variable name="taux_accepe" access="read,write,required"></variable>
                       <variable name="commission_interm" access="read,write,required"></variable>
                       <variable name="commentaires_interm"></variable>
                       </controller>
                       </task>
                       <transition name="" to="Traitement de la consultation"></transition>
                       </start-state>
                       <task-node name="Traitement de la consultation">
                       <task name="traiter la consultation" swimlane="souscripteur">
                       <controller>
                       <variable name="num_consultation" access="read"></variable>
                       <variable name="date_dmde_sousc" access="read"></variable>
                       <variable name="garantie" access="read"></variable>
                       <variable name="assure" access="read"></variable>
                       <variable name="date_transmission" access="read"></variable>
                       <variable name="type_assure" access="read"></variable>
                       <variable name="ville_assure" access="read"></variable>
                       <variable name="activite_assure" access="read"></variable>
                       <variable name="capital_assure" access="read"></variable>
                       <variable name="taux_accepe" access="read"></variable>
                       <variable name="commission_interm" access="read"></variable>
                       <variable name="commentaires_interm" access="read"></variable>
                       <variable name="visite_risque" access="read,write,required"></variable>
                       <variable name="commentaires_sousc" access="read,write"></variable>
                       <variable name="rejet" access="read,write,required"></variable>
                       </controller>
                       </task>
                       <event type="node-leave">
                       <action name="traiter la consultation" class="actions.TraiterConsultation"></action>
                       </event>
                       <transition name="si vr" to="Commander VR"></transition>
                       <transition name="sinon" to="Résultats de l'offre"></transition>
                       <transition name="si rejet" to="Rejet"></transition>
                       </task-node>
                       <task-node name="Commander VR">
                       <task name="Commander VR" swimlane="souscripteur">
                       <controller>
                       <variable name="num_consultation" access="read"></variable>
                       <variable name="date_dmde_sousc" access="read"></variable>
                       <variable name="garantie" access="read"></variable>
                       <variable name="assure" access="read"></variable>
                       <variable name="date_transmission" access="read"></variable>
                       <variable name="commentaires_interm" access="read"></variable>
                       <variable name="commentaires_sousc" access="read"></variable>
                       <variable name="date_cmde_vr" access="read,write,required"></variable>
                       </controller>
                       </task>
                       <transition name="" to="Fixer Date VR">
                      
                       </transition>
                       </task-node>
                       <task-node name="Résultats de l'offre">
                       <task name="Répondre à l'offre" swimlane="souscripteur">
                       <controller>
                       <variable name="num_consultation" access="read"></variable>
                       <variable name="date_dmde_sousc" access="read"></variable>
                       <variable name="garantie" access="read"></variable>
                       <variable name="assure" access="read"></variable>
                       <variable name="date_transmission" access="read"></variable>
                       <variable name="type_assure" access="read"></variable>
                       <variable name="ville_assure" access="read"></variable>
                       <variable name="activite_assure" access="read"></variable>
                       <variable name="capital_assure" access="read"></variable>
                       <variable name="taux_accepe"></variable>
                       <variable name="commission_interm"></variable>
                       <variable name="commentaires_interm" access="read"></variable>
                       <variable name="commentaires_sousc" access="read"></variable>
                       <variable name="VR" access="read,write,required"></variable>
                       <variable name="date_cmde_vr" access="read"></variable>
                       <variable name="date_vr" access="read"></variable>
                       <variable name="expert" access="read"></variable>
                       <variable name="date_vr_eff" access="read"></variable>
                       <variable name="rapport_expertise" access="read"></variable>
                       <variable name="date_transmission_offre_interm" access="read,write,required"></variable>
                       </controller>
                       </task>
                       <event type="node-enter">
                       <action name="Répondre à l'offre" class="actions.ReponseOffre"></action>
                       </event>
                       <transition name="répondre à l'intermédiaire" to="Réponse finale de l'intermédiaire"></transition>
                       </task-node>
                       <task-node name="Fixer Date VR">
                       <task name="Fixer Date VR" swimlane="Responsable VR">
                       <controller>
                       <variable name="num_consultation" access="read"></variable>
                       <variable name="date_dmde_sousc" access="read"></variable>
                       <variable name="garantie" access="read"></variable>
                       <variable name="assure" access="read"></variable>
                       <variable name="date_transmission" access="read"></variable>
                       <variable name="commentaires_interm" access="read"></variable>
                       <variable name="commentaires_sousc" access="read"></variable>
                       <variable name="date_cmde_vr" access="read"></variable>
                       <variable name="date_vr" access="read,write,required"></variable>
                       <variable name="expert" access="read,write,required"></variable>
                       </controller>
                       </task>
                       <transition name="" to="Conclusions VR">
                       <action name="informer le souscripteur" class="actions.InformerSousc">
                       <swimlaneName>Responsable VR</swimlaneName>
                       <msg>${Responsable VR} a fixé la date de la VR pour le ${date_vr}</msg>
                       </action>
                       </transition>
                       </task-node>
                       <task-node name="Conclusions VR">
                       <task name="Conclusions VR" swimlane="Responsable VR">
                       <controller>
                       <variable name="num_consultation" access="read"></variable>
                       <variable name="date_dmde_sousc" access="read"></variable>
                       <variable name="garantie" access="read"></variable>
                       <variable name="assure" access="read"></variable>
                       <variable name="date_transmission" access="read"></variable>
                       <variable name="commentaires_interm" access="read"></variable>
                       <variable name="commentaires_sousc" access="read"></variable>
                       <variable name="date_cmde_vr" access="read"></variable>
                       <variable name="date_vr" access="read"></variable>
                       <variable name="expert" access="read"></variable>
                       <variable name="date_vr_eff" access="read,write,required"></variable>
                       <variable name="rapport_expertise" access="read,write,required"></variable>
                       </controller>
                       </task>
                       <transition name="" to="Résultats de l'offre"></transition>
                       </task-node>
                       <task-node name="Réponse finale de l'intermédiaire">
                       <task name="Réponse de l'intermédiaire" swimlane="intermediaire">
                       <controller>
                       <variable name="num_consultation" access="read"></variable>
                       <variable name="num_consultation" access="read"></variable>
                       <variable name="date_dmde_sousc" access="read"></variable>
                       <variable name="garantie" access="read"></variable>
                       <variable name="assure" access="read"></variable>
                       <variable name="date_transmission" access="read"></variable>
                       <variable name="type_assure" access="read"></variable>
                       <variable name="ville_assure" access="read"></variable>
                       <variable name="activite_assure" access="read"></variable>
                       <variable name="capital_assure" access="read"></variable>
                       <variable name="taux_accepe"></variable>
                       <variable name="commission_interm"></variable>
                       <variable name="commentaires_interm" access="read"></variable>
                       <variable name="commentaires_sousc" access="read"></variable>
                       <variable name="VR" access="read"></variable>
                       <variable name="date_cmde_vr" access="read"></variable>
                       <variable name="date_vr" access="read"></variable>
                       <variable name="expert" access="read"></variable>
                       <variable name="date_vr_eff" access="read"></variable>
                       <variable name="rapport_expertise" access="read"></variable>
                       <variable name="date_transmission_offre_interm" access="read"></variable>
                       <variable name="reponse_finale" access="read,write,required"></variable>
                       </controller>
                       </task>
                       <event type="node-leave">
                       <action name="Réponse finale" class="actions.ReponseFinale">
                       <swimlaneName>intermediaire</swimlaneName>
                       <msg>${intermediaire} a répondu à l'offre par ${reponse_finale}</msg>
                       </action>
                       </event>
                       <transition name="Demande d'aménagements tarifaires" to="Résultats Aménagements tarifaires"></transition>
                       <transition name="rejet" to="Offre rejetée par l'intermédiaire"></transition>
                       <transition name="Ok" to="Elaborer contrat"></transition>
                       </task-node>
                       <task-node name="Résultats Aménagements tarifaires">
                       <task name="Résultats d'aménagements" swimlane="intermediaire">
                       <controller>
                       <variable name="date_dmde_sousc" access="read"></variable>
                       <variable name="garantie" access="read"></variable>
                       <variable name="assure" access="read"></variable>
                       <variable name="date_transmission" access="read"></variable>
                       <variable name="commentaires_interm" access="read"></variable>
                       <variable name="commentaires_sousc" access="read"></variable>
                       <variable name="VR" access="read,write,required"></variable>
                       <variable name="date_cmde_vr" access="read"></variable>
                       <variable name="date_vr" access="read"></variable>
                       <variable name="expert" access="read"></variable>
                       <variable name="date_vr_eff" access="read"></variable>
                       <variable name="rapport_expertise" access="read"></variable>
                       <variable name="date_transmission_offre_interm" access="read"></variable>
                       <variable name="reponse_finale" access="read"></variable>
                       <variable name="date_demde_amg" access="read,write,required"></variable>
                       </controller>
                       </task>
                       <task name="Traiter l'offre d'aménagements" swimlane="souscripteur">
                       <controller>
                       <variable name="reponse_amenag" access="read,write,required"></variable>
                       </controller>
                       </task>
                       <event type="node-leave">
                       <action name="Reponse_amenag" class="actions.ReponseAmenag">
                       <swimlaneName>souscripteur</swimlaneName>
                       <msg>${souscripteur} a répondu à l'offre d'aménagements par ${reponse_amenag}</msg>
                       </action>
                       </event>
                       <transition name="rejet" to="Offre rejetée par la cie"></transition>
                       <transition name="Ok" to="Elaborer contrat"></transition>
                       </task-node>
                       <task-node name="Elaborer contrat">
                       <event type="node-leave">
                       <action name="Informer l'intermédiaire"></action>
                       </event>
                       <transition name="" to="Fin de la Consultation"></transition>
                       </task-node>
                       <end-state name="Offre rejetée par l'intermédiaire"></end-state>
                       <end-state name="Offre rejetée par la cie"></end-state>
                       <end-state name="Fin de la Consultation"></end-state>
                       <end-state name="Rejet"></end-state>
                      
                      </process-definition>


                      • 8. Re: problem running my process
                        kukeltje

                        I do not see anything strange in the processdefinition.

                        Regarding the users that do not show up, you should add them to the source in the identity module or write your own identity module. They do not show up automagically if you define them in the pd

                        • 9. Re: problem running my process
                          achilloman_jbpm

                          sorry for bothering u with all this questions,
                          the first problem is resolved, i can now execute my process.
                          but the problem of users that don't show up, i couldn't resolve it.
                          can u explain me more how can i add my users to the identity module..

                          • 10. Re: problem running my process
                            kukeltje

                            if you look at the documentation and the source a little, you will see that there are some scripts to insert these users into the database. You can either add your own users to these scripts, or manipulate the database directly.

                            • 11. Re: problem running my process
                              kbarfield

                              jBPM has the concepts of users, groups, and memberships. These are stored in the database by default. You can change this to use LDAP or some other 3rd party idenity system.

                              For the simple case of getting new users into jBPM, you simply need to add rows to the jbpm_id_user table. Here are a couple of links to help:

                              jBPM identity documentation: http://docs.jboss.com/jbpm/v3/userguide/taskmanagement.html#theidentitycomponent

                              jBPM Data Model: http://wiki.jboss.org/wiki/Wiki.jsp?page=Jbpm31DataModel

                              Accessing the jBPM default database (Hypersonic):
                              http://docs.jboss.com/jbpm/v3/userguide/thejbpmdatabase.html#d0e2368

                              I am adding some of these questions to the getting started wiki as well.

                              Kevin

                              • 12. Re: problem running my process
                                nirmalonline

                                regarding users try this

                                1.open http:\\localhost:8080\jmx-console

                                2.in that under jboss select the first link that is databse=localdb bla ..bla...

                                3.in that invoke void startDataBaseManager()

                                4.It will start a hsql manager

                                5.In that the table jbpm_id_user corresponds to the users in the drop down list box.u can manually add users there

                                Hope it answers ur question