JBoss Community

Re: Create new users in jBPM

created by Sachin Chandra in jBPM Development - View the full discussion

Hi ,

 

I tried with the same solution added a user group named "user"  in LoadGroups.mvel

 

as follows

 

groups = [ 'knightsTempler' : new Group( "Knights Templer" ),

           'crusaders' : new Group( "Crusaders" ),

           'HR' : new Group( "HR" ),

           'PM' : new Group( "PM" ),

           'sales' : new Group( "sales" ),

           'user' : new Group( "user" )

         ];

 

return groups;

 

 

 

Also added  the following in LoadUsers.mvel

 

 

users = [ 'darth'  : new User('Darth Vader'), 

          'bobba'  : new User( 'Bobba Fet'),     'jabba'      : new User('Jabba Hutt'),

          'dalai'  : new User('Dalai Lama'),     'christoper' : new User('Christoper Columbus'),

          'stuart' : new User('Stuart Little'),  'jane'       : new User('Jane Austin'),

          'peter'  : new User('Peter Parker'),   'steve'      : new User('Steve Rogers'),

          'sly'    : new User('Sly Stalone'),    'liz'        : new User('Elizabeth Windsor'),

          'bruce'  : new User('Bruce Wayne' ),   'tony'       : new User('Tony Stark'),

          'luke'   : new User('Luke Cage'),      'admin'      : new User('Administrator'),

          'krisv'  : new User('krisv'),          'john'       : new User('john'),

          'mary'   : new User('mary'),           'sales'      : new User('sales-rep'),

          'sachin' : new User('sachin'),         'sachin1'    : new User('sachin1')

        ];      

 

return users;

 

I added two users sachin and sachin1 but after restarting the server i was not able to login with the user sachin. I had added the same user in user.properties

 

admin=admin

krisv=krisv

john=john

mary=mary

sales-rep=sales-rep

sachin=sachin

sachin1=sachin1

 

 

and also done the changes in roles.properties

 

admin=admin,manager,user

krisv=admin,manager,user

john=admin,manager,user,PM

mary=admin,manager,user,HR

sales-rep=admin,manager,user,sales

sachin=user

sachin1=user

 

 

Need some help.

 

Regards

Sachin

Reply to this message by going to Community

Start a new discussion in jBPM Development at Community