[rules-users] KIE Scanner - 6.1.0.Final - not Loading LATEST kJAR

2015-05-06 Thread Zahid Ahmed
Hi,

I am working on Drools 6.1.0.Final.

And my LATEST assets are not getting loaded using KIE-SCANNER. We have created 
a kJar 1.0 with 5 rules in KIE-Workbench 6.1.0.Final. We start our application 
server with KContainer having ReleaseId(gtoup, Artifact , LATEST). Rules are 
firing. Now add another rule in workbench increment the kJar version 1.1 and 
perform build and deploy. After waiting for 5mins fire the rules in 
application, LATEST Version IS NOT downloaded in m2 local repo and old rules 
are getting fired. I even tries with setting maven's update policy as 
interval:1, but in vain.

KIE Scanner is only getting triggered if I manually change the latest version 
and last updated in metadata.xml in local m2 repo. In this case KIE Scanner 
loads the new rules.

Kindly let us know what needs to be done.

Similar Issue https://issues.jboss.org/browse/DROOLS-477



Regards,

Zahid




___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] BRMS 6 Access Permissions Configuration - Not Restricting Custom Roles

2014-08-23 Thread Zahid Ahmed
HI Alex,

The issue is still not resolved. And my real problem is how to associate my 
custom roles to permissions (Kindly refer to below example and attachment in 
last reply.)

I have created custom roles and assigned those roles to user in user manament 
db. Then I assigned the new custom roles to the Organizational Units (OUs), one 
OU per project.

Kindly see attachment for clarification.

And I created following custom roles
*Project A and OU A*

*Custom Role: Permission*
cs_A_admin  Can Create, Can deploy, Can delete, Can view
cs_A_developer Can Create, Can delete, Can View, Can Update
cs_A_analystCan Create, Can View, Can Update
cs_A_business  Can View

*Project B and OU B*
*Custom Role: Permission*
cs_B_admin  Can Create, Can deploy, Can delete, Can view
cs_B_developer Can Create, Can delete, Can View, Can Update
cs_B_analystCan Create, Can View, Can Update
cs_B_business  Can View


My question is where to map role and permissions ? where to do these 
configurations. CLI tool help does not say anything about this.

*Custom Role: Permission*
cs_admin  Can Create, Can deploy, Can delete, Can view
cs_developer Can Create, Can delete, Can View, Can Update
cs_analystCan Create, Can View, Can Update
cs_business  Can View

Authorization_Issue_2.png
http://drools.46999.n3.nabble.com/file/n4030691/Authorization_Issue_2.png  



--
View this message in context: 
http://drools.46999.n3.nabble.com/BRMS-6-Access-Permissions-Configuration-Not-Restricting-Custom-Roles-tp4030679p4030691.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Drools Performance Analysis Required

2014-07-24 Thread Zahid Ahmed
Hi,

I need to know the Drools capacity to execute the rules.

I need to know how many rules it can execute at a time and with how many facts.

I need to know the memory stats.

We are planning for a central rules execution server with executing around 
10,000 rules per request and requests per minute can be ~300.

Has anyone done the benchmarking. Or is there any scalable solution that can be 
implemented.


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Repositories in Kie-Drools

2014-07-08 Thread Zahid Ahmed
Hi Mark,

I am facing a repository sync issue in WB configured with ZooKeeper and Helix. 
But the syncing is not happening. Kindly view the following question posted on 
drools forum.

Drools Workbench - VFS Repository Clustering - Workbench Assets Not synched

Regards, 
Zahid Ahmed




-Original Message-
From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Mark Proctor
Sent: 07 July 2014 17:08
To: Rules Users List
Subject: Re: [rules-users] Repositories in Kie-Drools

For now you'll need to setup some manual sync between the two.

Mar
On 7 Jul 2014, at 05:51, Sumit Dhaniya sumitdhan...@gmail.com wrote:

 I want to use a repository hosted on cloud as repository in my kie ide.
 I tried creating a new repo cloning an existing repo but after cloning 
 kie ide creates a new repo path at localhost and doesn't uses the 
 cloud repo path.
 Can I achieve this or I'll have to find a way to sync two repositories 
 one linked to kie and another to cloud repo.
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Repositories-in-Kie-Drools-tp4030254
 .html Sent from the Drools: User forum mailing list archive at 
 Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Drools 6.0 | Workbench Authentication | JAAS with DB

2014-07-03 Thread Zahid Ahmed
).principals=org.jboss.security.SimplePrincipal@25145532(iit)org.jboss.security.SimpleGroup@12885648(CallerPrincip
al(members:iit))org.jboss.security.SimpleGroup@12885648(admingrp(members:admin))org.jboss.security.SimpleGroup@12885648(usergrp(members:user))org.jboss.security.SimpleGroup@12885648(analystgrp(members:analyst))org.jboss.security.SimpleGroup@12885648(developergrp(members:developer))org.jboss.security.SimpleGroup@12
885648(managergrp(members:manager))
13:55:22,538 TRACE 
[org.jboss.security.authentication.JBossCachedAuthenticationManager] 
(http--127.0.0.1-8080-2) updateCache, 
inputSubject=Subject(11883582).principals=org.jboss.security.SimplePrincipal@25145532(iit)org.jboss.security.SimpleGroup@12885648(CallerPrincipal(members:iit))org.jboss.security.SimpleGroup
@12885648(admingrp(members:admin))org.jboss.security.SimpleGroup@12885648(usergrp(members:user))org.jboss.security.SimpleGroup@12885648(analystgrp(members:analyst))org.jboss.security.SimpleGroup@12885648(developergrp(members:developer))org.jboss.security.SimpleGroup@12885648(managergrp(members:manager)),
 cacheSubj
ect=Subject(11399784).principals=org.jboss.security.SimplePrincipal@25145532(iit)org.jboss.security.SimpleGroup@12885648(CallerPrincipal(members:iit))org.jboss.security.SimpleGroup@12885648(admingrp(members:admin))org.jboss.security.SimpleGroup@12885648(usergrp(members:user))org.jboss.security.SimpleGroup@12885648
(analystgrp(members:analyst))org.jboss.security.SimpleGroup@12885648(developergrp(members:developer))org.jboss.security.SimpleGroup@12885648(managergrp(members:manager))
13:55:22,556 TRACE 
[org.jboss.security.authentication.JBossCachedAuthenticationManager] 
(http--127.0.0.1-8080-2) Inserted cache info: 
org.jboss.security.authentication.JBossCachedAuthenticationManager$DomainInfo@5bd7b
13:55:22,560 TRACE 
[org.jboss.security.authentication.JBossCachedAuthenticationManager] 
(http--127.0.0.1-8080-2) End isValid, true
13:55:22,562 TRACE [org.jboss.security.SecurityRolesAssociation] 
(http--127.0.0.1-8080-2) Setting threadlocal:null
13:55:22,576 TRACE [org.jboss.security.SecurityRolesAssociation] 
(http--127.0.0.1-8080-2) Setting threadlocal:null
13:55:22,578 TRACE 
[org.jboss.security.authentication.JBossCachedAuthenticationManager] 
(http--127.0.0.1-8080-2) Flushing iit from cache
13:55:22,580 TRACE [org.jboss.security.auth.spi.DatabaseServerLoginModule] 
(http--127.0.0.1-8080-2) logout
13:55:22,841 TRACE [org.jboss.security.SecurityRolesAssociation] 
(http--127.0.0.1-8080-3) Setting threadlocal:null
13:55:22,845 TRACE [org.jboss.security.SecurityRolesAssociation] 
(http--127.0.0.1-8080-2) Setting threadlocal:null
13:55:22,845 TRACE [org.jboss.security.SecurityRolesAssociation] 
(http--127.0.0.1-8080-1) Setting threadlocal:null


