Re: [rules-dev] rules-dev Digest, Vol 40, Issue 4
by Mohamed Ben ayed
Hi,
yes I tried to compile GWT but the problem is in "gwttasks.jar"
2010/4/12 <rules-dev-request(a)lists.jboss.org>
> Send rules-dev mailing list submissions to
> rules-dev(a)lists.jboss.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.jboss.org/mailman/listinfo/rules-dev
> or, via email, send a message with subject or body 'help' to
> rules-dev-request(a)lists.jboss.org
>
> You can reach the person …
[View More]managing the list at
> rules-dev-owner(a)lists.jboss.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of rules-dev digest..."
>
>
> Today's Topics:
>
> 1. (no subject) (Mohamed Ben ayed)
> 2. Rule flow : Human Task and Tomcat Restart (KiranP)
> 3. Re: (no subject) (Esteban Aliverti)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 12 Apr 2010 09:13:16 +0200
> From: Mohamed Ben ayed <mohamed.ensi(a)gmail.com>
> Subject: [rules-dev] (no subject)
> To: rules-dev(a)lists.jboss.org
> Message-ID:
> <s2l64b949ad1004120013mb07c2fe8x429287faa676c0b7(a)mail.gmail.com>
> Content-Type: text/plain; charset="windows-1252"
>
> Hi,
>
>
>
> I am working with drools (and drools Guvnor) in France, so I would like to
> translate Guvnor into frensh.
>
> I create a properties file (constants_fr_FR.properties) and I translated
> some words, when I package my application with ?mvn clean package? I have a
> war file but when I deploy it into JBoss server I don?t find any changes (I
> put ?locale=fr_FR) .
>
>
>
> I found some html files that contain javascript with English world like the
> properties file
>
>
>
> Any idea please
>
>
>
> Thanks
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.jboss.org/pipermail/rules-dev/attachments/20100412/7c1f55a7/...
>
> ------------------------------
>
> Message: 2
> Date: Sun, 11 Apr 2010 23:28:39 -0800 (PST)
> From: KiranP <phadatarekiran(a)gmail.com>
> Subject: [rules-dev] Rule flow : Human Task and Tomcat Restart
> To: rules-dev(a)lists.jboss.org
> Message-ID: <1271057319674-712858.post(a)n3.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
>
> I have a use case where i have a rule flow which has many HT's
> the problem is the web application i m creating is in continual update
> process
> hence it is required to be restarted again and again ...........
> but whenever i restart the server and complete some the human task which
> was created before restart would not resume the flow....
>
> I later discovered that it was b'coz of the WSHumanTaskHandler class i used
> internally
> creates a call back to some other method but when u restart the app-server
> the handler
> itself is destroyed.........hence the call back is not done...
>
> how i implemented...
>
> i start the task server externally on windows machine......simply >>>>java
> StartTaskServer
> where in StartTaskServer just start the thread of MinaTaskServer
>
> then i start my app-server(Tomcat in this case) which loads up my
> application
>
> then through my application i create a process........
>
> this process contain human Tasks(say A,B,C) and which can be completed at
> this time
>
> but now if i would restart the App-server......none of my HT(A,B,C) can be
> completed
>
> thanks,
>
> -----
> Keep Working >>
> KiranP
> --
> View this message in context:
> http://n3.nabble.com/Rule-flow-Human-Task-and-Tomcat-Restart-tp712858p712...
> Sent from the Drools - Dev mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 12 Apr 2010 08:33:19 -0300
> From: Esteban Aliverti <esteban.aliverti(a)gmail.com>
> Subject: Re: [rules-dev] (no subject)
> To: Rules Dev List <rules-dev(a)lists.jboss.org>
> Message-ID:
> <z2g61486a891004120433v7240ef32x1e9bc25e16e43aa8(a)mail.gmail.com>
> Content-Type: text/plain; charset="windows-1252"
>
> Have you tried compiling the GWT code? There is a build.xml ant file in
> guvnor's root directory.
>
> Best,
>
> On Mon, Apr 12, 2010 at 4:13 AM, Mohamed Ben ayed <mohamed.ensi(a)gmail.com
> >wrote:
>
> > Hi,
> >
> >
> >
> > I am working with drools (and drools Guvnor) in France, so I would like
> to
> > translate Guvnor into frensh.
> >
> > I create a properties file (constants_fr_FR.properties) and I translated
> > some words, when I package my application with ?mvn clean package? I have
> a
> > war file but when I deploy it into JBoss server I don?t find any changes
> (I
> > put ?locale=fr_FR) .
> >
> >
> >
> > I found some html files that contain javascript with English world like
> the
> > properties file
> >
> >
> >
> > Any idea please
> >
> >
> >
> > Thanks
> >
> >
> >
> > _______________________________________________
> > rules-dev mailing list
> > rules-dev(a)lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-dev
> >
> >
>
>
> --
> XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
>
> Esteban Aliverti
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.jboss.org/pipermail/rules-dev/attachments/20100412/d5323932/...
>
> ------------------------------
>
> _______________________________________________
> rules-dev mailing list
> rules-dev(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>
> End of rules-dev Digest, Vol 40, Issue 4
> ****************************************
>
--
Codialement
Mohamed BEN AYED
[View Less]
14 years, 11 months
Rule flow : Human Task and Tomcat Restart
by KiranP
I have a use case where i have a rule flow which has many HT's
the problem is the web application i m creating is in continual update
process
hence it is required to be restarted again and again ...........
but whenever i restart the server and complete some the human task which
was created before restart would not resume the flow....
I later discovered that it was b'coz of the WSHumanTaskHandler class i used
internally
creates a call back to some other method but when u restart the app-…
[View More]server
the handler
itself is destroyed.........hence the call back is not done...
how i implemented...
i start the task server externally on windows machine......simply >>>>java
StartTaskServer
where in StartTaskServer just start the thread of MinaTaskServer
then i start my app-server(Tomcat in this case) which loads up my
application
then through my application i create a process........
this process contain human Tasks(say A,B,C) and which can be completed at
this time
but now if i would restart the App-server......none of my HT(A,B,C) can be
completed
thanks,
-----
Keep Working >>
KiranP
--
View this message in context: http://n3.nabble.com/Rule-flow-Human-Task-and-Tomcat-Restart-tp712858p712...
Sent from the Drools - Dev mailing list archive at Nabble.com.
[View Less]
14 years, 11 months
Drools OSGi issue
by shelly handa
Hi,
I am trying to integrate the drools with OSGi.
I have included all the drools dependencies in pom.xml.
In error stack trace it says error about ruleMemo field present
antler osgified jar.
"ruleMemo" field lies in org.antlr.runtime.RecognizerSharedState class.
can any body help me.
Regards,
Shelly
I am getting the following error:
java.lang.NoSuchFieldError: ruleMemo
at org.drools.lang.DRLLexer.<init>(DRLLexer.java:96)
at org.drools.compiler.DrlParser.getParser(…
[View More]DrlParser.java:207)
at org.drools.compiler.DrlParser.parse(DrlParser.java:60)
at
org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:165)
at
com.openwave.neptune.drools.workflow.internal.RuleCreator.createRule(RuleCreator.java:33)
at
com.openwave.neptune.drools.workflow.internal.ExampleBeanImpl.start(ExampleBeanImpl.java:66)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1529)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1468)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1398)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416)
at
org.springframework.test.AbstractSingleSpringContextTests.createApplicationContext(AbstractSingleSpringContextTests.java:243)
at
org.springframework.test.AbstractSingleSpringContextTests.loadContextLocations(AbstractSingleSpringContextTests.java:212)
at
org.springframework.test.AbstractSingleSpringContextTests.loadContext(AbstractSingleSpringContextTests.java:187)
at
org.springframework.test.AbstractSpringContextTests.getContext(AbstractSpringContextTests.java:140)
at
org.springframework.test.AbstractSingleSpringContextTests.setUp(AbstractSingleSpringContextTests.java:100)
at junit.framework.TestCase.runBare(TestCase.java:128)
at
org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:76)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
[View Less]
14 years, 11 months
refactoring drools
by Franz Schwab
Hi,
I'm a computer science student and am writing the related-work part for
my diploma thesis and would be interested in (scientific) papers or
information about refactoring or transformation possibilities which can
be done with drools / jboss rules in order to improve design of a
knowledge base or simply to delete bad smells. I have to admit that I
never worked with drools, as I said I just need that for the
related-work part.
Could you please give me some hints?
Thanks,
Franz
14 years, 11 months
Drools + Spring
by Abu Rasheed
Are there any plans to have Spring support in drools-api? The last mail that
I saw in searching the topic is dated last year, and there are no new
postings related to this.
Does anyone have any success in injecting KnowledgeBase into their apps
using Spring? Is there any examples out there that I can refer to?
Thanks
14 years, 11 months
Goodbye Conflict Resolution Strategy, Hello Rule Dependency Meta Rules
by Mark Proctor
http://blog.athico.com/2010/04/goodbye-conflict-resoltuion-strategy.html
------------
Goodbye Conflict Resolution Strategy, Hello Rule Dependency Meta
Rules
<http://blog.athico.com/2010/04/goodbye-conflict-resoltuion-strategy.html>
I've added a new section to the Drools Language Enhancement
<http://community.jboss.org/wiki/DroolsLanguageEnhancements> ideas wiki
page discussing meta-rules to help declaratively control rule ordering.
Here is what I have so far,…
[View More] feedback welcome, you can find the original
content here
<http://community.jboss.org/wiki/DroolsLanguageEnhancements#Field_Versioning>.
Rule Dependency Meta-Rule Language
When a terminal node is matched instead of adding the Activation to the
agenda it inserts it into the WorkingMemory. We have a special builder
that allows easy access to the contents.
All declarations are typed fields for the Activation fact, based on the
"name" field. So the name field is mandatory. All FactHandles are
available via an array accessor, which has type inference for the
element being used. We also all bindings on the Activation fact to work
this way too. Act is used for compactness, we'll allow that to be
optionally user defined:
act1 : Act( someDeclaration == X, fact[0] == Y )
act2 : Act( someDeclaration.value > act1.someDeclaration.value )
Normal facts can also be matched. The RHS of the rule is side effect
free, you cannot modify or insert facts; this allows the RHS to execute
as soon as it's matched. What you can do is setup rule dependencies -
where one rule blocks another:
act1.blockedBy( act2 ).until( Fired )
act1.blockedBy( act2 ).until( IsFalse )
We can even allow facts to block:
act1.blockedBy( someFact )
This means the act1 activation is blocked until a rule executes:
act1.unblockedBy( someFact )
We can probably add an override, something like:
act1.unblockAll()
Only when an Activation is no longer blocked will it be placed on the
Agenda as normal.
If an activation on the agenda has not yet fired and something attempts
to block it, it will be removed from the agenda until it is no longer
blocked.
For this to be effective, especially for large systems, it will need to
be combined with design time authoring help.
This work will be eventually be combined with further enhancements to
help with parallel execution, in resulting conflicts, see the "Parellel
Meta-Rule Language" heading.
[View Less]
14 years, 12 months