Re: [rules-users] Spring 4.0 & Drools 6.0.1 Integration issue

2014-03-21 Thread Mark Proctor
It’s not a known issue, but that doesn’t mean it isn’t an issue. I guess open a 
JIRA, and maybe take a look into yourself, to see if you can figure out the fix.
http://docs.jboss.org/drools/release/5.5.0.Final/droolsjbpm-introduction-docs/html/gettingstarted.html

Mark
On 21 Mar 2014, at 21:27, alanvarghese  wrote:

> The above code works perfectly if it is a batch program.
> It doesn't work in a Spring MVC web project.
> Is that a known issue?
> 
> ContextLoader E org.springframework.web.context.ContextLoader
> initWebApplicationContext Context initialization failed
> java.lang.NullPointerException
>   at java.io.File.(File.java:233)
>   at
> org.drools.compiler.kie.builder.impl.ClasspathKieProject.getPomProperties(ClasspathKieProject.java:228)
>   at
> org.kie.spring.KModuleBeanFactoryPostProcessor.postProcessBeanFactory(KModuleBeanFactoryPostProcessor.java:95)
>   at
> org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:694)
>   at
> org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:684)
>   at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461)
>   at
> org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
>   at
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
>   at
> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
>   at
> com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1680)
>   at
> com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:410)
>   at
> com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
>   at
> com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)
>   at
> com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:746)
>   at
> com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)
>   at
> com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:422)
>   at
> com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:714)
>   at
> com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1160)
>   at
> com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1369)
>   at
> com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)
>   at
> com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:967)
>   at
> com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:766)
>   at
> com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1354)
>   at
> com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2150)
>   at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:445)
>   at
> com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
>   at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:388)
>   at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:116)
>   at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(CompositionUnitMgrImpl.java:663)
>   at
> com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5363)
>   at
> com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5579)
>   at
> com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
>   at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:677)
>   at
> com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:621)
>   at
> com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1246)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
>   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>   at java.lang.reflect.Method.invoke(Method.java:611)
>   at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:49)
>   at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
>   at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>   at java.lang.reflect.Method.invoke(Method.java:611)
>   at sun.reflect.misc.MethodUtil.invoke(

Re: [rules-users] Spring 4.0 & Drools 6.0.1 Integration issue

2014-03-21 Thread alanvarghese
The above code works perfectly if it is a batch program.
It doesn't work in a Spring MVC web project.
Is that a known issue?

ContextLoader E org.springframework.web.context.ContextLoader
initWebApplicationContext Context initialization failed
 java.lang.NullPointerException
at java.io.File.(File.java:233)
at
org.drools.compiler.kie.builder.impl.ClasspathKieProject.getPomProperties(ClasspathKieProject.java:228)
at
org.kie.spring.KModuleBeanFactoryPostProcessor.postProcessBeanFactory(KModuleBeanFactoryPostProcessor.java:95)
at
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:694)
at
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:684)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:461)
at
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
at
com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1680)
at
com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:410)
at
com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
at
com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)
at
com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:746)
at
com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)
at
com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:422)
at
com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:714)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1160)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1369)
at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:967)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:766)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1354)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2150)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:445)
at
com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:388)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:116)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(CompositionUnitMgrImpl.java:663)
at
com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5363)
at
com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5579)
at
com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:677)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:621)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1246)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:49)
at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:256)
at
javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1085)
at
javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:966)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
at 
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:

Re: [rules-users] CompositiveClassLoader$CachingLoader#load method intermittently hangs

2014-03-21 Thread mikerod
Does anyone have any thoughts on this issue?

I still haven't been able to get to the root of the concurrency issue. 
Digging through some of the Drools implementations, but no luck.  :)



--
View this message in context: 
http://drools.46999.n3.nabble.com/CompositiveClassLoader-CachingLoader-load-method-intermittently-hangs-tp4028780p4028910.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


Re: [rules-users] Performance of rules in Drools

2014-03-21 Thread Wolfgang Laun
"More efficient" w.r.t. runtime, maintenance, development effort,...?

Writing individual rules is quick, bad for maintenance, and probably
best, if a session has only a few inputs as it starts fast from a
precompiled rule base.

Parameter facts take a little time for development, are very good for
maintenance (see below) and have a tolerable overhead if they are not
too numerous and/or the session runs long.

What should be considered is that a set of parameter facts can be
maintained by non-technical personnel, e.g., in a spreadsheet or in
some other data preparation tool. This could be a boon for long-ter
maintenance.

-W


On 21/03/2014, Seb Geek  wrote:
> Hello,
>
> I have a list of very similar rules executed in Drools and some performance
> problems appear ... I want some advices to choose between two "direction"
> in order to correct them ...
>
> First the context :
> I have to execute always the same check but with different level or
> "parameters".
> For example,
> - in the first demand (rule for our client) i have to count and retrieve
> the list all Article that have a family code equals to 'A', 'B' or 'C' and
> execute the then clause only if there is 3 elements in the filtered list.
> - in the second demand (rule for our client) i have to count and retrieve
> the list all Article that have a family code equals to 'B' or 'C' and
> execute the then clause only if there is 4 elements in the filtered list
> and so on ...
>
> The number of different group of parameter values and the values of theses
> parameters will change over time ...
>
> The question is : is it more efficient to implement a lot of different
> rules, each with their parameter in the code OR is it more efficient to
> implement only one rule with an additional object as a drools fact
> containing different parameter's values ?
>
> Thanks for your help
> Sébastien
>

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


Re: [rules-users] Not able to detect how to correct ERR 102

2014-03-21 Thread Wolfgang Laun
The corrected version of dsl and dslr works fine.
---
[condition][]There is a Customer with first name {name}=
 $customer : Customer(firstName == {name})
[consequence][]Greet Customer=
   System.out.println("Hello " + $customer.getFirstName());
---
package dsltest;
rule "hello rule"
when
There is a Customer with first name "David"
then
Greet Customer
end


You don't have to write the DSL all in one line. (I fixed that some time ago.)

The error message suggests that translation fails.
1) Make sure the DSLR is *exactly* as above. (The package could be
different, and there is tolerance w.r.t. spacing between words.)
2) ALWAYS print builder errors (see below).
3) Make sure you pass resources correctly to the builder. This is how
it is done for 5.x:

KnowledgeBaseConfiguration kBaseConfig =
KnowledgeBaseFactory.newKnowledgeBaseConfiguration();
KnowledgeBuilderConfiguration kbConfig =
KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration();
KnowledgeBuilder kBuilder =
KnowledgeBuilderFactory.newKnowledgeBuilder( kbConfig );