Config Tool



* Welcome to Kie config CLI 



Please specify location of the parent folder of .niogit
D:\Servers\Drools-6-Deployment\Server-A-As-7\bin
Please enter command (type help to see available commands):
add-role-repo
Repository alias:netsolrepo
Security roles (comma separated list):admin,analyst,business,user,developer
Result:
Role admin added successfully to repository netsolrepo
Role analyst added successfully to repository netsolrepo
Role business added successfully to repository netsolrepo
Role user added successfully to repository netsolrepo
Role developer added successfully to repository netsolrepo


Please enter command (type help to see available commands):
add-role-org-unit
Organizational Unit name:netsol
Security roles (comma separated list):admin,analyst,business,user,developer
Result:
Role admin added successfully to Organizational Unit netsol
Role analyst added successfully to Organizational Unit netsol
Role business added successfully to Organizational Unit netsol
Role user added successfully to Organizational Unit netsol
Role developer added successfully to Organizational Unit netsol


Regards,

Zahid Ahmed
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] How to change the Header color and Logo in Guvnor 5.3.3.Final?

2014-07-02 Thread Zahid Ahmed
In guvnor-webapp project

Regards,
Zahid Ahmed
 Senior Software Engineer | Emirates Group IT
 P.O. Box 686 | Dubai, United Arab Emirates
 T +971 4 245 3153 | M +971 55 1183602

[http://cdn.ek.aero/email/e_signatures/ekg2013.jpg]




From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of LaKhI ReDdY!!!
Sent: 02 July 2014 10:35
To: Rules Users List; stephen.mast...@me.com
Subject: Re: [rules-users] How to change the Header color and Logo in Guvnor 
5.3.3.Final?

Hi Stephen,
Thanks for your reply.

I have downloaded the guvnor-5.3.3.Final.zip file for source code ,using maven 
i have compiled ,build and deployed.

In this zip file i got the following projects.
 guvnor-bulk-importer
guvnor-repository
guvnor-webapp
guvnor-distributions
etc...

In this source code , where and all i need to make the changes for logo and 
header colors?

Regards,
Lakhi Reddy

On Tue, Jul 1, 2014 at 4:33 PM, Stephen Masters 
stephen.mast...@me.commailto:stephen.mast...@me.com wrote:
If you explode the WAR, you should find an index.jsp and CSS. Modify them to 
your heart’s content.


On 1 Jul 2014, at 11:26, LaKhI ReDdY!!! 
reddy.laks...@gmail.commailto:reddy.laks...@gmail.com wrote:

 Hi,

 I need to change the Header color(top header) and Logo in Guvnor 5.3.3.Final.
 Any points on where and all i need to do changes?

 Lakhi Reddy
 ___
 rules-users mailing list
 rules-users@lists.jboss.orgmailto:rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
rules-users@lists.jboss.orgmailto:rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] BRMS Build Deploy

2014-06-25 Thread Zahid Ahmed
Hi,

I have a related question. When I do build and deploy, WB generates maven 
artifacts in a local repository (a directory defined as localRepository in 
settings.xml).

Problem
I am expecting WB to deploy it to the remote repository which it is not doing. 
I have done following configuration in maven setting.xml and project’s pom.xml.

Kindly let me know if I am missing any configuration.

Pom.xml
?xml version=1.0 encoding=UTF-8?
project xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd;
xmlns=http://maven.apache.org/POM/4.0.0
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 modelVersion4.0.0/modelVersion

  groupIdemiGrp/groupId
  artifactIdemiProj/artifactId
  version1.0/version

  nameemiProj/name

distributionManagement
repository
iddroolssix/id
urlhttp://localhost:6900/archiva/repository/droolssix/url
/repository
/distributionManagement

repositories
repository
iddroolssix/id
namedroolssix/name
urlhttp://localhost:6900/archiva/repository/droolssix//url
/repository
/repositories
/project



Settngs.xml
settings xmlns=http://maven.apache.org/SETTINGS/1.1.0; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  xsi:schemaLocation=http://maven.apache.org/SETTINGS/1.1.0 
http://maven.apache.org/xsd/settings-1.1.0.xsd;

localRepositoryd:\localMaven\Repo/localRepository

servers
server
iddroolssix/id
usernameadmin/username
password$admin123$/password
/server
/servers
/settings



Regards,
Zahid

From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Michael Anstis
Sent: 25 June 2014 18:46
To: Rules Users List
Subject: Re: [rules-users] BRMS Build  Deploy

OK, so I didn't read your email properly :(

There is a REST API to build and deploy programmatically; see the User Guide 
for details: 
http://docs.jboss.org/drools/release/6.0.1.Final/drools-docs/html/wb.WorkbenchIntegration.html#drools.WorkbenchRemoteAPI

On 25 June 2014 15:07, Michael Anstis 
michael.ans...@gmail.commailto:michael.ans...@gmail.com wrote:
Build+Deploy builds everything in your project (rules, processes etc) into a 
KJAR and deploys them to the workbench's maven repository.

If you're running kie-wb then there is also the notion of deploying a KJAR to 
the jBPM runtime.. but I don't know the exact mechanism (I've BCC'ed some 
colleagues who can help you).

On 25 June 2014 14:05, Shrinath Managuli 
shrinath.manag...@aspiresys.commailto:shrinath.manag...@aspiresys.com wrote:
Hi Drools,

Is it possible to automate the Build  Deploy processes in BRMS?

[cid:image001.png@01CF910E.AA2B0730]

Thanks,
Shrinath
[Aspire Systems]

This e-mail message and any attachments are for the sole use of the intended 
recipient(s) and may contain proprietary, confidential, trade secret or 
privileged information. Any unauthorized review, use, disclosure or 
distribution is prohibited and may be a violation of law. If you are not the 
intended recipient, please contact the sender by reply e-mail and destroy all 
copies of the original message.
[Aspire Systems]

This e-mail message and any attachments are for the sole use of the intended 
recipient(s) and may contain proprietary, confidential, trade secret or 
privileged information. Any unauthorized review, use, disclosure or 
distribution is prohibited and may be a violation of law. If you are not the 
intended recipient, please contact the sender by reply e-mail and destroy all 
copies of the original message.

