Setting rule properties via guvnor
by GPatel@tsys.com
Is there a way to set the rule-flow group of a rule via the guvnor UI?
Thanks
GP
-----------------------------------------
The information contained in this communication (including any
attachments hereto) is confidential and is intended solely for the
personal and confidential use of the individual or entity to whom
it is addressed. If the reader of this message is not the intended
recipient or an agent responsible for delivering it to the intended
recipient, you are hereby notified that you have received this
communication in error and that any review, dissemination, copying,
or unauthorized use of this information, or the taking of any
action in reliance on the contents of this information is strictly
prohibited. If you have received this communication in error,
please notify us immediately by e-mail, and delete the original
message. Thank you
13 years, 11 months
Unable to validate package configuration (eg, DSLs, models) for [package name]
by John Peterson
Hi,
We recently upgraded from Drools/Guvnor 5.0.1 to 5.1.1 (early December).
We had an existing package we had developed in 5.0.1 that we had not
done much with since the upgrade. This morning, we tried to open one of
the rules in that package and we get the following messages:
<<Picture (Device Independent Bitmap)>>
Unable to validate package configuration (eg, DSLs, models) for [package
name]. Suggestion completions may not operate correctly for graphical
editors for this package.
<<Picture (Device Independent Bitmap)>>
Unable to get content assistance for this rule.
<<Picture (Device Independent Bitmap)>>
Unable to get content assistance for this rule.
I've tried to re-upload the 3 jar files (I saw this post as a possible
solution: http://comments.gmane.org/gmane.comp.java.drools.user/23407),
but I get "Unable to upload the file". New packages seem to be okay
(e.g. packages created since the upgrade). Does anyone have any
thoughts on what's going on here?
Thanks.
13 years, 11 months
Upload an existing .drl for the Guvnor dynamically
by Vandewilly
Is there any api available that allows me to load an existing file drl for
the Guvnor repository. In my case, I can not upload through the web
interface, only in a dynamic way through a java class.
--
Vandewilly Oliveira
13 years, 11 months
StatefulKnowledgeSession.startProcess not thread-safe ?
by OptimusPrime
Hello,
I wrote a micro benchmark in order to test the performance of Drools Flow
5.1.0 in single and multi-threaded environments.
And I noticed that, when 2 threads call startProcess() at the same time
(Intel Core 2 Duo CPU), the returned process instance IDs are the same.
I checked the code and it seems there is no locking mechanism in the
org.drools.process.instance.impl.DefaultProcessInstanceManager class for the
id creation.
Is this a bug or am I missing something ?
Thanks
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/StatefulKnowledgeSess...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 11 months
Exception while loading session from JPA store
by jawa
Hi,
I've got a drools application running with EJB3 and JBoss 5.1. It works fine
but most of the times it throws exception while trying to load drools
session from JPA. My flow has got user tasks so it stops at places and get
stored in db using JPA. Then I try to load it by providing the session id
which does exist in database but it fails to load with following exception:
Caused by: Could not commit session
2010-12-21 00:47:16,453 ERROR [STDERR] (pool-37-thread-1)
java.lang.IllegalStateException: Wrong tx on thread: expected
TransactionImple < ac, BasicAction: a64360d:8184:4d0ff52a:18d status:
ActionStatus.ABOR
TED >, actual null
2010-12-21 00:47:16,453 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:157)
2010-12-21 00:47:16,453 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:190)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.ejb3.security.Ejb3AuthenticationInterceptorv2.invoke(Ejb3AuthenticationInterceptorv2.java:186)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:41)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.ejb3.BlockContainerShutdownInterceptor.invoke(BlockContainerShutdownInterceptor.java:67)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:421)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:85)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)
2010-12-21 00:47:16,454 ERROR [STDERR] (pool-37-thread-1) at
$Proxy678.invoke(Unknown Source)
Does anyone know how to get around this issue?
Thanks
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Exception-while-loadi...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 11 months
DataBase Configuration for Drools
by wasim.khan318
Hi every body i am new to Drools section . What i want to achive in drool
let me axplain with example.
When
Price==$price
then
// some code
what we are trying to do is some how value of $price comes from
database.rather hard coding it
what i have did
1. Using jboss developer studio for developing Drool Application
2. Using MySql DataBase
3. My Class File
public static class Applicant {
//public static final int HELLO = 0;
//public static final int GOODBYE = 1;
private String Name;
private int Price;
//private String message;
//private int status;
public String getName()
{
return this.Name;
}
public void setName( String name)
{
this.Name=name;
}
public int getPrice()
{
return this.Price;
}
public void setPrice(int price)
{
this.Price=price;
}
public String GetData()
{
String p=null;
Connection con = null;
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
con = DriverManager.getConnection("my connection info ");
if(!con.isClosed())
System.out.println("Successfully connected to " +
"MySQL server using TCP/IP...");
} catch(Exception e) {
System.err.println("Exception: " + e.getMessage());
} finally {
}
try{
Statement smt=con.createStatement();
ResultSet rs=smt.executeQuery("select ItenPrice from Item Where
ItemId= 1");
while(rs.next())
{
p=rs.getString("ItenPrice");
}
}
catch(Exception a)
{
System.err.println("Exception: " + a.getMessage());
}
return p;
}
public void GetNewdata(Applicant Ap)
{
Ap.GetData();
}
/*
public String getMessage() {
return this.message;
}
public void setMessage(String message) {
this.message = message;
}
public int getStatus() {
return this.status;
}
public void setStatus(int status) {
this.status = status;
}*/
}
4. My drools File
package com.sample
import com.sample.DroolsTest.Applicant;
rule "Hello World"
when
A:Applicant( price<20 )
then
String a=A.GetData();
System.out.println( a );
end
5. what i want in when section insted of writing 20 i can write GetData()
which is returning value from data base, it is working fine in then section
but firing error in when section
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/DataBase-Configuratio...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 11 months
Deploying Guvnor 5.1 on Glassfish v3
by alim
Hello,
I downloaded Guvnor, web based BRMS (WAR) Version 5.1 and tried to deploy it
on Glassfish v3.
Unfortunately without success.
To be more specific:
I put "drools-5.1.1-guvnor.war" into
{glassfish_home}\domains\{configuration}\autodeploy and started Glassfish
within Eclipse 3.5, using Java 6.
I get following error:
Exception while invoking class org.glassfish.ejb.startup.EjbDeployer load
method
java.lang.RuntimeException: Unable to load EJB module. DeploymentContext
does not contain any EJB Check archive to ensure correct packaging for
C:\glassfishv3\glassfish\domains\domain1\applications\drools-5.1.1-guvnor
at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:133)
at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:63)
at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:175)
at
org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:216)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:310)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
at
org.glassfish.deployment.autodeploy.AutoOperation.run(AutoOperation.java:141)
at
org.glassfish.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:573)
at
org.glassfish.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:459)
at
org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:391)
at
org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:376)
at
org.glassfish.deployment.autodeploy.AutoDeployService$1.run(AutoDeployService.java:195)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Exception while loading the app
java.lang.RuntimeException: Unable to load EJB module. DeploymentContext
does not contain any EJB Check archive to ensure correct packaging for
C:\glassfishv3\glassfish\domains\domain1\applications\drools-5.1.1-guvnor
at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:133)
at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:63)
at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:175)
at
org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:216)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:310)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
at
org.glassfish.deployment.autodeploy.AutoOperation.run(AutoOperation.java:141)
at
org.glassfish.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:573)
at
org.glassfish.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:459)
at
org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:391)
at
org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:376)
at
org.glassfish.deployment.autodeploy.AutoDeployService$1.run(AutoDeployService.java:195)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
WARNING: [AutoDeploy] Autodeploy failed :
C:\glassfishv3\glassfish\domains\domain1\autodeploy\drools-5.1.1-guvnor.war.
INFO: [AutoDeploy] Selecting file
C:\glassfishv3\glassfish\domains\domain1\autodeploy\drools-5.1.1-guvnor.war
for autodeployment.
I've already tried the hints I found on Google such as changing the web.xml
to reference 2.5 schema. Didn't work.
Hope someone can help me.
Thanks a lot!
Audrey
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Deploying-Guvnor-5-1-...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 11 months