Event Assertion in a Query Agent

In a query agent, a channel executes an automatic Event.assertEvent(e) when its destination receives a message and converts it to the destination’s default event type.

However, query agents do not have a Rete network for rule inferencing, so the event is not asserted in the same way that it is asserted in an inference agent. Also, events asserted in a query agent are not persisted in the cache. Asserted events cannot be modified or explicitly deleted.

You can assert events in a callback rule function and they are asserted locally, within the query agent.

Note: There is no need to associate a locally asserted event with a destination. You only have to associate the event with a destination if you want to send the event out of the agent.