Closed (fixed)
Project:
Rules
Version:
7.x-2.x-dev
Component:
Rules Core
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Jun 2013 at 17:01 UTC
Updated:
2 Aug 2013 at 15:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
fubhy commentedPlease ignore the patch in the issue summary... Didn't mean to upload it there (it's wrong too).
Comment #3
fagoThis should give an examaple of what task handlers are good for.
That's not a hook. Also what kind of processing would one do here, maybe it would be good to state an example.
That's problematic as it does not account for people's data. Maybe we provide fallback logic that can treat $data as $state for BC?
this is repeated at least twice - can we have a helper to get the task handler from a task array? That also helps with possible later changes.
Patch looks good. We'll need tests for that though.
Comment #4
fagoDependency #2024257: RulesTriggerableInterface and RulesReactionRule changed as support for event settings have been added made it in.
Comment #5
fubhy commentedRe-rolling and adding tests. Still need to fix the comments from #4
Comment #6
fubhy commentedimproving doc blocks.
Comment #7
fagoThat's not going to work.
Base event name or configured event name? This should be clear.
What is the default behaviour? :)
This does not match the docs of rules_scheduler_schedule_task() - but anyway it's an API change we should better avoid.
-> let's better keep it work with that function signature.
Also, there is no API function to create a task with a given handler. Dependent on the handler we will have different task settings/data, so maybe we add one and just document the required keys while handler can support new keys. Then, I think it makes sense to let the handler write the queue item, such that it can calculate dates etc. if necessary.
Quite important doc-block improvement ;-)
Comment #8
fubhy commentedComment #9
fagoNow one event handler might be invoked multiple times?
Comment #10
fubhy commentedComment #11
fubhy commentedAdding tests.
Comment #13
fubhy commentedComment #14
fubhy commentedComment #15
fagoThanks, committed.