Resource dsl  = ResourceFactory.newFileResource( dslPath );
Resource dslr = ResourceFactory.newFileResource( dslrPath );
long t0 = System.currentTimeMillis();
kBuilder.add( dsl,  ResourceType.DSL );
kBuilder.add( dslr, ResourceType.DSLR );
if( kBuilder.hasErrors() ){
System.err.println( ">>> compilation errors >>>" );
KnowledgeBuilderErrors errors = kBuilder.getErrors();
for( KnowledgeBuilderError err: errors ){
System.err.println( err.getMessage() );
}
System.err.println( "<<< compilation errors <<<" );
throw new IllegalStateException( "compile errors" );
}
kBase = KnowledgeBaseFactory.newKnowledgeBase( kBaseConfig );
kBase.addKnowledgePackages( kBuilder.getKnowledgePackages() );
kSession = kBase.newStatefulKnowledgeSession();

-W



On 21/03/2014, Michael Anstis  wrote:
> Out of interest what JVM do you use?
>
> We have this recorded:
> https://bugzilla.redhat.com/show_bug.cgi?id=1078839(but it's on IBM's
> JVM).
>
>
> On 21 March 2014 14:17, ankit3j  wrote:
>
>> Yes Maxime. They both are in same folder.
>>
>>
>>
>> --
>> View this message in context:
>> http://drools.46999.n3.nabble.com/Not-able-to-detect-how-to-correct-ERR-102-tp4028884p4028900.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] 6.0.1.F How to set Maven repo used by KieScanner?

2014-03-21 Thread SrjTx
Ok, so I am doing the following.

In my init, i create a container and a scanner

kieContainer = kieServices.newKieContainer(releaseId);
kieScanner = kieServices.newKieScanner(kieContainer);

Then later ,when my timer fires, call the scanner - which I know has updated
the module,
 kieContainer.newKieSession("DroolsSession")
does NOT pick up the changes.

I also tried kieContainer.updateToVersion(releaseId);
 kieContainer.newKieSession("DroolsSession")
does NOT pick up the changes.

Doing 
remove setting up the container and the scanner in init and do the
following when my timer fires

 kieContainer = kieServices.newKieContainer(releaseId);
 kieScanner = kieServices.newKieScanner(kieContainer);
 kieContainer.newKieSession("DroolsSession")
DOES PICKUP the changes.

Is this right, it seems like I shouldn't have to recreate the container?




--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-How-to-set-Maven-repo-used-by-KieScanner-tp4028804p4028906.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


Re: [rules-users] Not able to detect how to correct ERR 102

2014-03-21 Thread Michael Anstis
Out of interest what JVM do you use?

We have this recorded:
https://bugzilla.redhat.com/show_bug.cgi?id=1078839(but it's on IBM's
JVM).


On 21 March 2014 14:17, ankit3j  wrote:

> Yes Maxime. They both are in same folder.
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Not-able-to-detect-how-to-correct-ERR-102-tp4028884p4028900.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] NullPointerException with kie-spring 6.0.1 and Spring 4.0

2014-03-21 Thread alanvarghese
I am getting this error.
Using kie-spring-6.0.1.Final.jar
spring-webmvc-4.0.0.RELEASE.jar
drools-core-6.0.1.Final.jar
Can you please help?



[3/21/14 10:16:11:264 EDT] 009f DispatcherSer I
org.springframework.web.servlet.FrameworkServlet initServletBean
FrameworkServlet 'spring': initialization started
[3/21/14 10:16:11:265 EDT] 009f DispatcherSer E
org.springframework.web.servlet.FrameworkServlet initServletBean Context
initialization failed
 java.lang.NullPointerException
at java.io.File.(File.java:233)
at
org.drools.compiler.kie.builder.impl.ClasspathKieProject.getPomProperties(ClasspathKieProject.java:228)
at
org.kie.spring.KModuleBeanFactoryPostProcessor.postProcessBeanFactory(KModuleBeanFactoryPostProcessor.java:95)
at
org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:265)
at
org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:177)
at
org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:609)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
at
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:381)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:293)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
at
com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1680)
at
com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:410)
at
com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88)
at
com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169)
at
com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:746)
at
com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:634)
at
com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:422)
at
com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:714)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1160)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1369)
at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:639)
at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:967)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:766)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1354)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2150)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:445)
at
com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:123)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:388)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.access$500(CompositionUnitMgrImpl.java:116)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl$1.run(CompositionUnitMgrImpl.java:663)
at
com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:5363)
at
com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:5579)
at
com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:677)
at
com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:621)
at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1246)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:49)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java

Re: [rules-users] Needs advice to help Drools on a big problem (and avoid GC overhead)

2014-03-21 Thread Raphael Jolivet
Guys,

Splitting the problem into smaller ones and retracting facts totally solved
the memory problem and also speed up the process.
I would like to thank you for your responsiveness and expertise.

I am truly amazed by the activity of this community, and Drools is an
awesome piece of software !

Thanks,
Raphael



2014-03-20 21:57 GMT+01:00 Raphael Jolivet :

> Hmm, sure it makes sense. The operations and resources are independent. I
> think I can safely split the problem into smaller ones. I will try this
> approach.
>
> Thanks for the tip
> Le 20 mars 2014 20:51, "Wolfgang Laun"  a écrit :
>
>  I may fail to understand the fundamentals of this problem, but it seems
>> to me that it doesn't have the dynamic requirements that would
>> warrant a full "blow up" of all Resources and Operations at the same time.
>>
>> We have the 300 rules, and I'm assuming that the pattern is the one
>> shown in OP's mail: a Resource subset times an Operation subset. So,
>> if you insert just one Resource (or Operation) fact together with
>> all Operation (or Resource) facts and fire all rules, you'll get all
>> Forbids
>> for the one Resource with all Operations (or vice versa). Then, you
>> retract the singleton and insert the next one, fire all rules, and so on.
>>
>> -W
>>
>>
>> On 20/03/2014, Raphael Jolivet  wrote:
>> > Thanks for you quick answer.
>> >
>> > Not yet,
>> >
>> > For that I will need to switch to fact insertion instead of Java Set.
>> > Do you think to will make a difference in the way the RETE Tree will be
>> > built ?
>> >
>> >
>> >
>> >
>> > 2014-03-20 20:27 GMT+01:00 Mark Proctor :
>> >
>> >> Did you try using the engine in equality mode? It will only ever allow
>> >> one
>> >> "equal" object to be inserted, others are just ignored.
>> >>
>> >> Mark
>> >> On 20 Mar 2014, at 18:54, Raphael  wrote:
>> >>
>> >> > Hi,
>> >> >
>> >> > In our project, we use Drools to compute forbidden allocations as
>> input
>> >> for
>> >> > an allocation problem  (for which we do not use Drools BTW).
>> >> >
>> >> > The constraint of the problem (forbidden operation for given
>> resources)
>> >> are
>> >> > expressed as drools rules.
>> >> >
>> >> > We have about
>> >> > -200 resources
>> >> > -700 operations
>> >> >
>> >> > Those are the Drools facts.
>> >> > We have about 200 Drools rules describing the forbidden allocations
>> >> >
>> >> > The problem here is that many rules produce duplicates forbids.
>> >> > For instance :
>> >> > Rule 1 may forbid Op1 on Res1 & Res3
>> >> > Rule 2 may forbid Op1 on Res2 & res3
>> >> >
>> >> > Currently the RHS of rules just insert forbids into a pure Java Set
>> (no
>> >> fact
>> >> > insertion).
>> >> > The Set takes care of avoiding duplicates, but still, we feel we
>> could
>> >> help
>> >> > Drools by giving him a hint that
>> >> > all rules are actually producing pairs of  and
>> >> that he
>> >> > should not try to produce them more than once.
>> >> >
>> >> > Currently the structure of each rule looks like that :
>> >> >
>> >> > when
>> >> > $resource : Resource()
>> >> > $operation : Operation()
>> >> > then
>> >> >  globalSet.add(Pair)
>> >> > end
>> >> >
>> >> > With the size of the problem, we often end up with outOfMem/ GC
>> limit.
>> >> > When analyzing memory dump, we see about
>> >> > 300.000 drools left tuple object.
>> >> >
>> >> > I am not sure if we could help drools to reduce the Rete tree here.
>> >> > I mean, the allocation matrix is already : 200*700 = 140.000 cells.
>> >> > Drools only uses 2 nodes for each possible forbids, which seems
>> already
>> >> well
>> >> > optimized.
>> >> >
>> >> > We had several idea to improve that though, but we are not enough
>> >> > expert
>> >> in
>> >> > the internal of the RETE algorithm to decide if that's a good way to
>> go
>> >> > :
>> >> >
>> >> > 1) Insert forbids as facts in the RHS and check they are not already
>> >> there
>> >> > in the LHS :
>> >> > when
>> >> > $resource : Resource()
>> >> > $operation : Operation()
>> >> > not Forbid(res=$resource, op=$operation)
>> >> > then
>> >> >  insert(Forbid($resource, $operation))
>> >> > end
>> >> >
>> >> > 2) Merge all rules in one big rule with a single RHS
>> >> > Is it possible to have something like :
>> >> > when
>> >> > // Rule 1
>> >> > ($resource : Resource()
>> >> > $operation : Operation())
>> >> >  or
>> >> > // Rule 2
>> >> > ($resource : Resource()
>> >> > $operation : Operation())
>> >> > // Etc ...
>> >> > then
>> >> >  globalSet.add(Pair)
>> >> > end
>> >> >
>> >> > 3) Define a common RHS somewhere and tell Drools all rules use this
>> >> > one.
>> >> > Is there a possibility in Drools to define reusable RHS ? Would it
>> help
>> >> > ?
>> >> >
>> >> > 4) Any other idea ?
>> >> >
>> >> >
>> >> > Thanks in advance for your help.
>> >> > Brgds,
>> >> >
>> >> > Raphael Jolivet
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >

Re: [rules-users] Efficiency questions about DSL

2014-03-21 Thread Michael Anstis
It's a deliberate decision in the workbench; as it follows what is
supported by the core engine.

I've asked the core engine developers to comment on whether the underlying
Drools engine supports (does support, should support or will support)
cross-JAR DSLs.

With kind regards,

Mike


On 21 March 2014 08:52, mfalaize  wrote:

> Is it a deliberate choice to not include DSL files in the "same package" ?
> If we are limited to the same folder (or same package), what do you think
> about supporting inheritance in DSL files ? With this feature we could
> provide to the community generic translation DSL files for many languages.
>
> Sorry for the new questions ! :D
> I'd like to help to develop but I don't want to make useless
> contributions...
>
>
> 2014-03-20 20:19 GMT+01:00 manstis [via Drools] <[hidden 
> email]
> >:
>
>> So many questions
>>
>> I can comment on the workbench related aspects.
>>
>> The workbench only includes DSL files for authoring DSLR (or RDSLR) files
>> that are in the same "folder" as the rule. I use the term "folder" as we
>> don't support "same package" (which would imply if the same package existed
>> in different JARs we'd include all DSL files - we do not).
>>
>> The "expander" keyword is, AFAIK, deprecated. DSL/DSLR expansion depends
>> upon the files being in the same "folder".
>>
>> @Mario, @Mark, @Edson. Can you comment on whether KIE does handle DSL
>> expansion across different JARs?
>>
>> Sent on the move
>> On 18 Mar 2014 09:20, "mfalaize" <[hidden 
>> email]>
>> wrote:
>>
>>> Hi,
>>>
>>> I was wondering how to use efficiently DSL with my rules and I have
>>> several
>>> questions about it :
>>>
>>> - First, I have the impression that we can use DSL files only in the same
>>> package of the DSLR file. When I tried to load DSL files by the
>>> kmodule.xml
>>> (specifying the different packages in the packages attribute of kbase) it
>>> does not work. Do I have to load each DSL files programmatically or is
>>> there
>>> a way to load it automatically by the kmodule.xml (and if it is the case,
>>> how can we handle the parsing order of these files ?) ?
>>>
>>> - An underlying question is is this a good practice to divide DSL files
>>> ? I
>>> would like to translate all my rules in french and to put the generic
>>> translations in a unique DSL file to reuse it in all of my different DSLR
>>> files.
>>>
>>> - I noted that we can use more than one DSL file for one DSLR file (it
>>> works
>>> at the runtime) but when it is the case the DRL viewer of the DSL rule
>>> editor does not work and I don't have autocompletion. I tried to put
>>> several
>>> expander instructions but it fails. Is there a way to make it work ?
>>>
>>> I think DSL stuff is underestimate at this moment by the community and
>>> for
>>> my last question I would like to know what is the future plans about this
>>> feature ? Maybe I could help to develop it.
>>>
>>> Regards
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://drools.46999.n3.nabble.com/Efficiency-questions-about-DSL-tp4028774.html
>>> Sent from the Drools: User forum mailing list archive at Nabble.com.
>>> ___
>>> rules-users mailing list
>>> [hidden email] 
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>
>> ___
>> rules-users mailing list
>> [hidden email] 
>> 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/Efficiency-questions-about-DSL-tp4028774p4028841.html
>>  To unsubscribe from Efficiency questions about DSL, click here.
>> NAML
>>
>
>
>
> --
> Maxime FALAIZE
>
> --
> View this message in context: Re: [rules-users] Efficiency questions
> about 
> DSL
>
> Sent from the Drools: User forum mailing list 
> archiveat 
> 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:/

Re: [rules-users] Rules updating error

2014-03-21 Thread Michael Anstis
> There is an issue with the application not validating, because I have a
guided decision table which uses a global variable and a function, but that
seems to not be an error after all (everything seems to build as it should).

Fixed for the next release.


On 20 March 2014 11:27, Ioannis Christodoulou  wrote:

> In my java ee application, I use drools 6.1.0.Beta1, deployed on jboss eap
> 6.2 (I have also deployed Kie Workbench 6.0.1.Final).
>
> In order to get the latest updates on my rules (made on kie wb) I tried to
> set kiescanner to "LATEST". This seems to not be working always (I'm not
> 100% sure about the reason, it seems to happen when I have not re-deployed
> the jar with the model classes I use in my rules, or I have not clicked on
> build&deploy of the rules project), so I have reverted to using "1.0" as
> the version and not changing the version when I update the rules project.
>
> There is an issue with the application not validating, because I have a
> guided decision table which uses a global variable and a function, but that
> seems to not be an error after all (everything seems to build as it should).
>
> However, while my application is running (and watching for updates through
> scanner), if I make an update and deploy the rules project again, the
> application retrieves the update and fails with a validation error about
> not being able to analyse the expressions regarding the global function and
> the global variable.
>
> Any suggestions?
>
> Thank you very much.
>
>
> ___
> 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] Not able to detect how to correct ERR 102

2014-03-21 Thread ankit3j
Yes Maxime. They both are in same folder.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Not-able-to-detect-how-to-correct-ERR-102-tp4028884p4028900.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


Re: [rules-users] Not able to detect how to correct ERR 102

2014-03-21 Thread Maxime Falaize
Is your DSL file in the same directory of your DSLR ?


2014-03-21 14:55 GMT+01:00 ankit3j :

> Yes Maxime, still the same error.
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Not-able-to-detect-how-to-correct-ERR-102-tp4028884p4028897.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
>



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

Re: [rules-users] cannot copy guided decision table

2014-03-21 Thread Ioannis Christodoulou
ah great thanks!

Ευχαριστώ πολύ,
   Ιωάννης Χριστοδούλου


On Fri, Mar 21, 2014 at 3:47 PM, Michael Anstis wrote:

> This has been fixed in the next release.
>
> You can download the sources and build locally if you want the fix sooner.
>
>
> On 21 March 2014 11:35, Ioannis Christodoulou wrote:
>
>> I tried to copy a guided decision table in kie workbench 6.0.1.Final
>> It created the new decision table, but the generated drl (which can be
>> viewed from the 'source' tab)
>> cannot be validated, because the generated rule names are the same with
>> the copied decision table.
>> For example, copying the guided decision table: guided_decision_table.gdst
>> to rules2.gdst will not change the generated rules names, they will still
>> be:
>> rule "Row 1 guided_decision_table".
>>
>> Is there something I can do about it ?
>>
>> ___
>> 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

Re: [rules-users] Not able to detect how to correct ERR 102

2014-03-21 Thread ankit3j
Yes Maxime, still the same error.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Not-able-to-detect-how-to-correct-ERR-102-tp4028884p4028897.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


Re: [rules-users] Not able to detect how to correct ERR 102

2014-03-21 Thread mfalaize
You're right Stephen I didn't see that the DSL was reformatted when I paste
it in the mail.

@ankit3j : Do you still have the same error ?



--
View this message in context: 
http://drools.46999.n3.nabble.com/Not-able-to-detect-how-to-correct-ERR-102-tp4028884p4028896.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


Re: [rules-users] cannot copy guided decision table

2014-03-21 Thread Michael Anstis
This has been fixed in the next release.

You can download the sources and build locally if you want the fix sooner.


On 21 March 2014 11:35, Ioannis Christodoulou  wrote:

> I tried to copy a guided decision table in kie workbench 6.0.1.Final
> It created the new decision table, but the generated drl (which can be
> viewed from the 'source' tab)
> cannot be validated, because the generated rule names are the same with
> the copied decision table.
> For example, copying the guided decision table: guided_decision_table.gdst
> to rules2.gdst will not change the generated rules names, they will still
> be:
> rule "Row 1 guided_decision_table".
>
> Is there something I can do about it ?
>
> ___
> 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] Performance of rules in Drools

2014-03-21 Thread Seb Geek
Hello,

I have a list of very similar rules executed in Drools and some performance
problems appear ... I want some advices to choose between two "direction"
in order to correct them ...

First the context :
I have to execute always the same check but with different level or
"parameters".
For example,
- in the first demand (rule for our client) i have to count and retrieve
the list all Article that have a family code equals to 'A', 'B' or 'C' and
execute the then clause only if there is 3 elements in the filtered list.
- in the second demand (rule for our client) i have to count and retrieve
the list all Article that have a family code equals to 'B' or 'C' and
execute the then clause only if there is 4 elements in the filtered list
and so on ...

The number of different group of parameter values and the values of theses
parameters will change over time ...

The question is : is it more efficient to implement a lot of different
rules, each with their parameter in the code OR is it more efficient to
implement only one rule with an additional object as a drools fact
containing different parameter's values ?

Thanks for your help
Sébastien
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Not able to detect how to correct ERR 102

2014-03-21 Thread ankit3j
I am using Drools Eclipse plugin which takes care of it. 



--
View this message in context: 
http://drools.46999.n3.nabble.com/Not-able-to-detect-how-to-correct-ERR-102-tp4028884p4028894.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


Re: [rules-users] How to allow non-programmers/non-Drools programmers to define rules

2014-03-21 Thread Wolfgang Laun
Here is a demo for a DSL development: Chapter 5 in
http://members.inode.at/w.laun/drools/DomainSpecificLanguages/DomainSpecificLanguages.pdf

-W




On 21/03/2014, Stephen Masters  wrote:
> DSL is essentially just templates which map phrases (which may look a bit
> like natural language) to DRL.
>
> DSLR is the actual rules and looks a bit like normal DRL, except that inside
> the 'when' and 'then' sections you tend to find phrases based on the DSL.
> This is the bit which could possibly be written by a fairly technical
> business user. However it's worth pointing out that it's pretty easy to make
> a mess of it.
>
> To help avoid problems, if you have Guvnor/Workbench, then the guided editor
> supports building rules based on DSL phrases. This means that users are
> forced to pick valid phrases and use text boxes and (assuming you set them
> up properly) drop-down menus to populate many of the variables. I have had
> operations and legal teams using this quite comfortably, given a little bit
> of training and some decent documentation.
>
> As an alternative, Paul King has done a number of presentations on using
> Groovy DSLs to build business rules. By using Groovy DSLs and an IDE, you
> get context sensitive help to generate the rules. It makes it easier to
> build up business-readable rules, although it's probably not a solution for
> business users to write the rules themselves. You could take a look at his
> slides here: http://www.slideshare.net/paulk_asert/groovy-rules
>
> But as Rich mentions, if you can express the rules in a table structure,
> then spreadsheets and (in Guvnor/Workbench) web decision tables are the way
> to go where possible.
>
> Steve
>
>
> On 21 Mar 2014, at 10:11, ankit3j  wrote:
>
>> I am a newbie to Drools and have been looking for a way to allow
>> non-programmers, mostly administrative guys, to define rules using a
>> simple
>> language format and minimum coding terms/effort. I came across the
>> concept
>> of DSL and DSLR and found it useful.
>>
>> However, it seems that to use DSL one needs to have a knowledge of
>> domain(Java) objects defined. Not only does it defeat the purpose it also
>> exposes my Java objects to users. DSLR seems to be a better alternative
>> which can be modified by user. But it seems that DSLR is derived from DSL.
>>
>>
>> Which one of these 2 should actually be defined/written by user and
>> uploaded
>> in the system so that backend can create rules based on it?
>>
>>
>>
>> --
>> View this message in context:
>> http://drools.46999.n3.nabble.com/How-to-allow-non-programmers-non-Drools-programmers-to-define-rules-tp4028875.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] Not able to detect how to correct ERR 102

2014-03-21 Thread ankit3j
That was the first thing I tried. Anyways, I tried it again and still doesn't
work.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Not-able-to-detect-how-to-correct-ERR-102-tp4028884p4028891.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


Re: [rules-users] Not able to detect how to correct ERR 102

2014-03-21 Thread Stephen Masters
Not sure whether you reformatted the DSL for the mailing list, but it’s worth 
pointing out that each phrase defined in the DSL needs to be on a single line.

This may have changed in a newer version of Drools (my DSL runs in 5.3), but 
DSL hasn’t been given much attention for a while, so I suspect not.

Steve


On 21 Mar 2014, at 13:22, Maxime Falaize  wrote:

> Try with this :
> 
> rule "hello rule"
> when
> There is a Customer with first name "David"
> then
> Greet Customer
> end
> 
> and this DSL :
> 
> 
> [condition][]There is a Customer with first name {name}=$customer :
> Customer(firstName == {name})
> [consequence][]Greet Customer=System.out.println("Hello " +
> $customer.getFirstName());
> -
> 
> 
> Of course your DSLR file is dependent of the DSL. Without the DSL, Drools 
> cannot guess what you want to do.
> 
> 
> 2014-03-21 14:12 GMT+01:00 ankit3j :
> Contents of Sample.dsl
> 
> [condition][]There is a Customer with first name "{name}"=$customer :
> Customer(firstName == {name})
> [consequence][]Greet Customer=System.out.println("Hello " +
> $customer.getFirstName());
> -
> 
> Personally, I don't think its dependent on DSL contents as I have not yet
> compiled anything. From my point of view, my DSLR file is still independent
> of whatever DSL I am using.
> 
> 
> 
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/Not-able-to-detect-how-to-correct-ERR-102-tp4028884p402.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
> 
> 
> 
> -- 
> Maxime FALAIZE
> ___
> 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] Not able to detect how to correct ERR 102

2014-03-21 Thread Maxime Falaize
Try with this :

rule "hello rule"
when
There is a Customer with first name "David"
then
Greet Customer
end

and this DSL :


[condition][]There is a Customer with first name {name}=$customer :
Customer(firstName == {name})
[consequence][]Greet Customer=System.out.println("Hello " +
$customer.getFirstName());
-


Of course your DSLR file is dependent of the DSL. Without the DSL, Drools
cannot guess what you want to do.


2014-03-21 14:12 GMT+01:00 ankit3j :

> Contents of Sample.dsl
>
> 
> [condition][]There is a Customer with first name "{name}"=$customer :
> Customer(firstName == {name})
> [consequence][]Greet Customer=System.out.println("Hello " +
> $customer.getFirstName());
>
> -
>
> Personally, I don't think its dependent on DSL contents as I have not yet
> compiled anything. From my point of view, my DSLR file is still independent
> of whatever DSL I am using.
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Not-able-to-detect-how-to-correct-ERR-102-tp4028884p402.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
>



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

Re: [rules-users] Not able to detect how to correct ERR 102

2014-03-21 Thread ankit3j
Contents of Sample.dsl 

[condition][]There is a Customer with first name "{name}"=$customer :
Customer(firstName == {name})
[consequence][]Greet Customer=System.out.println("Hello " +
$customer.getFirstName());
-

Personally, I don't think its dependent on DSL contents as I have not yet
compiled anything. From my point of view, my DSLR file is still independent
of whatever DSL I am using.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Not-able-to-detect-how-to-correct-ERR-102-tp4028884p402.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


Re: [rules-users] How to allow non-programmers/non-Drools programmers to define rules

2014-03-21 Thread Stephen Masters
DSL is essentially just templates which map phrases (which may look a bit like 
natural language) to DRL.

DSLR is the actual rules and looks a bit like normal DRL, except that inside 
the ‘when’ and ‘then’ sections you tend to find phrases based on the DSL. This 
is the bit which could possibly be written by a fairly technical business user. 
However it’s worth pointing out that it’s pretty easy to make a mess of it.

To help avoid problems, if you have Guvnor/Workbench, then the guided editor 
supports building rules based on DSL phrases. This means that users are forced 
to pick valid phrases and use text boxes and (assuming you set them up 
properly) drop-down menus to populate many of the variables. I have had 
operations and legal teams using this quite comfortably, given a little bit of 
training and some decent documentation.