___
rules-users mailing list
rules-users@lists.jboss.orgmailto:rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Workbench not Working in Resilient Environment

2014-06-19 Thread Zahid Ahmed
Hi,

I am trying to setup Drools6 Workbench ion a resilient mode but am unable to 
sync the assets amongst the resilient members. Kindly have a look at the 
detailed question posted earlier.

Subject in Drools Forum Drools Workbench | VFS Clustering Error | NoNode for 
jbpm-cluster

Regards,
Zahid Ahmed



___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Drools6 - High Availability Environment not Working

2014-06-15 Thread Zahid Ahmed
Hi,

I am deploying Drools6 in our organization and the requirement is, Drools6 
Workbench and rules engine should be in High Available environment. I am 
following the Drools developer guide for deployment but the assets among two 
workbench servers are not synching.

Can anyone guide me what could be wrong. I am simply following the steps 
provided in the guide. Also installed Zookeeper, Helix as per the guide.

Regards,
Zahid Ahmed
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Drools6 VFS Clustering what to mention in VFS-REPO

2014-06-11 Thread Zahid Ahmed
Hi,

I need to know, what the vfs-repo in below command refers to ? Is it referring 
to .niogit

helix-admin.bat --zkSvr localhost:2199 --addResource kie-cluster vfs-repo 1 
LeaderStandby AUTO_REBALANCE


regards,
Zahid
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Drools Workbench - VFS Repository Clustering - Workbench Assets Not synched

2014-06-11 Thread Zahid Ahmed
Hi,

Getting following error in console of server B when making any change in 
Workbench server A

14:44:19,780 ERROR [org.apache.helix.messaging.handling.HelixTask] 
(pool-18-thread-21) Exception while executing a message. 
java.lang.NullPointerException msgId: 939154ed-eedb-493f-a803-83883764276a 
type: USER_DEFINE_MSG: java.lang.NullPointerException
at 
org.uberfire.metadata.io.IOServiceIndexedImpl.setupWatchService(IOServiceIndexedImpl.java:168)
 [uberfire-metadata-commons-io-0.3.1.Final.jar:0.3.1.Final]
at 
org.uberfire.metadata.io.IOServiceIndexedImpl.getFileSystem(IOServiceIndexedImpl.java:126)
 [uberfire-metadata-commons-io-0.3.1.Final.jar:0.3.1.Final]
at 
org.uberfire.io.impl.cluster.IOServiceClusterImpl$SyncFileSystemMessageHandler.handleMessage(IOServiceClusterImpl.java:919)
 [uberfire-io-0.3.1.Final.jar:0.3.1.Final]
at 
org.uberfire.io.impl.cluster.helix.ClusterServiceHelix$MessageHandlerResolverWrapper$1$1.handleMessage(ClusterServiceHelix.java:289)
 [uberfire-io-0.3.1.Final.jar:0.3.1.Final]
at 
org.apache.helix.messaging.handling.HelixTask.call(HelixTask.java:93) 
[helix-core-0.6.2-incubating.jar:0.6.2-incubating]
at 
org.apache.helix.messaging.handling.HelixTask.call(HelixTask.java:50) 
[helix-core-0.6.2-incubating.jar:0.6.2-incubating]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) 
[rt.jar:1.7.0_25]
at java.util.concurrent.FutureTask.run(FutureTask.java:166) 
[rt.jar:1.7.0_25]
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
[rt.jar:1.7.0_25]
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
[rt.jar:1.7.0_25]
at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]

14:44:20,506 ERROR [org.apache.helix.messaging.handling.HelixTask] 
(pool-18-thread-21) Message execution failed. msgId: 
939154ed-eedb-493f-a803-83883764276a, errorMsg: null
14:44:20,985 INFO  [org.apache.helix.messaging.handling.HelixTaskExecutor] 
(pool-18-thread-21) message finished: 939154ed-eedb-493f-a803-83883764276a, 
took 1260
14:44:20,995 INFO  [org.apache.helix.manager.zk.CallbackHandler] 
(ZkClient-EventThread-117-localhost:2199) 117 START:INVOKE 
/brms-cluster/INSTANCES/nodeTwo_22/MESSAGES 
listener:org.apache.helix.messaging.handling.HelixTaskExecutor

Regards,
Zahid Ahmed
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Workbench and GIT Repo High Availability

2014-06-11 Thread Zahid Ahmed
Hi Alexandre,

Thanks for your response. I am facing an issue in clustering, following the 
Drools guide. That I have posted in the following thread. Kindly have a look at 
it and let me know if I am doing/missing something.

http://drools.46999.n3.nabble.com/rules-users-Drools-Workbench-VFS-Repository-Clustering-Workbench-Assets-Not-synched-td4029960.html
 

Regards, 
Zahid Ahmed

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools Workbench - Cloning a local Repo Gives “Invalid remote: origin”

2014-06-10 Thread Zahid Ahmed

@Michael

Due to this error it’s not cloning it. Below is the architecture in which I am 
deploying the Workbench. Two Workbench instances, one central GIT repo and One 
central Maven Repo (Details as below)

My architecture for Drools deployment is we will deploy two Drools Workbench 
instances. We will create one central GIT repository, REPO-A.git, which will be 
cloned by both the instances, REPO-A-Cloned-1, REPO-A-Cloned-2. If any file is 
committed in instance A, REPO-A-Cloned-1, should also appear in instance B, 
REPO-A-Cloned-2, and that asset should also appear in central repo, REPO-A.

Regards,
Zahid







From: 
rules-users-boun...@lists.jboss.orgmailto:rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Michael Anstis
Sent: 08 June 2014 14:36
To: Rules Users List
Subject: Re: [rules-users] Drools Workbench - Cloning a local Repo Gives 
“Invalid remote: origin”


You won't need a user id or password.

The remote origin error message is thrown by the underlying jgit library we use.

Any repository that is cloned is considered a remote in git terms. The fact 
that it's on your local machine makes no difference in git terms.

Sent on the move
On 8 Jun 2014 11:07, Zahid Ahmed 
zahid.ah...@emirates.commailto:zahid.ah...@emirates.com wrote:
Hi,

I am trying to clone a repo in Drools WorkBench and getting the following error,

Can't clone repository. java.lang.RuntimeException:Invalid remote: origin

The repository which I am cloning, resides in my local machine. 
D:/Servers/Drools-6-Deployment/repo/repoA.git

Following are the inputs I am providing to WorkBench clone Wizard,

Repository Name   = repoCloned Organizational Unit = inTech
GIT URL  = 
file:///D:/Servers/Drools-6-Deployment/repo/repoA.gitfile:///D:\Servers\Drools-6-Deployment\repo\repoA.git
User Name   =  (Currently I am giving my github account 
cred. What to give in user name?)
Password  =  (Currently I am giving my github account 
cred. What to give as password?)

Question 1
Why am I getting remote origin error when I am cloning from a local GIT 
repository ?

Question 2
Kindly let me know what to give as User Name and Password when I am cloning 
from an existing GIT repo in my local filesystem ?



