Show Table of Contents
21.3. Fibonacci Example: Execution Details
ksession.insert( new Fibonacci( 50 ) ); ksession.fireAllRules();
- To use this with Java, a single Fibonacci object is inserted with a sequence field of 50.
- A recursive rule is used to insert the other 49
Fibonacciobjects. - This example uses the MVEL dialect. This means you can use the
modifykeyword, which allows a block setter action which also notifies the engine of changes.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.