As an alternative, Paul King has done a number of presentations on using Groovy 
DSLs to build business rules. By using Groovy DSLs and an IDE, you get context 
sensitive help to generate the rules. It makes it easier to build up 
business-readable rules, although it’s probably not a solution for business 
users to write the rules themselves. You could take a look at his slides here: 
http://www.slideshare.net/paulk_asert/groovy-rules

But as Rich mentions, if you can express the rules in a table structure, then 
spreadsheets and (in Guvnor/Workbench) web decision tables are the way to go 
where possible.

Steve


On 21 Mar 2014, at 10:11, ankit3j  wrote:

> I am a newbie to Drools and have been looking for a way to allow
> non-programmers, mostly administrative guys, to define rules using a simple
> language format and minimum coding terms/effort. I came across the concept
> of DSL and DSLR and found it useful. 
> 
> However, it seems that to use DSL one needs to have a knowledge of
> domain(Java) objects defined. Not only does it defeat the purpose it also
> exposes my Java objects to users. DSLR seems to be a better alternative
> which can be modified by user. But it seems that DSLR is derived from DSL. 
> 
> Which one of these 2 should actually be defined/written by user and uploaded
> in the system so that backend can create rules based on it?
> 
> 
> 
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/How-to-allow-non-programmers-non-Drools-programmers-to-define-rules-tp4028875.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] Not able to detect how to correct ERR 102

2014-03-21 Thread Maxime Falaize
The problem seems to be in the DSL file. Can you give us its contents ?


2014-03-21 12:47 GMT+01:00 ankit3j :

> Below is a sample DSLR code I am trying out. Now I am getting error in
> "when"
> block. After hours of trying to search for a solution I have not yet been
> able to detect the error.
>
> package com.sample
> import com.sample.*;
> //expander sample.dsl
> rule "hello rule"
> when
> There is a "$customer" with first name "David"  // This is
> where the error is
> then
> Greet Customer
> end
>
> [ERR 102] Mismatched input "is" in rule "hello rule"
>
> Any idea whats wrong with this line??
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Not-able-to-detect-how-to-correct-ERR-102-tp4028884.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
>



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

[rules-users] Not able to detect how to correct ERR 102

2014-03-21 Thread ankit3j
Below is a sample DSLR code I am trying out. Now I am getting error in "when"
block. After hours of trying to search for a solution I have not yet been
able to detect the error.

package com.sample
import com.sample.*;
//expander sample.dsl
rule "hello rule"
when
There is a "$customer" with first name "David"  // This is
where the error is
then
Greet Customer
end

[ERR 102] Mismatched input "is" in rule "hello rule"

Any idea whats wrong with this line?? 



--
View this message in context: 
http://drools.46999.n3.nabble.com/Not-able-to-detect-how-to-correct-ERR-102-tp4028884.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


Re: [rules-users] Configuring kie: namespace for Spring.

2014-03-21 Thread milen igrachev
Big thanks, it's working perfectly!
M.







  Оригинално писмо 

От:  kenneth.westeli...@telenet.be

Относно: Re: [rules-users] Configuring kie: namespace for Spring.

До: Rules Users List  

Изпратено на: Петък, 2014, Март 21 12:29:13 EET


This is what I have:



 

 http://www.springframework.org/schema/beans";  xmlns:xsi=" 
http://www.w3.org/2001/XMLSchema-instance";  xmlns:kie=" 
http://drools.org/schema/kie-spring";  xsi:schemaLocation="

http://www.springframework.org/schema/beans   
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 

http://drools.org/schema/kie-spring   " 
target="_blank">http://drools.org/schema/kie-spring.xsd";> 



 

 

 



 



- Original Message -

From: "milen igrachev"  igrac...@abv.bg >

To:  rules-users@lists.jboss.org 

Sent: Vrijdag 21 maart 2014 11:17:04

Subject: [rules-users] Configuring kie: namespace for Spring.





Hello, 





can someone please paste me his definition of the xmlns:kie in the spring 
configuration. 

I read the documentation and I got the configuration principles, but I cannot 
find the namespace 

definition in the net. A simple paste of the header xmlns:*/schemaLocation will 
be perfect. 





Thanks in advance! 

M. 

___

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

Re: [rules-users] How to allow non-programmers/non-Drools programmers to define rules

2014-03-21 Thread ankit3j
Thats a good point rjr201. Even I was looking to explore spreadsheet option a
little further. But the question then is how are spreadsheets
compiled/parsed into rules? Do they act as DSLs? As I want to keep it as a
code-free option for users, do I need to insert a parser to generate a DRL
file from spreadsheet? 



--
View this message in context: 
http://drools.46999.n3.nabble.com/How-to-allow-non-programmers-non-Drools-programmers-to-define-rules-tp4028875p4028883.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


Re: [rules-users] How to allow non-programmers/non-Drools programmers to define rules

2014-03-21 Thread Ankit Jain
Thats a good point rjr201. Even I was looking to explore spreadsheet option
a little further. But the question then is how are spreadsheets
compiled/parsed into rules? Do they act as DSLs? As I want to keep it as a
code-free option for users, do I need to insert a parser to generate a DRL
file from spreadsheet?



On Fri, Mar 21, 2014 at 5:06 PM, rjr201  wrote:

> DSL's are ok up to a point. However I've found it's sometimes easier to
> create very simple java classes and teach users the basics of the drools
> language.
>
> It's really down to the problem you are trying to solve.
>
> Have you looked into using spreadsheets? If you can fit your
> problem/solution into the spreadsheet format then I would strongly
> recommend
> you use that approach. Business users understand spreadsheets, and it
> reduces the risk of users making syntax/logic errors (spreadsheets
> essentially provide a template in which the user fills in parameters).
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/How-to-allow-non-programmers-non-Drools-programmers-to-define-rules-tp4028875p4028880.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] How to allow non-programmers/non-Drools programmers to define rules

2014-03-21 Thread rjr201
DSL's are ok up to a point. However I've found it's sometimes easier to
create very simple java classes and teach users the basics of the drools
language. 

It's really down to the problem you are trying to solve.

Have you looked into using spreadsheets? If you can fit your
problem/solution into the spreadsheet format then I would strongly recommend
you use that approach. Business users understand spreadsheets, and it
reduces the risk of users making syntax/logic errors (spreadsheets
essentially provide a template in which the user fills in parameters). 



--
View this message in context: 
http://drools.46999.n3.nabble.com/How-to-allow-non-programmers-non-Drools-programmers-to-define-rules-tp4028875p4028880.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] cannot copy guided decision table