Regards,
Zahid Ahmed






___
rules-users mailing list
rules-users@lists.jboss.orgmailto:rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Drools Workbench - Cloning a local Repo Gives “Invalid remote: origin”

2014-06-08 Thread Zahid Ahmed
Hi,

I am trying to clone a repo in Drools WorkBench and getting the following error,

Can't clone repository. java.lang.RuntimeException:Invalid remote: origin

The repository which I am cloning, resides in my local machine. 
D:/Servers/Drools-6-Deployment/repo/repoA.git

Following are the inputs I am providing to WorkBench clone Wizard,

Repository Name   = repoCloned Organizational Unit = inTech
GIT URL  = 
file:///D:/Servers/Drools-6-Deployment/repo/repoA.git
User Name   =  (Currently I am giving my github account 
cred. What to give in user name?)
Password  =  (Currently I am giving my github account 
cred. What to give as password?)

Question 1
Why am I getting remote origin error when I am cloning from a local GIT 
repository ?

Question 2
Kindly let me know what to give as User Name and Password when I am cloning 
from an existing GIT repo in my local filesystem ?



Regards,
Zahid Ahmed





___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Drools Workbench - Cloning a local Repo Gives “Invalid remote: origin”

2014-06-08 Thread Zahid Ahmed
@Michael

Due to this error it’s not cloning it. Below is the architecture in which I am 
deploying the Workbench. Two Workbench instances, one central GIT repo and One 
central Maven Repo (Details as below)

My architecture for Drools deployment is we will deploy two Drools Workbench 
instances. We will create one central GIT repository, REPO-A.git, which will be 
cloned by both the instances, REPO-A-Cloned-1, REPO-A-Cloned-2. If any file is 
committed in instance A, REPO-A-Cloned-1, should also appear in instance B, 
REPO-A-Cloned-2, and that asset should also appear in central repo, REPO-A.

Regards,
Zahid







From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Michael Anstis
Sent: 08 June 2014 14:36
To: Rules Users List
Subject: Re: [rules-users] Drools Workbench - Cloning a local Repo Gives 
“Invalid remote: origin”


You won't need a user id or password.

The remote origin error message is thrown by the underlying jgit library we use.

Any repository that is cloned is considered a remote in git terms. The fact 
that it's on your local machine makes no difference in git terms.

Sent on the move
On 8 Jun 2014 11:07, Zahid Ahmed 
zahid.ah...@emirates.commailto:zahid.ah...@emirates.com wrote:
Hi,

I am trying to clone a repo in Drools WorkBench and getting the following error,

Can't clone repository. java.lang.RuntimeException:Invalid remote: origin

The repository which I am cloning, resides in my local machine. 
D:/Servers/Drools-6-Deployment/repo/repoA.git

Following are the inputs I am providing to WorkBench clone Wizard,

Repository Name   = repoCloned Organizational Unit = inTech
GIT URL  = 
file:///D:/Servers/Drools-6-Deployment/repo/repoA.gitfile:///D:\Servers\Drools-6-Deployment\repo\repoA.git
User Name   =  (Currently I am giving my github account 
cred. What to give in user name?)
Password  =  (Currently I am giving my github account 
cred. What to give as password?)

Question 1
Why am I getting remote origin error when I am cloning from a local GIT 
repository ?

Question 2
Kindly let me know what to give as User Name and Password when I am cloning 
from an existing GIT repo in my local filesystem ?



Regards,
Zahid Ahmed






___
rules-users mailing list
rules-users@lists.jboss.orgmailto:rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Drools-6 WB | Why Database is Required for Indexing When GIT repo is available

2014-06-02 Thread Zahid Ahmed
Hi,

In Drools-6 documentation its mentioned that,

Everything is now stored as a file, including meta data. The database is only 
there to provide fast indexing and search. So importing and exporting is all 
standard Git and external sites, like GitHub, can be used to exchange 
repositories. (Reference : drools-docs.pdf : 2.3. New and Noteworthy in KIE 
Workbench 6.0.0)

I want to know that why its required to store indexes in database, when we 
already have a repository with us, indexes could have been saved in the GIT 
repository itself. If we need database then now we need a license for database 
also.

After reading this I am looking for database configurations in the 
documentation but I am not able to find it in the documentation.  Where to 
configure it ? In GIT ? or in Workbench ?


Regards,
Zahid

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Workbench and GIT Repo High Availability

2014-05-13 Thread Zahid Ahmed
Hi,

We are in a process of setting up a centralized drools6 Workbench in our 
organization. This way we can keep our assets and artefacts in a central 
location. We will make this central Workbench clustered for high availability. 
I have a few queries in regard to clustering the Workbench.

Problem Statement

As workbench is using GIT, this means we need to have an enterprise level GIT 
repository where all the assets get stored for Workbench. As GIT is file-system 
based , it in turn, calls for a clustered GIT server within the organization. 
Our organization will prefer to have a private GIT repository hosted within 
office network which is highly available and wants to avoid any cost for GIT 
repository setup.



1.   I want to know how to make Workbench highly available , with GIT also 
Highly available. Is chapter# 18 VFS CLUSTERING is the answer to high available 
GIT and WORKBENCH both ? or is there any other way to make GIT repository 
highly available.

2.   Will ZooKeeper and Helix be enough to make the clustered environment 
for both Workbench with its GIT repo ?

Regards,
Zahid Ahmed





___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] JBPM : How to Listen Once ResourceChangeScanner Modifies the package after Changes

2013-12-29 Thread Zahid Ahmed
Hi,

I want to upgrade my process instances using WorkflowProcessInstanceUpgrader. 
To trigger the upgrade after any change I wanted to listen for changes 
completed by ResourceChangeScanner. To listen the completion of changes I was 
looking to configure KnowledgeBaseEventListener. I have 
drools-spring-integration in place which uses drools-spring.xsd to configure 
beans and event listeners. I am getting KBase and Ksession from spring. I was 
trying to register my KnowledgeBaseEventListener  in my spring configurations. 
But, The issue is that drools-spring.xsd only registers 3 kind of listeners

1.   ProcessEventListener

2.   AgendaEventListener

3.   WorkingMemoryEventListener

Solution Required :

1.   I need to know how to configure the KnowledgeBaseEventListener in my 
spring configurations ?

Example for ksession we have following config to register listeners.


 drools:ksession id=knowledgeSession type=stateful 
kbase=knowledgeBase
drools:agendaEventListener 
ref=agendaEventListener/
drools:workingMemoryEventListener 
ref=wmEventListener/

   /drools:ksession



2.   Is this the best place to trigger a batch process upgrade ? From 
within the KBaseEventListener ?

3.   Shall I add KBaseEventListener using knowledgebase.addEventListener() ?

Environment

1.   Drools-5.5.0.Final

a.   Guvnor

b.  Jbpm




___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Drools Rules : Getting Started Tutorial Link Required

2013-10-22 Thread Zahid Ahmed
Hi,

