Rules context creation - APIs definition