-
Language:
English
-
Language:
English
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
Fibonacci
objects. - This example uses the MVEL dialect. This means you can use the
modify
keyword, which allows a block setter action which also notifies the engine of changes.