I am new to Drools Rules and using Drools-5.5.0.Final in my project. I need to 
know , how to setup JBPM runtime engine to perform rule evaluation for 
BusinessRule Nodes. Is there any separate server required for it or can it be 
done with in JBPM runtime. I need a tutorial on setup/configurations and a 
tutorial on rule writing, model uploading. I need to know that how to pass fact 
dynamically at runtime when a Business Rule Node is reached.

Thanks and Best Regards,

Zahid Ahmed
Senior Software Engineer



___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] --Guvnor in Cluster mode with Oracle DB failing

2013-10-01 Thread Zahid Ahmed
Hi,

Attached is my repository configuration with Oracle11. Its working perfectly 
fine for me. I have two nodes in cluster and its working perfectly great. I 
have followed the steps mentioned in 

http://wiki.apache.org/jackrabbit/Clustering 

Easily add new cluster nodes
*Shutdown one of your instances
*Get the current revision number that instance was from your database 
*Copy your whole Jackrabbit repository directory to another server/location 
*Start your original Jackrabbit again 
*Change the copied repository.xml with a new nodename in your clusterconfig 
*Add that nodename to your DB in JOURNAL_LOCAL_REVISIONS with the number from 
the original instance 
*Start your new Jackrabbit instance (or keep it for backup purposes)


Regards,
Zahid Ahmed
Zaid_ahmmedHotmail.com

-Original Message-
From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of san_hegde
Sent: 01 October 2013 18:12
To: rules-users@lists.jboss.org
Subject: [rules-users] --Guvnor in Cluster mode with Oracle DB failing

Hi,
I am trying to deploy Guvnor in Clustered Node, using Oracle 11 I am getting 
Caused By: java.sql.SQLSyntaxErrorException: ORA-00902: invalid datatype I am 
able to deploy in Non-cluster respository..
 Any idea on why it is throwing that exception in cluster..

Below is my cluster configuration in repository xml..

Cluster id=node1 syncDelay=2000
  Journal
class=org.apache.jackrabbit.core.journal.OracleDatabaseJournal
param name=revision value=${rep.home}/revision.log /

param name=driver
value=oracle.jdbc.xa.client.OracleXADataSource /

param name=url
value=jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=yes)(ADDRESS=(PROTOCOL=TCP)(HOST=gvu0513.austin.hp.com)(PORT=1525))(ADDRESS=(PROTOCOL=TCP)(HOST=gvu0514.austin.hp.com)(PORT=1525)))(CONNECT_DATA=(SERVICE_NAME
= BDDBD))) /

param name=user value=abc/

param name=password value=abc/

  /Journal
/Cluster




--
View this message in context: 
http://drools.46999.n3.nabble.com/Guvnor-in-Cluster-mode-with-Oracle-DB-failing-tp4026214.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
?xml version=1.0?
!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the License); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an AS IS BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
--
!DOCTYPE Repository PUBLIC -//The Apache Software Foundation//DTD Jackrabbit 1.4//EN
http://jackrabbit.apache.org/dtd/repository-1.4.dtd;
!-- Example Repository Configuration File --
Repository
!--
virtual file system where the repository stores global state
(e.g. registered namespaces, custom node types, etc.)
--

FileSystem class=org.apache.jackrabbit.core.fs.db.OracleFileSystem
	param name=driver value=javax.naming.InitialContext/
	param name=url value=java:jboss/datasources/jdbc/jbpmStagingRWDS/
	param name=schema value=oracle/
	param name=schemaObjectPrefix value=FS_/
/FileSystem
!--
security configuration
--
Security appName=Jackrabbit
!--
access manager:
class: FQN of class implementing the AccessManager interface
--
AccessManager class=org.apache.jackrabbit.core.security.simple.SimpleAccessManager
!-- param name=config value=${rep.home}/access.xml/ --
/AccessManager

LoginModule class=org.apache.jackrabbit.core.security.simple.SimpleLoginModule
   !-- param name=defaultUserId value=superuser/ --
/LoginModule
/Security

!--
location of workspaces root directory and name of default workspace
--
Workspaces rootPath=${rep.home}/workspaces defaultWorkspace=default/
!--
workspace configuration template:
used to create the initial workspace if there's no workspace yet
--
Workspace name=${wsp.name}
!--
virtual file system of the workspace:
class: FQN of class implementing the FileSystem interface
--
FileSystem class=org.apache.jackrabbit.core.fs.db.OracleFileSystem
  param name=driver value

Re: [rules-users] do we have public API for exporting the guvnor repository

2013-09-29 Thread Zahid Ahmed
Hi,

There are REST interfaces exposed by Guvnor. You can use those REST interfaces 
to make your own import export utility program. There are REST interfaces to 
GET and PUT assets into Guvnor. The only issue in Guvnor's REST interface is 
that it is not secured. You can access a package, If you have a valid user, and 
password but you don't have Permissions on that package.

Regards,
Zahid Ahmed

From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Jervis Liu
Sent: 29 September 2013 15:03
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] do we have public API for exporting the guvnor 
repository

On 2013/9/26 0:24, Sean Su wrote:
Does anyone know if we have the public API to export the Guvnor rule repository 
in the format (xml, or zip version) that we can manually retrieve by going to 
Administration/ImportExport section?
No, I am afraid we do not have such API. But, the repo import/export in 5.5 
(and earlier versions) is severed by this servlet: 
https://github.com/droolsjbpm/guvnor/blob/5.5.x/guvnor-webapp-core/src/main/java/org/drools/guvnor/server/files/RepositoryBackupServlet.java
You should be able to call this servlet directly as long as you have provided 
this servlet with parameters it requires and set Basic authentication correctly.

Cheers,
Jervis


Thanks

Sean




___

rules-users mailing list

rules-users@lists.jboss.orgmailto:rules-users@lists.jboss.org

https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Does Guvnor limits the number of unsuccessful Login Attempts ?

2013-09-24 Thread Zahid Ahmed
Hi,

I want to know that is there any configuration in Guvnor to limit the number of 
unsuccessful login attempts. This is required as I want to prevent Brute Force 
attack on my production Guvnor server.

Environment:

1.   Drools-Guvnor 5.5.0-Final

2.   Jboss EAP 6.1.0


Thanks and Best Regards,
Zahid Ahmed



___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Need help is escalation event

2013-09-16 Thread Zahid Ahmed
Hi,

I want to use Escalation intermediate event in JBPM5.4. For this I placed an 
escalation intermediate event as a boundary event of an human task. 
Escalation event has an attribute of expression. I need to know what shall I 
write to escalate this task to some other user if its not being processed by 
the current owner.





___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Synchronization issue in Guvnor Cluster Setup

2013-09-16 Thread Zahid Ahmed
Hi Kulpreet,

I have seen both the repository.xml files. What I can clearly see is that u 
have not configured it to work with database. You are using file-system 
persistence managers as u mentioned in your question. 

You have configured common/shared journal for both the nodes, which is fine. 
But you should configure a common/shared 
1. PersistenceManager
2. FileSystem
3. DataStore

