Closed (fixed)
Project:
Rules
Version:
8.x-3.x-dev
Component:
Rules Core
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2016 at 18:19 UTC
Updated:
8 Feb 2016 at 11:34 UTC
Jump to comment: Most recent
Add support for global context for placeholder replacements and Rules in general.
Comments
Comment #2
fagoGetting started with support in general first: https://github.com/fago/rules/pull/348
(Untested)
Comment #3
fagoThis works with pre-existing global context in core, but it results in really ugly variable names:
@user.current_user_context:current_userHowever, that's what core provides us with so improving that should probably be a core issue. :/
Comment #4
klausiYes, that's ugly but I agree that this has to be good enough for now.
Now that #2648352: Implement an integrity check on configuration time has landed we also nee to add the global context in ExecutionMetadataState so that those variables are also available on config time.
Comment #5
fagotrue, updated.
Comment #6
fagomerged
Comment #8
klausiI just found that ExecutionState::hasVariable() has not been updated for lazy loading the global context into variables.
Comment #9
fagogood catch, fixed it here: https://github.com/fago/rules/pull/353
Comment #10
klausilooks good!
Comment #11
fago