2014-03-21 Thread Ioannis Christodoulou
I tried to copy a guided decision table in kie workbench 6.0.1.Final
It created the new decision table, but the generated drl (which can be
viewed from the 'source' tab)
cannot be validated, because the generated rule names are the same with the
copied decision table.
For example, copying the guided decision table: guided_decision_table.gdst
to rules2.gdst will not change the generated rules names, they will still
be:
rule "Row 1 guided_decision_table".

Is there something I can do about it ?
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Configuring kie: namespace for Spring.

2014-03-21 Thread kenneth . westelinck
This is what I have:


http://www.springframework.org/schema/beans"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:kie="http://drools.org/schema/kie-spring"; xsi:schemaLocation="
   http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
   http://drools.org/schema/kie-spring 
http://drools.org/schema/kie-spring.xsd";>







- Original Message -
From: "milen igrachev" 
To: rules-users@lists.jboss.org
Sent: Vrijdag 21 maart 2014 11:17:04
Subject: [rules-users] Configuring kie: namespace for Spring.


Hello, 


can someone please paste me his definition of the xmlns:kie in the spring 
configuration. 
I read the documentation and I got the configuration principles, but I cannot 
find the namespace 
definition in the net. A simple paste of the header xmlns:*/schemaLocation will 
be perfect. 


Thanks in advance! 
M. 
___
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] Configuring kie: namespace for Spring.

2014-03-21 Thread milen igrachev
Hello, 
  can someone please paste me his definition of the xmlns:kie in the spring 
configuration.
I read the documentation and I got the configuration principles, but I cannot 
find the namespace  definition in the net. A simple paste of the header 
xmlns:*/schemaLocation will be perfect.  
  Thanks in advance!  M. ___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] How to allow non-programmers/non-Drools programmers to define rules

2014-03-21 Thread ankit3j
I am a newbie to Drools and have been looking for a way to allow
non-programmers, mostly administrative guys, to define rules using a simple
language format and minimum coding terms/effort. I came across the concept
of DSL and DSLR and found it useful. 

However, it seems that to use DSL one needs to have a knowledge of
domain(Java) objects defined. Not only does it defeat the purpose it also
exposes my Java objects to users. DSLR seems to be a better alternative
which can be modified by user. But it seems that DSLR is derived from DSL. 

Which one of these 2 should actually be defined/written by user and uploaded
in the system so that backend can create rules based on it?



--
View this message in context: 
http://drools.46999.n3.nabble.com/How-to-allow-non-programmers-non-Drools-programmers-to-define-rules-tp4028875.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


Re: [rules-users] Want to post to this list

2014-03-21 Thread Mauricio Salatino
Hmm.. you are already posting to this list.. just send the questions :)


On Fri, Mar 21, 2014 at 10:01 AM, Ankit Jain  wrote:

> Hi,
>
> I am Ankit Jain, a newbie to Drools. In order to get my queries answered I
> would like to post to this mailing list.
>
> Regards
> Ankit
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
 - MyJourney @ http://salaboy.com 
 - Co-Founder @ http://www.jugargentina.org
 - Co-Founder @ http://www.jbug.com.ar

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

Re: [rules-users] Want to post to this list

2014-03-21 Thread Michael Anstis
You just did!

Feel free to post more.. and include your questions :)


On 21 March 2014 10:01, Ankit Jain  wrote:

> Hi,
>
> I am Ankit Jain, a newbie to Drools. In order to get my queries answered I
> would like to post to this mailing list.
>
> Regards
> Ankit
>
> ___
> 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] Want to post to this list

2014-03-21 Thread Ankit Jain
Hi,

I am Ankit Jain, a newbie to Drools. In order to get my queries answered I
would like to post to this mailing list.

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

Re: [rules-users] Drools UI inside JSF

2014-03-21 Thread Mauricio Salatino
Hi, as far as I know there is nothing, but it shouldn't be that difficult
to create.
You will need to build a bridge between JSF and GWT and try to embed some
bits of guvnor into your JSF app.
I strongly recommend you to take a look at the new version of the tooling
which will allow you to be more granular selecting the panels that you want
to include.


On Fri, Mar 21, 2014 at 9:22 AM, gigu979 wrote:

> Hi All,
>
> I've a web application developed in JSF.
> I need that my customers (the users) can define rules through this web
> interface.
>
> Is there any tag library or some way to translate the input data in the drl
> script???
>
> There is a way to use guvnor modules within a facelet??
>
> Thanks
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Drools-UI-inside-JSF-tp4028870.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
>



-- 
 - MyJourney @ http://salaboy.com 
 - Co-Founder @ http://www.jugargentina.org
 - Co-Founder @ http://www.jbug.com.ar

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

[rules-users] Drools UI inside JSF

2014-03-21 Thread gigu979
Hi All,

I've a web application developed in JSF.
I need that my customers (the users) can define rules through this web
interface.

Is there any tag library or some way to translate the input data in the drl
script???

There is a way to use guvnor modules within a facelet??

Thanks



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-UI-inside-JSF-tp4028870.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


Re: [rules-users] part time intern @ Red Hat

2014-03-21 Thread Bharadwaj N
I am interested. please let me know the full details.





Thanks,

Bharadwaj nakka.
Techlead at techmahindra.


On Thu, Mar 20, 2014 at 9:28 PM, Mark Proctor  wrote:

> I have a small budget for a part time intern for one year, 12K USD. The
> work can be 100% remote, from almost any country. This will mostly be UI
> work, improving our workbench.
>
> If this interests you, email me off list.
>
> Mark
> ___
> 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] Efficiency questions about DSL

2014-03-21 Thread mfalaize
Is it a deliberate choice to not include DSL files in the "same package" ?
If we are limited to the same folder (or same package), what do you think
about supporting inheritance in DSL files ? With this feature we could
provide to the community generic translation DSL files for many languages.

Sorry for the new questions ! :D
I'd like to help to develop but I don't want to make useless
contributions...


2014-03-20 20:19 GMT+01:00 manstis [via Drools] <
ml-node+s46999n402884...@n3.nabble.com>:

> So many questions
>
> I can comment on the workbench related aspects.
>
> The workbench only includes DSL files for authoring DSLR (or RDSLR) files
> that are in the same "folder" as the rule. I use the term "folder" as we
> don't support "same package" (which would imply if the same package existed
> in different JARs we'd include all DSL files - we do not).
>
> The "expander" keyword is, AFAIK, deprecated. DSL/DSLR expansion depends
> upon the files being in the same "folder".
>
> @Mario, @Mark, @Edson. Can you comment on whether KIE does handle DSL
> expansion across different JARs?
>
> Sent on the move
> On 18 Mar 2014 09:20, "mfalaize" <[hidden 
> email]>
> wrote:
>
>> Hi,
>>
>> I was wondering how to use efficiently DSL with my rules and I have
>> several
>> questions about it :
>>
>> - First, I have the impression that we can use DSL files only in the same
>> package of the DSLR file. When I tried to load DSL files by the
>> kmodule.xml
>> (specifying the different packages in the packages attribute of kbase) it
>> does not work. Do I have to load each DSL files programmatically or is
>> there
>> a way to load it automatically by the kmodule.xml (and if it is the case,
>> how can we handle the parsing order of these files ?) ?
>>
>> - An underlying question is is this a good practice to divide DSL files ?
>> I
>> would like to translate all my rules in french and to put the generic
>> translations in a unique DSL file to reuse it in all of my different DSLR
>> files.
>>
>> - I noted that we can use more than one DSL file for one DSLR file (it
>> works
>> at the runtime) but when it is the case the DRL viewer of the DSL rule
>> editor does not work and I don't have autocompletion. I tried to put
>> several
>> expander instructions but it fails. Is there a way to make it work ?
>>
>> I think DSL stuff is underestimate at this moment by the community and for
>> my last question I would like to know what is the future plans about this
>> feature ? Maybe I could help to develop it.
>>
>> Regards
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://drools.46999.n3.nabble.com/Efficiency-questions-about-DSL-tp4028774.html
>> Sent from the Drools: User forum mailing list archive at Nabble.com.
>> ___
>> rules-users mailing list
>> [hidden email] 
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
> ___
> rules-users mailing list
> [hidden email] 
> 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/Efficiency-questions-about-DSL-tp4028774p4028841.html
>  To unsubscribe from Efficiency questions about DSL, click 
> here
> .
> NAML
>



-- 
Maxime FALAIZE




--
View this message in context: 
http://drools.46999.n3.nabble.com/Efficiency-questions-about-DSL-tp4028774p4028867.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

Re: [rules-users] Updating project repositories

2014-03-21 Thread Toni Rikkola
And Mario bounced it back into Workbench ;)

We do our deployment here.

https://github.com/droolsjbpm/guvnor/blob/master/guvnor-m2repo-editor/guvnor-m2repo-editor-backend/src/main/java/org/guvnor/m2repo/backend/server/GuvnorM2Repository.java#L197

First we install into the local. The computer where the workbench is
running.

Then we deploy into the repository that is inside the Workbench.

And then we ignore anything that is set up in the pom.xml.

Toni

On pe, 2014-03-21 at 08:58 +0200, Toni Rikkola wrote:
> Hi Joe,
> 
> What we do in the Workbench is just editing the pom.xml with our
> editor. 
> 
> Since the problem happens during Build & Deploy, I'm tempted to say the
> problem is in Drools core. We just pass the pom.xml as it is for the
> core codes and let them handle all the Maven tasks. 
> 
> I'll check with Mario if this is a bug or if we have set the build up
> wrong.
> 
> Toni
> 
> On to, 2014-03-20 at 22:07 +, Joe White wrote:
> > Thanks Mike. I’ll take a look.
> > 
> >  
> > 
> > From: rules-users-boun...@lists.jboss.org
> > [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Michael
> > Anstis
> > Sent: Thursday, March 20, 2014 4:03 PM
> > To: Rules Users List
> > Subject: Re: [rules-users] Updating project repositories
> > 
> >  
> > 
> > The workbench attempts an install and deploy. GuvnorM2Repository in
> > the guvnor project is the class (IIRC).
> > 
> > Sent on the move
> > 
> > On 20 Mar 2014 21:47, "Joe White"  wrote:
> > 
> > In fact, if I manually go into the guvnor repository, copy the
> > pom.xml directly from the workbench, and command line run “mvn
> > deploy” the jar gets pushed out to my remote repository. So I
> > know for sure the pom is configured correctly in the workbench
> > 
> >  
> > 
> > Is the workbench actually calling “deploy” or just “install” ?
> > Where in the code would be a good starting point to dig a
> > little deeper on this?
> > 
> >  
> > 
> > From:rules-users-boun...@lists.jboss.org
> > [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Joe
> > White
> > Sent: Thursday, March 20, 2014 3:15 PM
> > To: Rules Users List
> > Subject: Re: [rules-users] Updating project repositories
> > 
> > 
> >  
> > 
> > I’ve got distribution management that matches my settings xml
> > added to the pom but it doesn’t seem to connect (or to attempt
> > to connect)
> > 
> >  
> > 
> > 
> > 
> > 
> > 
> >   recondo-repo
> > 
> > 
> > 
> > http://papaafrepo001.recondo.vci:8081/artifactory/recondo-release
> > 
> > 
> > 
> > 
> > 
> >   recondo-repo
> > 
> > 
> > 
> > http://papaafrepo001.recondo.vci:8081/artifactory/recondo-snapshot
> > 
> > 
> > 
> >   
> > 
> >  
> > 
> >  
> > 
> >  
> > 
> > From:rules-users-boun...@lists.jboss.org
> > [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of
> > Michael Anstis
> > Sent: Thursday, March 20, 2014 2:56 PM
> > To: Rules Users List
> > Subject: Re: [rules-users] Updating project repositories
> > 
> >  
> > 
> > That depends how you're configuring your project's
> > distribution management.
> > 
> > Adding (I assume) your remote to the repositories section is
> > only telling maven a remote to query to *download* artifacts.
> > 
> > Sent on the move
> > 
> > On 20 Mar 2014 20:41, "Joe White" 
> > wrote:
> > 
> > So if I change the configuration in the WB UI should I
> > expect the jar to end up in my remote repo? It is only
> > ending up in my local repository.
> > 
> >  
> > 
> > From:rules-users-boun...@lists.jboss.org
> > [mailto:rules-users-boun...@lists.jboss.org] On Behalf
> > Of Michael Anstis
> > Sent: Thursday, March 20, 2014 1:10 PM
> > To: Rules Users List
> > Subject: Re: [rules-users] Updating project
> > repositories
> > 
> >  
> > 
> > I've asked a colleague to comment. 
> > 
> > We do manipulate the pom for the UI but should retain
> > original content that is not modified by the Project
> > Editor.
> > 
> > @Toni... What's your opinion?
> > 
> > Sent on the move
> >