Hi,
I had the same problem. Just use Rete.executeCommand("(assert "+/*the fact you wanted
to use with assertString*/+")");
Bye,
Markus
Krzysztof Gajos schrieb:
> I noticed that facts with default-dynamic do not get properly initialized
> when you create them from the Java side. I have a fact like this one:
>
> (deftemplate kcommand
> ...
> (slot id (type INTEGER) (default-dynamic (newCommandID)))
> )
>
> Where (newCommandID) function returns consecutive integers. When create
> those facts from the JESS side, the id slot gets initailized to an integer.
> When I create a kcommand from the java side (with assertString), the slot id
> looks like:
>
> "(id (newCommandID))"
>
> Any suggestions?
>
> Yours,
>
> Krzysztof (in writing usually addressed as K.)
>
> ============================================================================
> Krzysztof Gajos tel. +1-617-718-0572 (home) NEW AGAIN!!!
> MIT AI Lab, NE43-832 +1-617-253-5043 (office) - leave msgs here
> 200 Technology Sq. +1-617-258-7470 (lab)
> Cambridge, MA 02139, USA
>
> ---------------------------------------------------------------------
> To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
> in the BODY of a message to [EMAIL PROTECTED], NOT to the
> list (use your own address!) List problems? Notify [EMAIL PROTECTED]
> ---------------------------------------------------------------------
--
Markus J�ger
Arbeit: Privat:
Siemens AG (ZT IK 6) Bismarckstr. 10
Otto-Hahn-Ring 6 80803 M�nchen
81739 M�nchen Tel.: 089/38329634
Tel.: 089/636-53914 Tel.: 0173/8679602
Email: [EMAIL PROTECTED] Email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------