user accesses a certain piece of content on your site) In short, the whole process triggering the action you want to automate sums up to: How to Use the Rules Module in Drupal 8īut first, let's define its functionality:Ī contributed module that enables you to create automated workflows based on ECA rules (or "reaction rules"). Tip: the “condition” is optional in this equation. The good news is that you get all these events, conditions and actions, by default, once you install the module. Just select the ones that fit your needs and. You can always write and add your own fully customed ones. Or better said: “When would you choose this workflow automation solution over writing your own module?” Why Go with Rules Instead of Writing Your Custom Module? The Drupal 8 Rules module integrates smoothly with other modules - Content Access, Organic Groups, Drupal Commerce, Flag - that provide you with their own specific events, conditions, and actions to incorporate into your workflow.Ģ. it allows you to configure your own workflows and automate specific actions or repetitive tasks on your Drupal allows you to prototype and to inject powerful (customed) functionality into your website, with no need to touch one line of code.Then, Rules becomes such a convenient option: When/if you're a Drupal site administrator and you won't have that much experience with the Drupal API or writing PHP code. Reusableīut first, let's try a concise definition of the Rules components: That ever-green, ever-powerful Drupal philosophy.ģ. They're the elements that make a rule, that you can “recycle” when setting up other rules, as well. Say you have this action: “Send a specific notification to the site admin”. You can add it to multiple different rules, such “A user comment has been added” or “A content writter has edited an article”. Tip: if you enable the Rules Scheduler module, you can have your rules components run at a specific time in the future. Cool Things You Can Do with Rules: From Basic to Complex Ones For instance, you can schedule the action of closing comments for a specific post, say, 2 months after its publication.Ĥ. notify a user when someone adds a new comment to his postĪnd the list of scenarios that you can create and automate is.publish a new article at a specified time.notify the admin about emergency log entries.notify the site administrator when one of the writers adds a new article.email a customer the copy of his order when his order status changes.notify a user when someone bookmarks his/her content.notify a customer when the reserved item is back in stock.“What type of workflows can I create using the Drupal 8 Rules module? What actions can I automate, more precisely?” you might ask yourself. Now, it's only honest of me to mention that this module for workflow automation in Drupal 8 is still in its alpha phase (alpha5, to be more specific). So, you can't yet use it on production sites.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |