[rules-users] Repositry deployment Issues

2013-12-27 Thread Govind J. Parashar
Hi All

Anyone know how to dynamic deploy or export (using programmatically or through 
scripting ) repository in Guvnor.

Thanks  regards
Govind Parashar


-Original Message-
From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Wolfgang Laun
Sent: 27 December 2013 19:50
To: Rules Users List
Subject: Re: [rules-users] Drools6.0 Security Issues

You might want to look into the topic of the Java platform's security manager, 
which provides features for running untrusted SW. This list may not be the best 
place to ask about details w.r.t. this topic.

The idea of inspecting DRL source code to detect the (malicious) usage of some 
class or other is, most certainly, not a good idea.

-W

On 27/12/2013, philip 18922445...@189.cn wrote:
 Thank you for your reply.
 If  existing  some package or class  on the  rule 's RHS ,How to 
 filter them ,and forbid execute this rule.



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/rules-users-Drools6-0-Security-Issue
 s-tp4027433p4027445.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
MASTEK LTD.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~


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


Re: [rules-users] Drools 6 getting started

2013-11-25 Thread Govind J. Parashar
Hi All

Anyone know,  How to build a KnowledgeBase externally and how to dynamically 
reload it while the application is running.?

Thanks  regards
Govind P

From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Matthew Versaggi
Sent: 25 November 2013 13:36
To: Rules Users List
Subject: Re: [rules-users] Drools 6 getting started

Do you know if they have worked out the Guvnor / EAP 6.0 Resty issue just yet? 
I had to resort to using Tomcat7 after installing and configuring EAP 6 because 
of that. :-(

On Mon, Nov 25, 2013 at 7:46 AM, Mark Proctor 
mproc...@codehaus.orgmailto:mproc...@codehaus.org wrote:
The links weren't suppose to go up yet, sorry. We haven't finished preparing 
the videos and there is a new website to come.

In the mean time you need to read the Workbench Installation Guide:
http://docs.jboss.org/drools/release/6.0.0.Final/drools-docs/html/wb.Workbench.html#wb.Installation

And the Build, Deploy and Utilize here:
http://docs.jboss.org/drools/release/6.0.0.Final/drools-docs/html/KIEChapter.html#KIEOverviewSection

Installation is trivla, you drop the jar in JBossAS and you are ready to go - 
as per the first video in the playlist. It has a starting playground. Just 
click build and deploy for a project and you are good to go:
http://tinyurl.com/pnq6497

The workbench installation docs tell you how to configure the location of 
things like the GIT repo, the maven repo etc. Although it will start with 
default working folder.


Mark


On 25 Nov 2013, at 11:40, captainrhino 
graeme.kitc...@axa-travel-insurance.commailto:graeme.kitc...@axa-travel-insurance.com
 wrote:


Basically I have a web app in which I would like to run some drools rules
from the new KIW-WB objects. e.g. KieContainer objects

Does anyone have a link to an idiots guide to getting started to Drools 6?

I'm looking to build a drools 6 maven project from one of the standard
example KIE-WB projects.  What do i need MAven , GIthub etc and how do I
build it?

I then need to be able to use this project within a non-maven project, i.e.
build a jar from within the maven project that can then be used by my
non-maven java project.  With the old deprecated  KnowledgeBase classes I
used to be able to do this really easily.

Any suggestions would be most welcome and appreciated.









--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-6-getting-started-tp4026911.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.orgmailto:rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



--
#
Matthew R. Versaggi, President  CEO
Versaggi Information Systems, Inc.
Adjunct Professor of eBusiness DePaul University
Email: mailto:m...@versaggi.commailto:m...@versaggi.com, 
profversa...@gmail.commailto:profversa...@gmail.com
M: 630-292-8422
LinkedIn:  http://www.linkedin.com/in/versaggi
#
MASTEK LTD.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] How can I iterate through the ArrayList

2013-11-14 Thread Govind J. Parashar
Hi


Below have my java code and main method I want  to fire rule for all value of 
STATUS   how to write drl for this 

I am passing  awaitingActionList to rule

