16.4. Stateful Rules Session Properties
- To continue the existing stateful session, set these two message properties:
message.getProperties().setProperty(“dispose”, false); message.getProperties().setProperty(“continue”, true);
- When you run the rules for the last time, set dispose to
true
to clear the JBoss Rules' engine's working memory:message.getProperties().setProperty(“dispose”, true); message.getProperties().setProperty(“continue”, true);
Note
To learn more about using stateful rules sessions, please refer to thebusiness_ruleservice_stateful
quick-start.