Re: [rules-users] Complicated Issue

2012-12-27 Thread ayonchak
How did you fix it please let us know as I am also facing this issue. My
JBoss is using 1.6 Java but still Iam facing issue with  1356537043559
BEA-101216 Servlet: AppLogInvoker failed to preload on startup in Web
application: grpltcAppWiz.war.
java.lang.UnsupportedClassVersionError: unsupported classversion 50.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
org.drools.rule.JavaDialectRuntimeData$PackageClassLoader.fastFindClass(JavaDialectRuntimeData.java:570)
at
org.drools.util.CompositeClassLoader$CachingLoader.load(CompositeClassLoader.java:258)
at
org.drools.util.CompositeClassLoader$CachingLoader.load(CompositeClassLoader.java:241)
at
org.drools.util.CompositeClassLoader.loadClass(CompositeClassLoader.java:88)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at
org.drools.rule.MVELDialectRuntimeData.getParserConfiguration(MVELDialectRuntimeData.java:259)
at
org.drools.base.mvel.MVELCompilationUnit.getCompiledExpression(MVELCompilationUnit.java:208)
at
org.drools.base.mvel.MVELConsequence.compile(MVELConsequence.java:74)
at
org.drools.rule.MVELDialectRuntimeData.onBeforeExecute(MVELDialectRuntimeData.java:162)
at
org.drools.rule.DialectRuntimeRegistry.onBeforeExecute(DialectRuntimeRegistry.java:138)
at
org.drools.common.AbstractRuleBase.addPackages(AbstractRuleBase.java:511)
at
org.drools.reteoo.ReteooRuleBase.addPackages(ReteooRuleBase.java:458)
at
org.drools.impl.KnowledgeBaseImpl.addKnowledgePackages(KnowledgeBaseImpl.java:150)
at
org.drools.agent.impl.KnowledgeAgentImpl.addResourcesToKnowledgeBase(KnowledgeAgentImpl.java:1016)
 



--
View this message in context: 
http://drools.46999.n3.nabble.com/Complicated-Issue-tp4020175p4021309.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] How to Use functions in Web-Guided Editor

2012-10-17 Thread ayonchak
Hi All,

I am facing some problem when migrating from excel-based drools to Drools
Guvnor. Suppose we are using some function in the Conditions and Actions of
excel. But how to write them in Guvnor as in Guvnor I can only get the value
of the condition and set the value of the variable in action. Then I can
manipulate the value in code. But is there any option of doing that in Rule? 

Like I am using this in an action of excel based Drools - 

long mnthlyBnft=$1*1L;
if(planRule.getMonthlyBnftList().size() == 0)
  {
 do
{ 
 planRule.getMonthlyBnftList().add(mnthlyBnft);
 mnthlyBnft = mnthlyBnft + $3;
}while(mnthlyBnft=$2);
}

In the values I am giving 3 comma-separated values for $1, $2 and $3.

How to do the same in Guvnor? I saw the new function option in Guvnor but
didn't find anywhere how to use that in Web-Guide based decision table rule.
Please help me. Thanks!

Ayon



--
View this message in context: 
http://drools.46999.n3.nabble.com/How-to-Use-functions-in-Web-Guided-Editor-tp4020324.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 Use functions in Web-Guided Editor

2012-10-17 Thread ayonchak
Hi Mike,

Thanks for your reply.

I am using Drools 5.3 ..Is there anything like that in this version? Or I
need to upgrade to 5.4 version?

Ayon



--
View this message in context: 
http://drools.46999.n3.nabble.com/How-to-Use-functions-in-Web-Guided-Editor-tp4020324p4020326.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] reloadKnowledgeBase java.lang.NullPointerException

2011-08-30 Thread ayonchak
Hi All,

I am getting Nullpointer exception the application is trying to
reloadKnwledgeBase. I have the following code in application.

public void init() {
logger.info(Group Rule Engine Initiated..!!);
/**
 * Polling interval needs to be externalized
 */
 
knowledgeAgent = 
KnowledgeAgentFactory.newKnowledgeAgent(FiveSeries);
knowledgeAgent.applyChangeSet(ResourceFactory
.newFileResource(propertyReader

.getProperty(DROOLS_GUVNOR_CHAGNE_SET_XML_PATH)));

ResourceFactory.getResourceChangeScannerService().start();
ResourceFactory.getResourceChangeNotifierService().start();

if (knowledgeAgent != null  
knowledgeAgent.getKnowledgeBase()!=null 
!knowledgeAgent.getKnowledgeBase().getKnowledgePackages().isEmpty()) {
knowledgeBase = knowledgeAgent.getKnowledgeBase();
}
logger.info(Group Rule Engine is ready to use..!!);
}

public void reloadKnowledgeBase() {
if (knowledgeAgent != null  
knowledgeAgent.getKnowledgeBase()!=null 
!knowledgeAgent.getKnowledgeBase().getKnowledgePackages().isEmpty()) {
knowledgeBase = knowledgeAgent.getKnowledgeBase();
logger.debug(KnowledgeBase reloaded..!!);
} else {
logger.info(KnowledgeBase not reloaded..!!);

ResourceFactory.getResourceChangeScannerService().stop();

ResourceFactory.getResourceChangeNotifierService().stop();
init(); 
}
}

reloadKnowledgeBase() is called once in application during Login. The
problem is occurring in Development application. When I am using that
Change-Set.xml in my local application, it is working perfectly fine. I m
not getting the problem. I bounced both Jboss and application servers but
still no luck! 

--
View this message in context: 
http://drools.46999.n3.nabble.com/reloadKnowledgeBase-java-lang-NullPointerException-tp3295019p3295019.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