batchstar: rules for templates

Help
2011-08-18
2013-04-25
  • Peter Löwe

    Peter Löwe - 2011-08-18

    Hi,
    while importing "simple" rules like
    (defrule duck (animal-is duck) => (assert (sound-is quack))) works as expected,
    batchstar refuses to parse more complex rules of the type
    (defrule foo (mytemplate (x 42) (y 12) (name paul) (value42)) => (assert (sound-is quack)))

    Is there a known best practice/workaround for this ?

    Thanks,
    Peter

     
  • Francesco Garosi

    Can you please provide the deftemplate? The rule, as it is and alone, cannot be loaded in CLIPS. Normally the reason why something does not succeed can be found reading the clips.ErrorStream "stream" and using clips.DebugConfig.WatchAll() in order to enable complete reporting.

    Let me know, and please excuse me for answering so late.

    F.

     

Log in to post a comment.