public static void main(String args[]) throws Exception {
  
KnowledgeBase kbase = readKnowledgeBase();  
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
 
AwaitingAction action = new AwaitingAction();
AwaitingActionList awaitingActionList = new AwaitingActionList();
ListAwaitingAction list = new ArrayListAwaitingAction();
action.setStatus(CU);
action.setValue(Create User);
list.add(action);
action = new AwaitingAction();
action.setStatus(CLU);
action.setValue(Complete Request);
list.add(action);
action = new AwaitingAction();
action.setStatus(CP);
action.setValue(Create Position);
list.add(action);
awaitingActionList.setAwaitingActionsList(list);
for(AwaitingAction actionVO : awaitingActionList.getAwaitingActionsList())
{
System.out.println(VALUE:-- +actionVO.getValue()+
STATUS:-- +actionVO.getStatus()+   REDIRECT TO:-- +actionVO.getRedirect());
}   

ksession.insert(awaitingActionList);  
ksession.fireAllRules();  
ksession.dispose();  

  }



private static KnowledgeBase readKnowledgeBase() throws Exception {  
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();  
kbuilder.add(ResourceFactory.newClassPathResource(AwaitingAction.drl), 
ResourceType.DRL);  
KnowledgeBuilderErrors errors = kbuilder.getErrors();  
if (errors.size()  0) {  
  for (KnowledgeBuilderError error : errors) {  
System.err.println(error);  
  }  
  throw new IllegalArgumentException(Could not parse knowledge.);  
}  
KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();  
kbase.addKnowledgePackages(kbuilder.getKnowledgePackages());  
return kbase;  
  }  
}  




public class AwaitingAction {

private String status;
private String value;
private String redirect;
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String getRedirect() {
return redirect;
}
public void setRedirect(String redirect) {
this.redirect = redirect;
}



public class AwaitingActionList {

public ListAwaitingAction awaitingActionsList =  new 
ArrayListAwaitingAction();

public ListAwaitingAction getAwaitingActionsList() {
return awaitingActionsList;
}

public void setAwaitingActionsList(ListAwaitingAction 
awaitingActionsList) {
this.awaitingActionsList = awaitingActionsList;
}


}




-Original Message-
From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Wolfgang Laun
Sent: 14 November 2013 05:08
To: Rules Users List
Subject: Re: [rules-users] How can I iterate through the ArrayList

You may have to phrase your question more accurately in order to get an answer.

Do you want the rule to fire if some, or if all, value fields of the 
AwaitingAction have some value? Once or for each AwaitingAction? Or do you want 
it to fire once if at least one, or if all, AwaitingActions of all 
AwaitingActionLists have a field value with some specific value?

Also, would you consider inserting also the AwaitingAction objects as facts, 
not only the AwaitingActionList?

-W



On 13/11/2013, Govind J. Parashar govind.paras...@mastek.com wrote:
 HI,

 I have a AwaitingActionList Object which has a awaitingActionsList 
 Object which has a ArrayList of AwaitingAction Objects. How can I 
 iterate through the ArrayList to get to check each object 
 AwaitingAction .value in the drl file.

 Java refrence file attached

 Thanks
 Govind
 MASTEK LTD.
 In the US, we're called MAJESCOMASTEK

 ~~
 
 Opinions expressed in this e-mail are those of the individual and not 
 that of Mastek Limited, unless specifically indicated to that effect. 
 Mastek Limited does not accept any responsibility or liability for it. 
 This e-mail and attachments (if any) transmitted with it are 
 confidential and/or privileged and solely for the use of the intended 
 person or entity to which it is addressed. Any review, 
 re-transmission, dissemination or other use of or taking of any action 
 in reliance upon this information by persons or entities other than 
 the intended recipient is prohibited. This e-mail and its attachments 
 have been scanned for the presence

[rules-users] How can I iterate through the ArrayList

2013-11-13 Thread Govind J. Parashar
HI,

I have a AwaitingActionList Object which has a awaitingActionsList Object which 
has a ArrayList of AwaitingAction Objects. How can I iterate through the 
ArrayList to get to check each object AwaitingAction .value in the drl file.

Java refrence file attached

Thanks
Govind
MASTEK LTD.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~


AwaitingAction.java
Description: AwaitingAction.java


AwaitingActionClient.java
Description: AwaitingActionClient.java


AwaitingActionList.java
Description: AwaitingActionList.java


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

[rules-users] iterate through the ArrayList

2013-11-13 Thread Govind J. Parashar
Hi all

I have  Class A  which has a one attribute

private ListB obj =  new ArrayListB();


Class B   which has a one attribute
Status
Value

How can I iterate through the ArrayList (i.e obj)  to get to check each object 
B . Status=='True'  the set Value=true  in the drl file.


Thanks
Govind
MASTEK LTD.
In the US, we're called MAJESCOMASTEK

~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
desktop and server.
~~
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users