RuleAgent - loading rules help ?
by Ivan Peshev ( M-Tel )
Hello,
Is there a way to tell RuleAgent to load rules not only from remote URL ?
i.e. some rules from URL and some rules from LOCAL path on my computer.
(e.g.: c:\some\folder\rule.drl)
Or if it's not possible exactly that way is there another way to have some rules loaded from URLs and some rules loaded from local path ?
Best Regards
Ivan
14 years, 11 months
Guvnor - Unable to load a required class !! Help
by S.M.H.Jamali
Hello All
I create a JavaBean and convert it to a Jar File then upload it. Also i create a sample rule that uses uploaded Jar File then i create a test scenario to test my rule but when i run my scenario Guvnor says : Unable to load a required class ! Unable to find class 'Fire' !
my java bean is like it :
package com.employee;
import java.util.Date;
public class Fire
{
private Room room;
private Date time;
public Fire(){}
public Fire(Room room,Date time)
{
this.room = room;
this.time = time;
}
public Room getRoom() {
return room;
}
public void setRoom(Room room) {
this.room = room;
}
public Date getTime() {
return time;
}
public void setTime(Date time) {
this.time = time;
}
}
Any Help Appreciated
Thanks in advance
S.M.H.Jamali
14 years, 11 months
Off to a very bad start - please help
by ronalbury
I downloaded droosljbpm-tools-distribution-5.2.0.Final and installed the
plugins in eclipse.
I downloaded droolsjbpm-integration-distribution-5.2.0.Final and imported
the example project into eclipse (Helios) per instructions in the
ReadMeDroolsjbpmintegration.txt file. I used the first
mechanism(File/Import) rather than the second (which required m2eclipse
plugin).
The project is full of errors, and none of the java files would compile.
There were no class files generated.
I created a Drools project from scratch. I copied the src directory from
the example into the new project. The java files now compile and the errors
are gone, however something is wrong because it can't find any of the drl
files. Also, src/main/resources is not showing in the project tree.
I believe that I have followed the directions to the letter (in the first
case), and took a wild stab (in the second case) and I am still at the
starting point.
Won't someone please help me (and shouldn't the ReadMe file be fixed so
others don't have this problem)
Thanks
Ron
--
View this message in context: http://drools.46999.n3.nabble.com/Off-to-a-very-bad-start-please-help-tp3...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 11 months
Re: [rules-users] startsWith function
by Mattias Nilsson Grip
aftab wrote:
>
> I want to define rules for below function,
>
> private boolean isFixedNumber(Call call){
>
> if(call.getCalledNumber().startsWith("01") ||
> call.getCalledNumber().startsWith("02") ||
> call.getCalledNumber().startsWith("03") ){
> return true;
> }
> else{
> return false;
> }
> }
>
> Give some hints how can i define it ?
> I was trying to define it in below format,
> rule "Is Fixed Number"
> dialect "java"
> when c : CDRRecords
> (calledNumber.startsWith( "011") )
> then
> c.setFixedNetNumber(true);
> System.out.println("c.setFixedNetNumber (true) "); // consequence
>
> end
>
>
> Thanks in advance for your support ...
>
If you're using Drools 5.2 you should be able to do:
c : CDRRecords( calledNumber str[startsWith] "011" )
If you are on earlier version of Drools you can match with a regular
expression:
c : CDRRecords( calledNumber matches "011.*" )
/Mattias
--
View this message in context: http://drools.46999.n3.nabble.com/startsWith-function-tp3228735p3234795.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 11 months