Cluster will work if u have a common data storage area (either on common file 
system location OR on common database). But in your case both the Guvnors are 
keeping data in individual non-shared file system. I could be wrong if 
following paths are shared paths but they seem to be different for both the 
guvnors.
1. ${rep.home}
2. ${wsp.home}

MY Configurations are working fine and are based on DataBase. I am attaching my 
config file. The only differenc in guv1 and guv2 is the node name. i.e. 
Cluster id=node1  and Cluster id=node2

Regards,

Zahid


-Original Message-
From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of kulpreet_singh
Sent: 16 September 2013 15:18
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] Synchronization issue in Guvnor Cluster Setup

Hi Zahid,
Thanks for your response. PFA both the repository.xml files for respective 
guvnor instances.

Regards,
Kulpreet Singh
Copy_of_repository_for_guv1.xml
http://drools.46999.n3.nabble.com/file/n4025973/Copy_of_repository_for_guv1.xml
Copy_of_repository_for_guv2.xml
http://drools.46999.n3.nabble.com/file/n4025973/Copy_of_repository_for_guv2.xml
  



--
View this message in context: 
http://drools.46999.n3.nabble.com/Synchronization-issue-in-Guvnor-Cluster-Setup-tp4025938p4025973.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
?xml version=1.0?
!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the License); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an AS IS BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
--
!DOCTYPE Repository PUBLIC -//The Apache Software Foundation//DTD Jackrabbit 1.4//EN
http://jackrabbit.apache.org/dtd/repository-1.4.dtd;
!-- Example Repository Configuration File --
Repository
!--
virtual file system where the repository stores global state
(e.g. registered namespaces, custom node types, etc.)
--
!--
FileSystem class=org.apache.jackrabbit.core.fs.local.LocalFileSystem
param name=path value=${rep.home}/repository/
/FileSystem
--
FileSystem class=org.apache.jackrabbit.core.fs.db.OracleFileSystem
	param name=driver value=javax.naming.InitialContext/
	param name=url value=java:jboss/datasources/jdbc/jbpmStagingRWDS/
	param name=schema value=oracle/
	param name=schemaObjectPrefix value=FS_/
/FileSystem
!--
security configuration
--
Security appName=Jackrabbit
!--
access manager:
class: FQN of class implementing the AccessManager interface
--
AccessManager class=org.apache.jackrabbit.core.security.simple.SimpleAccessManager
!-- param name=config value=${rep.home}/access.xml/ --
/AccessManager

LoginModule class=org.apache.jackrabbit.core.security.simple.SimpleLoginModule
   !-- anonymous user name ('anonymous' is the default value) --
   !-- param name=anonymousId value=anonymous/ --
   !--
  default user name to be used instead of the anonymous user
  when no login credentials are provided (unset by default)
   --
   !-- param name=defaultUserId value=superuser/ --
/LoginModule
/Security

!--
location of workspaces root directory and name of default workspace
--
Workspaces rootPath=${rep.home}/workspaces defaultWorkspace=default/
!--
workspace configuration template:
used to create the initial workspace if there's no workspace yet
--
Workspace name=${wsp.name}
!--
virtual file system of the workspace:
class: FQN of class implementing the FileSystem interface
--

!--
FileSystem 

[rules-users] Guvnor5.5 : Rest Api Package Based Authentication

2013-09-15 Thread Zahid Ahmed
Hi,

I have a centralized Guvnor5.5 environment where multiple applications access 
the Guvnor through rest api for their respective assets.
Each application is assigned a change-set that points to the Package containing 
assets for that application only. In each change-set the authentication 
provided is basic-authentication.

Problem Case:
If the application developer knows the names of other packages he can point the 
application to run processes of other applications. This causes security issue 
for us. Applications should access assets assigned to them in their change-set 
only.
I need to setup user and permissions for access through REST interface on the 
basis of packages. Applications accessing Guvnor should be allowed only to 
access their respective package/assets/categories only.


Thanks and Best Regards,
Zahid Ahmed




___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Synchronization issue in Guvnor Cluster Setup

2013-09-14 Thread Zahid Ahmed
Hi,

Kindly share your repository.xml. I have configured the jackrabbit clustering 
in repository.xml and its working fine for me

Regards,

Zahid

-Original Message-
From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of kulpreet_singh
Sent: 13 September 2013 16:42
To: rules-users@lists.jboss.org
Subject: [rules-users] Synchronization issue in Guvnor Cluster Setup

Hi,
I am trying to setup a cluster for two guvnor 5.3.0 instances. I deployed two 
different guvnor wars instances (different context roots) on WAS CE
2.1.1.4 server. Then, configured common/shared file based journal for both 
guvnor repositories (added cluster node in repository.xml file of both guvnor 
instances). But, when working on one Guvnor instance, the corresponding updates 
are not reflected on other guvnor’s repository.
However, the journal log is updated with activities in both the Guvnor 
repositories. I also tried by adding distributable/ element as a child 
element of the web-app element to the both Guvnors' web.xml file, but still the 
synchronization issue is not resolved. Please let me know if I am missing any 
configuration for cluster setup.

Thanks  Regards,
Kulpreet Singh



--
View this message in context: 
http://drools.46999.n3.nabble.com/Synchronization-issue-in-Guvnor-Cluster-Setup-tp4025938.html
Sent from the Drools: User forum mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Firing Rule with in a process definition

2013-09-14 Thread Zahid Ahmed
Hi,

I need to know how can I fire a rule within a process definition. I want this 
to control the flow of my Business Process.

Thanks and Best Regards,
Zahid Ahmed




___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] how to check difference between two .pkg files

2013-09-09 Thread Zahid Ahmed
Hi,

It depends which version of Guvnor u r using. If its 5.x then, there are two 
ways to do this;

1. Use guvnor provided REST interface to get information related to packages.
2. Use JackRabbit API to directly access the repository as Guvnor 5.x uses 
JackRabbit as the assets repository.

Regards,
Zahid Ahmed

-Original Message-
From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of maunakea
Sent: 09 September 2013 20:38
To: rules-users@lists.jboss.org
Subject: [rules-users] how to check difference between two .pkg files

I have 2 .pkg files that are 2 snapshots for the same package from 2 different 
Guvnor instances. The 2 Guvnor instances are prod and test. I see that within 
Guvnor, it can show diff between 2 snapshots in its repository.
If Guvnor can do it, there must be some API that I can use outside in a 
standalone program to compare between .pkg file. Anybody knows how to do this?

thanks



--
View this message in context: 
http://drools.46999.n3.nabble.com/how-to-check-difference-between-two-pkg-files-tp4025877.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] What is Drools Kie ?

2013-09-03 Thread Zahid Ahmed
Hi,

I need help in KIE API. Need to know that what it is and is there any tutorial 
available to use Drools KIE. What I have understood googling it out is that it 
as an API on top of Drools-JBPM, Drools-Guvnor (UberFire), Opta Planner, ..


