I think Thomas Gentsch wrote:
>
> U, no way to define the Java class in any way? Otherwise I'd have to
> touch all the rules ...
Well, if that's what you want to do, sure. You could change the String
property into a property of type jess.Value.
Let's see. The property would just look like
unsubscribe
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
-
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROT
U, no way to define the Java class in any way? Otherwise I'd have to
touch all the rules ...
Thanks a lot,
tge
friedman_hill ernest j wrote:
>
> You can use str-cat to turn a symbol into a string:
>
> (defrule update-simple
>?f <- (The simple object ?id is ?val)
>?o <- (Si
You can use str-cat to turn a symbol into a string:
(defrule update-simple
?f <- (The simple object ?id is ?val)
?o <- (Simple (OBJECT ?s) (name ?&=(str-cat ?id)))
=>
...
)
I think Thomas Gentsch wrote:
>
> I have another one ... :~)
>
> When extending the 'Simple' e
Use
(batch a.clp)
Admittedly I haven't tried that from within an (if ...) but that's the
way it works in general.
tge
Mark Gargan wrote:
>
> Hi there,
> I'm quite new to Jess and was wondering if anyone had come across a
> way to run a .clp file from within the Jess shell as
I have another one ... :~)
When extending the 'Simple' example a little, I encountered a problem, I
understand but have no idea yet, how to do it right.
The class 'Simple' is defined as:
public class Simple
{
private String m_name;
...
Now, if I have a rule:
(defrule update-simple
?f <
Hi there,
I'm quite new to Jess and was wondering if anyone had come across a
way to run a .clp file from within the Jess shell as the result of an if
expression?
e.g. ((if a== true) then ('run a.clp))??
I hope this is not too much of a stupid question..
Thanks again,
Mark.
---
Hi!
>Here is my problem. I wrote a Java Class which goal is to
>retrieve informations in a database and write these
>informations as Jess facts. I'd like to call this Class
>within Jess, but I don't know how to retrieve the
>engine which has called the Java Class, in the Java
>Class itself.
You
Hello,
Here is my problem. I wrote a Java Class which goal is to retrieve informations
in a database and write these informations as Jess facts.
I'd like to call this Class within Jess, but I don't know how to retrieve the
engine which has called the Java Class, in the Java Class itself.
Thanks.