JESS: [EXTERNAL] Linking rule actions to the execution of other rules

"Tom De Costere" <[email protected]> Tue, 23 Apr 2013 23:07:46 +0200
Newsgroups gmane.comp.java.jess
Message-ID <[email protected]>
------=_NextPart_000_0177_01CE4077.5E12F670
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hello,

I=E2=80=99m currenly trying to link the actions of rules to the possible =
execution of other rules.
Now I was wondering if anybody has any ideas how this can be done?

I=E2=80=99ve already succeeded in reading out the actions and the =
conditions, but when looking at the current results I can only see the =
following thing:  (piece of output of the loaded miss manners benchmark)

- Rule: MAIN::continue
- Number of conditions [1]:
-- MAIN::Context
- Number of actions [1]:
modify ?f1 state "assign_seats"

- Rule: MAIN::find_Seating
- Number of conditions [7]:
-- MAIN::Context
-- MAIN::Seating
-- MAIN::Guest
-- MAIN::Guest
-- MAIN::Count
-- not
-- not
- Number of actions [5]:
assert <Fact--1>
assert <Fact--1>
assert <Fact--1>
modify ?f5 c (+ ?c 1)
modify ?f1 state "make_path"

The problem I=E2=80=99m encountering is the part of the =E2=80=9Cassert =
<Fact=E2=80=941>=E2=80=9D.

Does anybody know how to extract the exact fact it=E2=80=99s going to =
produce + how I could possible find out what rules can be executed after =
the actions of a rule have been executed?

Thanks in advance

Tom DC
------=_NextPart_000_0177_01CE4077.5E12F670
Content-Type: text/html;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable

<HTML><HEAD></HEAD>
<BODY dir=3Dltr>
<DIV dir=3Dltr>
<DIV style=3D"FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000">
<DIV>Hello,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I=E2=80=99m currenly trying to link the actions of rules to the =
possible execution=20
of other rules.</DIV>
<DIV>Now I was wondering if anybody has any ideas how this can be =
done?</DIV>
<DIV>&nbsp;</DIV>
<DIV>I=E2=80=99ve already succeeded in reading out the actions and the =
conditions, but=20
when looking at the current results I can only see the following =
thing:&nbsp;=20
(piece of output of the loaded miss manners benchmark)</DIV>
<DIV>&nbsp;</DIV>
<DIV>- Rule: MAIN::continue</DIV>
<DIV>- Number of conditions [1]:</DIV>
<DIV>-- MAIN::Context</DIV>
<DIV>- Number of actions [1]:</DIV>
<DIV>modify ?f1 state "assign_seats"</DIV>
<DIV>&nbsp;</DIV>
<DIV>- Rule: MAIN::find_Seating</DIV>
<DIV>- Number of conditions [7]:</DIV>
<DIV>-- MAIN::Context</DIV>
<DIV>-- MAIN::Seating</DIV>
<DIV>-- MAIN::Guest</DIV>
<DIV>-- MAIN::Guest</DIV>
<DIV>-- MAIN::Count</DIV>
<DIV>-- not</DIV>
<DIV>-- not</DIV>
<DIV>- Number of actions [5]:</DIV>
<DIV>assert &lt;Fact--1&gt;</DIV>
<DIV>assert &lt;Fact--1&gt;</DIV>
<DIV>assert &lt;Fact--1&gt;</DIV>
<DIV>modify ?f5 c (+ ?c 1)</DIV>
<DIV>modify ?f1 state "make_path"</DIV>
<DIV>&nbsp;</DIV>
<DIV>The problem I=E2=80=99m encountering is the part of the =
=E2=80=9Cassert=20
&lt;Fact=E2=80=941&gt;=E2=80=9D.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Does anybody know how to extract the exact fact it=E2=80=99s going =
to produce + how=20
I could possible find out what rules can be executed after the actions =
of a rule=20
have been executed?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks in advance</DIV>
<DIV>&nbsp;</DIV>
<DIV>Tom DC</DIV></DIV></DIV></BODY></HTML>

------=_NextPart_000_0177_01CE4077.5E12F670--