Is kie part of drools-6.x ? And if it is part of drools-6.x then what will be 
the effect on applications using Drool-5.5 running JBPM5.4, and guvnor 5.5 ?

Regards,

Zahid Ahmed

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Authorization is not working in guvnor

2013-09-02 Thread Zahid Ahmed
Hi Smurfs,

You have to replace the class file mentioned in the below link in 
guvnor-webcore jar. If u still find issues in setting it up do let me know I 
will guide you through.

Following is the solution to your Authorization Issue.

  1.  
http://drools.46999.n3.nabble.com/How-configure-Guvnor-5-4-JAAS-with-jboss-7-0-2-td4020424.html#a4020854http://drools.46999.n3.nabble.com/How-configure-Guvnor-5-4-JAAS-with-jboss-7-0-2-td4020424.html


Regards,

Zahid
Sr. Consultant Engineer BPM, Drools

From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Stephen Masters
Sent: 29 August 2013 19:47
To: Rules Users List
Subject: Re: [rules-users] Authorization is not working in guvnor

There's a known bug in authentication for with that version:
https://community.jboss.org/thread/206645
Perhaps that's the trouble you're having?


However, it's worth pointing out that the users that are set up within Guvnor 
do not have logins. Instead they need to match up to existing users, which are 
set up through the authenticator. i.e. If you are using an LDAP authenticator, 
the Guvnor username must match up with a username for which there is also an 
entry (including a password) in LDAP. It's the same if you set up the usernames 
and passwords in a properties file.

Note that you do also need to set up properties for Guvnor to require login 
instead of anonymous/guest login. The user guide has the details.

Steve



On 29 Aug 2013, at 16:15, Smurfs 
smurfs.d...@gmail.commailto:smurfs.d...@gmail.com wrote:


Hi
I have installed guvnor-5.5.0.Final-jboss-as-7.0 in JBOSS As 7.1  and it is
working fine.
I am authenticating using JAAS Authenticator and is working fine. But
authorization is not working.

In guvnor, there is a user permission tab where we can create new users and
set roles to them.
Can we use that user to login? At present, i am giving the user list in
users.properties file and it picks from that. But, authorization is not
working. can you please let me know, how to make it work.
Thanks
Smurf





--
View this message in context: 
http://drools.46999.n3.nabble.com/Authorization-is-not-working-in-guvnor-tp4025724.html
Sent from the Drools: User forum mailing list archive at 
Nabble.comhttp://Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.orgmailto:rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Guvnor - more than one resource in changeset.xml

2013-08-27 Thread Zahid Ahmed
Hi,

U can access assets from two different packages using one ChangeSet definition 
in Guvnor. Multiple resource tags can be defined in an add add tag. 
Following will be the configuration in ChangeSet
Note : ChangeSet tag can have only one tag and that tag will occur only 
once. Tags allowed in changeset.xsd are following,
1. add tag
2. remove tag

Change Set XSD : 
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd
 

[change set]
add 
resource
source='http://server:8080/guvnor-tomcat/rest/packages/com.pkg1/source' 
type='DRL' basicAuthentication=enabled username=admin 
password=admin
/
resource
source='http://server:8080/guvnor-tomcat/rest/packages/com.pkg2/source' 
type='DRL' basicAuthentication=enabled username=admin 
password=admin
/
/add
[/changeset]


Now u will have to call applyChangeSet once, as u will be having one change 
Set referring more than one packages 

kagent.applyChangeSet(ResourceFactory.newClassPathResource(guvnor-tomcat-single-changeset.xml));

Hope that answers your questions.

Regards,
Zahid Ahmed

-Original Message-
From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of rganesh84
Sent: 27 August 2013 12:22
To: rules-users@lists.jboss.org
Subject: [rules-users] Guvnor - more than one resource in changeset.xml

I have 2 packages in Guvnor UI having different set of rule assets in it.

pkg1 - UI rules
pkg2 - Business rules

In the java application code base, is it mandatory to have 2 change set xmls 
with different package contents?

[Java] // for UI rules
kagent.applyChangeSet(ResourceFactory.newClassPathResource(guvnor-tomcat-pkg1-changeset.xml));
[/Java]

[Java] // for business rules
kagent.applyChangeSet(ResourceFactory.newClassPathResource(guvnor-tomcat-pkg2-changeset.xml));
[/Java]

Can this be achieved having only one changeset holding multiple packaged rules?

[change set]
add 
resource
source='http://server:8080/guvnor-tomcat/rest/packages/com.pkg1/source' 
type='DRL' basicAuthentication=enabled username=admin 
password=admin
/
/add
[/changeset]

If i add a resource to add tag, how do I call it in Java code?



--
View this message in context: 
http://drools.46999.n3.nabble.com/Guvnor-more-than-one-resource-in-changeset-xml-tp4025690.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] How Answers to community question Appear on more than one site

2013-08-27 Thread Zahid Ahmed
Hi,



I also wanted to know that I replied on rules-users mailing list and now my 
answer is listed on http://www.marshut.com/ website instead of jboss community. 
Some answers get displayed at nabble.com Howcome some answers are visible 
on marshut and some on nabble. I just want to know is this a new technique to 
balance the load on community site.


Thanks and Best Regards,

Zahid Ahmed



___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Guvnor in Reselliency environment : Assets stored in DB not visible in Secondary server

2013-07-21 Thread Zahid Ahmed
I am working in Drools-Guvnor-5.5.0.Final version and have configured 
repository.xml to save all assets + indexes in Oracle 11 database.



I am deploying Guvnor in a resilient environment which has two servers. Guvnor 
deployed in both the servers is pointing to the same database.



Step 1

For this I generated the repository.xml from the administration panel of Guvnor 
and replaced in both primary and secondary Guvnor instance. And when I started 
the server and imported assets into primary guvnor, I was able to see the 
following tables in database,



1.   FS_FSENTRY;

2.   FS_WS_DEFAULT_FSENTRY;

3.   PM_WS_DEFAULT_FSENTRY;

4.   PM_WS_DEFAULT_BINVAL;

5.   PM_WS_DEFAULT_BUNDLE;

6.   PM_WS_DEFAULT_REFS;

7.   PM_WS_DEFAULT_NAMES;

8.   REPOSITORY_FS_FSENTRY;

9.   VERSIONING_FS_FSENTRY;

10.VERSIONING_PM_BINVAL;

11.VERSIONING_PM_BUNDLE;

12.VERSIONING_PM_NAMES;

13.VERSIONING_PM_REFS;



I also configured workspace.xml files in

1.  jboss-eap-6.0/bin/repository/workspaces/default

2.  jboss-eap-6.0/bin/repository/workspaces/security



Step 2

Now started secondary guvnor, configured similar to primary Guvnor. But 
secondary server did not displayed the packages and assets from DB. Instead 
asked me to install sample packages.



Step 3

I configured DataStore in repository.xml. Restarted primary Guvnor server and 
found one more table is created in database with the assets init.

Table name : DS_DATASTORE



Step 4

Configured secondary Guvnor with DataStore and restarted it. Now I could see 
the packages of primary Guvnor, But the assets in packages were not available.



I am attaching the repository.xml file from both the servers.


Thanks and Best Regards,

Zahid Ahmed
Senior Software Engineer | Emirates Group IT
P.O. Box 686 | Dubai, United Arab Emirates
T +971 4 245 2551| M +971   55 124 9171



?xml version=1.0?
!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the License); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an AS IS BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
--
!DOCTYPE Repository PUBLIC -//The Apache Software Foundation//DTD Jackrabbit 1.4//EN
http://jackrabbit.apache.org/dtd/repository-1.4.dtd;
!-- Example Repository Configuration File --
Repository
!--
virtual file system where the repository stores global state
(e.g. registered namespaces, custom node types, etc.)
--
!--
FileSystem class=org.apache.jackrabbit.core.fs.local.LocalFileSystem
param name=path value=${rep.home}/repository/
/FileSystem
--
FileSystem class=org.apache.jackrabbit.core.fs.db.OracleFileSystem
  param name=driver value=oracle.jdbc.OracleDriver/
param name=url value=jdbc:oracle:thin:@dolnxprodvm271:6516:wkflwop/
param name=user value=wkflw_ownr/
param name=password value=wkflw_ownr/
  param name=schema value=oracle/
  param name=schemaObjectPrefix value=FS_/
/FileSystem
!--
security configuration
--
Security appName=Jackrabbit
!--
access manager:
class: FQN of class implementing the AccessManager interface
--
AccessManager class=org.apache.jackrabbit.core.security.simple.SimpleAccessManager
!-- param name=config value=${rep.home}/access.xml/ --
/AccessManager

LoginModule class=org.apache.jackrabbit.core.security.simple.SimpleLoginModule
   !-- anonymous user name ('anonymous' is the default value) --
   !-- param name=anonymousId value=anonymous/ --
   !--
  default user name to be used instead of the anonymous user
  when no login credentials are provided (unset by default)
   --
   !-- param name=defaultUserId value=superuser/ --
/LoginModule
/Security

!--
location of workspaces root directory and name of default workspace
--
Workspaces rootPath=${rep.home}/workspaces defaultWorkspace=default/
!--
workspace configuration template:
used to create the initial workspace if there's no workspace yet
--
Workspace name=${wsp.name}
!--
virtual file system of the workspace:
class: FQN of class implementing the FileSystem interface
--

!--
FileSystem class

Re: [rules-users] Drools-Guvnor integration with Webshere- Exception during startup...Please help!!!

2013-05-29 Thread Zahid Ahmed
Hi,

It would be better if u share drools-guvnor/WEB-INF/beans.xml

-Original Message-
From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of drdaveg
Sent: 30 May 2013 00:05
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] Drools-Guvnor integration with Webshere- Exception 
during startup...Please help!!!

When I try using 5.2 (NOT 5.2.1, which will be next) I get a logon dialog box 
for username/password that (per the docs) seems like it should accept anything 
- but no user/password combination seems to work out of box. 
Please note that I haven't tried to configure security for 5.2, expecting none. 
 Thoughts?



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Guvnor-integration-with-Webshere-Exception-during-startup-Please-help-tp4018745p4024021.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Guvnor REST APIs - what rule features are supported?

2013-03-31 Thread Zahid Ahmed
Hi All,

 

I need a good book for Drools, JBPM and Guvnor to get a good understanding of 
workflow and rule-engine. I need to create a workflow based application and the 
book will be helpful to me in my development and understanding.

 

Regards,

Zahid

 

From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of kurrent93
Sent: 31 March 2013 18:02
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] Guvnor REST APIs - what rule features are supported?

 

Thanks Manstis 

 

As mentioned, I'm trying to build a custom rule editor. 

 

I'm looking at the following approaches:

*   Guvnor REST - seems very limited - but could be used for simply CRUD of 
DRL.
*   Re-using Guvnor code, such as webapp-core - apparently has 
undocumented dependencies. Also, its a large code base - would take time to 
get familiar. 
*   A DSL to DRL converter - for complex rules, which we have, this will 
also be complex
*   using RuleML

I would be very interested to hear how others have tacked this challenge, or 
any recommendations from drools users/developers.

 

Br

Anton

 

 

 

 

 

On Sun, Mar 31, 2013 at 3:35 PM, manstis [via Drools] [hidden email] wrote:

The REST API is primarily for CRUD operations; it is not a programmatic API to 
assemble rules and as such your comments about calendars and salience etc are 
not provided in the REST API.

You can however, and as some do, download the source for a rule, deserialise 
this into Guvnor's *internal* model (depending on the type of rule), modify 
this programmatically, serialise back to source and use REST to write it back 
to Guvnor.

Source as used above could be XML although some assets are stored as DRL. 

Also all models should be considered as *internal* (I.e. not public) as we 
don't undertake that they are compatible between releases (although in reality 
they have changed very little, other than guided decision tables).

sent on the move

On 31 Mar 2013 12:17, kurrent93 [hidden email] 
http://user/SendEmail.jtp?type=nodenode=4023132i=0  wrote:

Hi

I saw a thread a few days ago asking about how to enable/disable rules 
using
the guvnor REST Api - only to find that that functionality does not 
exist.

What other functionalities are not covered by the REST apis?

For example, can we add calendars using the REST api?

What about salience, no-loop, activation group, agenda group, duration?

We are looking to build a custom UI for editing rules, using the Guvnor 
REST
apis, and but if there is limited coverage, then we will need to find an
alternative.

Thanks



--
View this message in context: 
http://drools.46999.n3.nabble.com/Guvnor-REST-APIs-what-rule-features-are-supported-tp4023131.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
[hidden email] http://user/SendEmail.jtp?type=nodenode=4023132i=1 
https://lists.jboss.org/mailman/listinfo/rules-users


___ 
rules-users mailing list 
[hidden email] http://user/SendEmail.jtp?type=nodenode=4023132i=2  
https://lists.jboss.org/mailman/listinfo/rules-users 



If you reply to this email, your message will be added to the discussion below:

http://drools.46999.n3.nabble.com/Guvnor-REST-APIs-what-rule-features-are-supported-tp4023131p4023132.html
 

To unsubscribe from Guvnor REST APIs - what rule features are supported?, click 
here.
NAML 
http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
  

 

 



View this message in context: Re: [rules-users] Guvnor REST APIs - what rule 
features are supported? 
http://drools.46999.n3.nabble.com/Guvnor-REST-APIs-what-rule-features-are-supported-tp4023131p4023133.html
 
Sent from the Drools: User forum mailing list archive 
http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html  at 
Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Good Bokk for Drools, JBPM, Guvnor

2013-03-31 Thread Zahid Ahmed
Hi All,

 

I need a good book for Drools, JBPM and Guvnor to get a good
understanding of workflow and rule-engine. I need to create a workflow
based application and the book will be helpful to me in my development
and understanding.

 

Regards,

Zahid

 

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users