- Go to your /admin/config/workflow/rules/components and click on "Add new Component"
- Select "Action set" under Component plugin & Press Continue.
Give appropriate Name.E.g: Flag Node.
Data type : Content, Label: Node, Machine name:node & Press Continue.
Click on "Add action" & select "Flag a node" ,once it returns the result data,Select which flag should be clicked.
For => node :Data selector use node &
For =>User on whose behalf to flag : Data selector use node:author
& Press Save.
Done with the component.
Now Add a New Rule
Go to your /admin/config/workflow/rules and click on "Add new Rule"
Give appropriate Name.E.g: Flag Node Rule.
React on event : After updating existing content. (as you need)
& Press Save
You can add conditions if you want whether it should be published or should belong to any content type or what so ever you need. I have used Content is of type.
This is the thing which works like a magic to schedule your event(Here Flag). Click on "Add action" & Select "Schedule component evaluation" under Rule Scheduler
& Select the Component Value ** as (**Flag Node) which we created just before configuring this rule & Press Continue.
Enter Scheduled evaluation date which will schedule your event when to get triggered.
Data selector :(Enter Your values as +2 minutes, +2days, +2 weeks etc as your need)
Identifier => Value : [node:title] has been Flagged.(You can use any message you want to see on /admin/config/workflow/rules/schedule along with list of scheduled events.)
Node => Data selector : node
& Press Save.
Done with the Rule.
Configuration is done. You can test it now.
Hope this will be helpful for someone.