-
1. Re: How to create roles in drools to author particular rules only.
abhijithumbe Jun 30, 2015 12:54 AM (in response to harish5024676)Hi,
we can configure roles for 'organization unit' / 'repository' / 'project' using kie-config-cli tool. Go through link for more details Drools Documentation
-
2. Re: How to create roles in drools to author particular rules only.
gberrocal Sep 18, 2015 8:02 AM (in response to abhijithumbe)Hi,
I have followed the steps in that documentation:
Steps would be like the followings:
A) Login to business-central as admin
B) Create 'repo1' and 'repo2' in business-central (Organization Unit is 'example')
C) Configure roles for repositories using kie-config-cli.sh
********************************************************
************* Welcome to Kie config CLI ****************
********************************************************
.............
>>Please enter command (type help to see available commands):
add-role-repo
>>Repository alias:repo1
>>Security roles (comma separated list):role1
Result:
Role role1 added successfully to repository repo1
>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>Please enter command (type help to see available commands):
add-role-repo
>>Repository alias:repo2
>>Security roles (comma separated list):role2
Result:
Role role2 added successfully to repository repo2
>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>Please enter command (type help to see available commands):
push-changes
Result:
Pushed successfully
>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>Please enter command (type help to see available commands):
list-repo
Result:
Currently available repositories:
Repository repository1
scheme: git
uri: git://repository1
environment: {username=gonzalo, scheme=git, security:roles=[], origin=s
sh://gonzalo@localhost:8001/repository1, password=****}
roles: []
Repository repo1
scheme: git
uri: git://repo1
environment: {username=gonzalo, managed=false, scheme=git, security:rol
es=[role1], origin=ssh://gonzalo@localhost:8001/repo1, password=****}
roles: [role1]
Repository repo2
scheme: git
uri: git://repo2
environment: {username=gonzalo, managed=false, scheme=git, security:rol
es=[role2], origin=ssh://gonzalo@localhost:8001/repo2, password=****}
roles: [role2]
>>>>>>>>>>>>>>>>>>>>>>>>>>>
>>Please enter command (type help to see available commands):
D) Add users in EAP
add-user.bat‐a ‐‐user user1 ‐‐password password1! ‐‐role analyst,role1
add‐user.bat ‐a ‐‐user user2 ‐‐password password1! ‐‐role analyst,role2
E) reboot BRMS
F) Login to business-central as user1
G) Go to [Authoring]->[Project Authoring]. Confirm that you cannot access 'repo2'.
BIG PROBLEM: You cannot access 'repo1' neither. No user can.
Any Help?
Thank you in advance,
Gonzalo
-
3. Re: How to create roles in drools to author particular rules only.
harish5024676 Oct 19, 2015 3:28 AM (in response to harish5024676)Thanks for your Solution , Its helpful