Fork me on GitHub

how can I make this just return the string to the caller?


@datajohnny: my understanding is that the RHS of a clara rule should be side-effecting. Sometimes, the side effect will be updating the Clara session itself, via insert! and retract!. A common pattern for what you are trying to do would be to insert! a new fact on the RHS of your rule, then query the session for those facts after fire-rules.


you could follow one of the examples in the clara-examples project