Insert a fact into drools server from a web application or java application
by kkelleyjr
Ok, I have read the documentation like a million times. I have looked at all
the examples. Yet I still can not figure out how to add a fact to the drools
server ksession1 from a web application or a java application. I have got
the server to work. I have even got the soapUI to work. now I want to add a
fact from my own client.
My issue is that I need to add a facts that has maps and list in the pojo.
how can I just add the pojo to the ksession1? Is there an example that is
out there that I have not found?
It seems simple, but I just do not understand... can someone provide some
additional help, please?
--
View this message in context: http://drools.46999.n3.nabble.com/Insert-a-fact-into-drools-server-from-a...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 6 months
Upgrade from jbpm 5.1 to 5.2
by houghvw
Hi,
I am looking for documentation to upgrade from drools jbpm 5.1 to 5.2. It
seems that the variable persistence strategies have been replaced with a
object marshaling strategy architecture. I can't find documentation
regarding this.
I am using jpa persistence for my flow state. Is there some sort of
migration script to migrate the jbpm domain model from 5.1 to 5.2.
Regards
Hough
--
View this message in context: http://drools.46999.n3.nabble.com/Upgrade-from-jbpm-5-1-to-5-2-tp3277185p...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 6 months
Websphere 7.0 and Drools Guvnor 5.2 Integration
by hpham1067
I've Guvnor working with Websphere 7.0 pretty well. That said, I've having
problem using JAAS with WebsPhere WSLogin login implementation module, i.e.
com.ibm.ws.security.common.auth.module.WSLoginModuleImpl. It seems that
Guvnor will accept the any user authentication if you specify a blank
password at the login screen. If you type in a wrong password in it work as
expected but a blank or no password Guvnor will let the user login no
question ask. Has anyone encounter this issue. Thanks in advance for your
help.
- Henry
--
View this message in context: http://drools.46999.n3.nabble.com/Websphere-7-0-and-Drools-Guvnor-5-2-Int...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 6 months
Are if/then rules possible?
by Matthew Erler
In Drools 5 is it possible for a rule to call one of two specific rules depending on whether the condition in the first rule evaluates to true or false? For example lets say that there are three rules: A, B, and C. A is evaluated and if its condition is True then execute rule B, otherwise execute rule C. B and C must not be executed on their own , but only by A. I haven't been able to find and examples or tutorials on this so if it's possible an example would be greatly appreciated. Thank you.
14 years, 6 months
Re: [rules-users] DroolsCompilerAntTask task to build jBPM5 package
by lhorton
that class is in drools-compiler-5.2.0.Final.jar
I set up my path using pathelement instead of fileset, and compile worked
with these jars (droolsPath is of course set for my own environment):
<path id="drools.classpath" >
<pathelement location="${droolsPath}/drools-ant-5.2.0.Final.jar" />
<pathelement location="${droolsPath}/knowledge-api-5.2.0.Final.jar" />
<pathelement location="${droolsPath}/drools-core-5.2.0.Final.jar" />
<pathelement location="${droolsPath}/drools-compiler-5.2.0.Final.jar" />
<pathelement
location="${droolsPath}/drools-decisiontables-5.2.0.Final.jar" />
<pathelement location="${droolsPath}/drools-templates-5.2.0.Final.jar" />
<pathelement location="${droolsPath}/antlr-2.7.7.jar" />
<pathelement location="${droolsPath}/antlr-3.3.jar" />
<pathelement location="${droolsPath}/antlr-runtime-3.3.jar" />
<pathelement location="${droolsPath}/ecj-3.5.1.jar" />
<pathelement location="${droolsPath}/jxl-2.6.10.jar" />
<pathelement location="${droolsPath}/mvel2-2.1.0.drools2.jar" />
</path>
--
View this message in context: http://drools.46999.n3.nabble.com/DroolsCompilerAntTask-task-to-build-jBP...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 6 months
Guvnor 5.2 calling methods from service..
by pamerida
Hi everyone, Im trying to call a method of a service in the LHS Im using
Guvnor 5.2, but in the drop down menu I cant see all the methods declared on
the service...
http://drools.46999.n3.nabble.com/file/n3275884/method.jpg
my service code is this
public class RulesSvcImpl implements RulesSvc {
protected Crud crud;
protected Finder finder;
public GlnNaviera findGlnNavieraByCodigoInterno(String pCodigo
) throws FinderException {
DetachedCriteria criteria =
DetachedCriteria.forClass(GlnNaviera.class);
if (StringUtils.isEmpty(pCodigo))
throw new FinderException("El Codigo Interno
ingresado esta vacio.");
criteria.add(Restrictions.eq("codigoInterno", pCodigo));
criteria.add(Restrictions.eq("estatus", "A"));
Collection result = finder.findByCriteria(criteria);
if (!result.isEmpty())
return (GlnNaviera) result.iterator().next();
return null;
}
public boolean existsGlnNaviera(String pCodigo) throws
FinderException {
if (findGlnNavieraByCodigoInterno(pCodigo) == null)
return false;
return true;
}
public Aduana findAduanaByGln(String pGln) throws FinderException {
DetachedCriteria criteria =
DetachedCriteria.forClass(Aduana.class);
if (StringUtils.isEmpty(pGln))
throw new FinderException("El Gln ingresado esta
vacio.");
criteria.add(Restrictions.eq("gln", pGln));
Collection result = finder.findByCriteria(criteria);
if (!result.isEmpty())
return (Aduana) result.iterator().next();
return null;
}
public Integer prueba() throws FinderException{
return 569;
}
/***************setters and getters*************/
As seen above there are four methods, and I only get to see one of them.. is
this because they have parameters??, how can I call this methods from the
LHS... thanks so much for your help..
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-5-2-calling-methods-from-service...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 6 months