1

I am new to ILOG and I want to know, what does this statement mean:

IlrContext() from ?context;

I do not see "context" defined as variable in a sample project in my work space. Is this an implicit variable that is defined in ILOG?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Nrusingha
  • 853
  • 5
  • 19
  • 33
  • In Ilog JRules, the ilrContext is the context of rule and rulesets execution. This is where all data will be found/written by the engine. There are many ways to call a rules engine, where do you see this statement ? – Denys Séguret Jul 18 '12 at 20:15
  • I see it in one of the .trl file and in the "when" condition – Nrusingha Jul 18 '12 at 20:20
  • I can't check tonight as I don't have my JRules project with me but I think this is the context you provided to the engine. I don't see what this line could be useful to, though. – Denys Séguret Jul 18 '12 at 20:23

1 Answers1

1

IlrContext is the base class of all the execution contexts. Rules can be executed only within an execution context.

An IlrContext instance provide all context data to the engine (rulesets, variables, parameters etc.)

IlrContext Class

Amit
  • 15,217
  • 8
  • 46
  • 68
Akram GARGOURI
  • 205
  • 1
  • 10