Noob desperately needing help
by zaphod
So, we have a massive web-based application with a rules engine powered by
drools 4.0.7...I have a time-based rule that fires, executes about 80% of
the java code, and then just stops. No error, no exception, no nothing...it
just stops. Until I restart the node, all rules processing is suspended.
I've let this process run for 24 hours without intervention, but it really
is hung. And I know it's not in a loop, as I'm outputting console messages,
and I know the exact line that the app is hanging on. I have tried upgrading
to drools 5.4, but we didn't write the kernel of the rules engine, and I'm
not really in the mood to deal with re-writing it, unless I absolutely have
to.
This is the first time I've ever seen anything like this, and this app has
been running for 4 years with no rules-engine issues. We use it
everywhere....we are an EMS research organization supporting 3 states, and
the application uses the rules engine to determine state-based EMS logic.
We also use it as a timing trigger to email notifications to various EMS
personnel to notify them of hospital facility closings, bed availability,
etc.
I have absolutely no idea what the problem is, or how to present it to the
mailing list users in a way that might identify what the issue really
is...so anyone who is game to help, ask me questions, and I'll answer them
as best I can.
Thanks for anyone interested in helping debug this issue....
Paul Cooper
Developer
EMS Performance Improvement Center
Chapel Hill, NC
--
View this message in context: http://drools.46999.n3.nabble.com/Noob-desperately-needing-help-tp4020589...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 7 months
JTA Persistence, Fact Objects and High Availability
by Miguel Paraz
Hi,
I'm looking at the possibility of using Drools to store the working state
of my app, in the form of rules.
Can JTA Persistence store fact objects? I read that the fact objects must
be Serializable - are there other requirements or caveats?
Can JTA Persistence take care of High Availability? Even if the system goes
down in the middle of a rules computation? Assuming the database handling
the JPA is a HA system.
Thanks!
Miguel
13 years, 7 months
Unsubscribe
by Brenda Chodkowski
Thank you!
Brenda Chodkowski
Software Engineer
brenda.chodkowski(a)ctg.com
Tel: Cell: 716-696-2313 (Monday, Tuesday) * 716-888-3681 (Wednesday, Thursday, Friday)
CTG * 700 Delaware Ave * Buffalo, NY 14209
www.ctg.com
[cid:image001.jpg@01CDB73A.23606B00]
The information transmitted is intended only for the person or entity to which
it is addressed and may contain confidential and/or privileged material. Any
review, retransmission, dissemination or other use of, or taking of any action
in reliance upon, this information by persons or entities other than the
intended recipient is prohibited. If you are not the intended recipient of this
message, please contact the sender and delete this material from this computer.
13 years, 7 months
Debug rule functions ?
by ipeshev
Hello,
could some give me some tips for debugging *functions* in .drl ?
by now I'm not able to debug *inside the functions* which are called by the
rule sequence.
I follow the
http://docs.jboss.org/tools/3.0.0.GA/en/drools_tools_ref_guide/html_singl...
JBoss Drools Tools Reference Guide but what is show there is how to debug a
very simple *rule sequence*. I have no problem with that - following the
guide everything is ok.
BUT
There is nothing shown about a more complex case when there are functions
(java-like) in the .drl file and the rule calls one or more of these
functions. And one function calls another etc. (just like in normal
programming)
When a put a breakpoint inside functions I cannot debug them.
I can only debug the *rule* ("then" section)
Any help would be appreciated?
Or any official info if this supported at all.
versions etc.
Best Regards
Ivan
--
View this message in context: http://drools.46999.n3.nabble.com/Debug-rule-functions-tp3689774p3689774....
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 7 months
Calling Technical rule assets in Guvnor
by Manasi
Hi,
How to call Technical rule assets stored in Guvnor from Java application?
Currently I have one drl rule which is stored in Technical rule assets
section.
But I am not able to call it from my Java application.
I am using following code to call my rules stored in Guvnor :
UrlResource urlResource = (UrlResource)
ResourceFactory.newUrlResource(http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/GuiKontrolKiss.FeltKnapRestriktionerKundeMedAnl/LATEST");
urlResource .setBasicAuthentication("enabled");
urlResource.setUsername("admin");
urlResource.setPassword("admin");
urlResource.setResourceType(ResourceType.PKG);
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
try {
kbuilder.add(ResourceFactory.newInputStreamResource(urlResource
.getInputStream()), ResourceType.PKG);
} catch (IOException e) {
e.printStackTrace();
}
KnowledgeBase kbase = kbuilder.newKnowledgeBase();
// create session
StatefulKnowledgeSession session = kbase.newStatefulKnowledgeSession();
NyssCaseSO caseSO = droolsRequest.getNyssCaseSO();
NyssCaseStateSO caseState = caseSO.getNyssCaseStateSO();
NyssOfferSO offerSO = droolsRequest.getNyssOfferSO();
session.insert(caseSO);
session.insert(offerSO);
session.insert(caseState);
AgendaFilter filter = new AgendaFilter() {
public boolean accept(Activation activation) {
if (activation.getRule().getName().contains("testDrl")) {
return true;
}
return false;
}
};
session.fireAllRules(filter);
for (Object o : session.getObjects()) {
if (o instanceof ResultSO) {
ResultSO resultSO = (ResultSO) o;
reply.setResultSO(resultSO);
}
}
session.dispose();
With above I am able to call my rules stored in *"Business rule assets"*
section.
Thanks,
Manasi
--
View this message in context: http://drools.46999.n3.nabble.com/Calling-Technical-rule-assets-in-Guvnor...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 7 months
Error in adding BRL in Guvnor
by vargheseps
I have created a Model named applicationHealth which contain a class
“com.xyz.rims.model.Application” on Guvnor.
Also created a Business rule asset named ‘ApplicationHealthRule’ which
uses ‘Application’. I have
created a business rule task in a BPMN2 process and gave the
‘ruleflow-group’ as same as a Business rule assets .
kbuilder.add(ResourceFactory.newUrlResource(DROOLS_COMMON_URL+"ApplicationHealthRule/binary"),
ResourceType.BRL);
I used the above code to add the resource to kbuilder The error I get is:
[Unable to resolve ObjectType 'Application' : [Rule
name='ApplicationHealthRule']
]
--
View this message in context: http://drools.46999.n3.nabble.com/Error-in-adding-BRL-in-Guvnor-tp4020555...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 7 months