[jboss-dev-forums] [jBPM Development] - Re: Create new users in jBPM

Sachin Chandra do-not-reply at jboss.com
Thu Sep 20 03:25:02 EDT 2012


Sachin Chandra [https://community.jboss.org/people/chandrasachin16] created the discussion

"Re: Create new users in jBPM"

To view the discussion, visit: https://community.jboss.org/message/760517#760517

--------------------------------------------------------------
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
[https://community.jboss.org/message/760517#760517]

Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120920/fc1cb782/attachment.html 


More information about the jboss-dev-forums mailing list