6 Replies Latest reply on Sep 26, 2014 7:34 AM by kannan123

    users and roles creation

    kannan123

      Hi community

       

      I have a requirement that i wanna to create the users and user roles in the jBPM from my web aplication. I appended the users and roles in the user.properties and roles.properties in the jbpm-installer\jboss-as-7.1.1.Final\standalone\configuration with my custom users. I can login to the jbpm console with the newly created user. I can assign the tasks to the particular user. But my problem is i cannot assign the task to the created group. I used the newly created role in the place of user task's Group Id but the task not assigned to that group. I restarted the server and the war files redeployed. Only after restarting the task assigned to the user. But i want to assign the task without restarting. Is it possible???

       

      Thanks and Regards

      Kannan

        • 1. Re: users and roles creation
          swiderski.maciej

          in such scenario I would rather suggest to change the user repository implementation to your custom one e.g. data base. That way you can reconfigure jboss to use your data base tables for authentication and authorization and then update these tables from your code whenever is needed. That should allow you to achieve described behavior without a need to restart the server.

           

          HTH

          • 2. Re: users and roles creation
            kannan123

            Hi

             

            Thank you for the replay. Can you suggest any tutorial or forum that can help me to use custom database for this scenario??

             

            Regards

            Kannan

            • 3. Re: users and roles creation
              swiderski.maciej

              check jboss application server documentation and look for data base login module or google it.

               

              HTH

              • 4. Re: users and roles creation
                kannan123

                Hi

                 

                i have imported the tables to MySQL database. But actually get confused where to update the new users and roles.

                 

                Regards

                Kannan

                • 5. Re: users and roles creation
                  swiderski.maciej

                  if you use data base for it then the only place you can update it is in the data base itself. Either directly or via some administration tooling.

                   

                  HTH

                  • 6. Re: users and roles creation
                    kannan123

                    Hi

                     

                    I am updating my new users and roles in the organizationalentity table and in the user.properties and roles.properties in the jbpm-installer\jboss-as-7.1.1.Final\standalone\configuration. I cannot find the task assigned to the new user or role.This time also i am in the situation where i have started. Can u help me with what special is actually happening if we restart the server. Why we can only login to the jbpm console if we simply append the users and roles in the user.properties, roles.properties files without restarting but cannot assign the task??

                     

                    Regards

                    Kannan