[Enterprise Extensions only]
Previous topic Next topic

Returning results from rules

In general, a rule can return any type of result that makes sense for the business purpose of the rule. The return type on the fire method is java.lang.Object so any Java object can be returned, including arrays. You cannot return a Java primitive since the results must be an Object, however you can return the Object form of the primitives. For example, you can return a java.lang.Integer instead of an int.

Previous topic Next topic