the future of the rules module in drupal 8
TRANSCRIPT
FUTURE OF THE RULES MODULE IN DRUPAL 8And how we can help shape the story
STAN ASCHER
WHO AM I?• Site Builder• Front End Developer• Themer• Talker
WHATS GOING ON HERE?
WHAT AM I TALKING ABOUT HERE• What is Rules and Why its
successful • The #drupal8rules initiative• Progress so far• Sneak Peak at UI• Outside integrations• How to contribute
THE SUCCESS STORY BEHIND RULES
THE SUCCESS STORY BEHIND RULES: HELPING THE SITE BUILDER
THE SUCCESS STORY BEHIND RULES: INTERGRATIONS
Workbench Webform Drupal Commerce Content Access
Flag Organic Groups Token
Ubercart Voting Twitter Features
Context Message
PROGRESS :CHALLENGES AND MILESTONES
FAGO AND KLAUSIMaintainers of the Rules ModulesHave lots of other Drupal ModulesContributors to Drupal 8
FUNDING GOAL & PROJECT DEVELOPMENT HOURSDrunomics and Epiqo can’t afford taking the bill for the entire project.1048 projected hours of development Companies will charge rate of € 45/h net cost.(
WHAT’S DONE?
DRUPAL 8 CORE INTEGRATION & RULES CORE ENGINE: DONEMilestone 1 of Drupal Rules Module Beta • Rules core engine & plug-in types (Services-
based architecture, interfaces, tests)• Align Rules condition & action APIs with
Drupal 8 core (Dynamic action parameters & context variables)
• Parameter configuration & Context mapping• Parameter value processing logic (Data
processor plug-ins & Input tokens)
Reusable components• Plug-in based architecture & fully object-
oriented code• Rules data selector for tokens, contexts
and other use cases• Typed data widgets & formatters
DRUPAL 8 CORE INTEGRATION & RULES CORE ENGINE: DONE
Evolved developer experienceUnified DX based on Drupal 8 plug-in systemSymfony 2 event system integrationDeployable configuration via the CMI
• Rules will be in your .yml files• Rules will show up in your Configuration Management Interface
DRUPAL 8 CORE INTEGRATION & RULES CORE ENGINE: DONE
WHAT’S LEFT?
MILESTONE 2: RULES CORE API COMPLETION
MILESTONE 2: RULES CORE API COMPLETIONGoal: Ensure the Rules APIs are ready early enough, so all other contributed modules that get ported to Drupal 8 can have Rules integrations right from beginning.• Complete Rules engine features (Metadata assertions,
logging service, developer docs)• Rules plug-ins part two (Events, Loops, caching,
recursion prevention, components API)• Configuration management system support (config entity,
CMI support, integrity checks & config schema)• Generic rules integrations (Typed data & entity support)• Entity token support
BUT WHAT ABOUT THE SITE BUILDERS?
THE USER INTERFACE: THE RULES UI
MILESTONE 3: RULES UI FOR 8.X RELEASE(Goal: Site builders will be able to start configuring workflows on their Drupal 8 sites from November 2014 on, when Rules 8.x will be released.Rules UI (Rules settings and administration screens with Drupal 8 usability improvements)Reusable UI components (Data selector, Typed data widgets and formatters, embeddable condition and action forms)Rules schedulerPort existing Rules integrations (Comments, Nodes, Taxonomy, User, New entity types)
RETHINKING THE UI• Rules UI should not be its own
beast but try to leverage as much of the patterns & UI components that we have in D8 already.
• borrow add dialogs from Views UI or Block UI?
• try to come up with a draggable table solution that works for nested rule configurations
D7 BROWSE RULE
D8 BROWSE RULES
RULES EDIT SCREEN OVERVIEW
RULES EDIT SCREEN OVERVIEW: ADD EVENT
RULES EDIT SCREEN: ADD EVENT
RULES EDIT SCREEN OVERVIEW: ADD CONDITION
EDITING A CONDTION GROUP
EDITING A CONDTION GROUP: CHANGE CONDITION
EDITING A CONDITION GROUP WITHIN A CONDTION GROUP
OTHER TECHNOLOGIES
RULES LINK MODULE
OTHER TECHNOLOGIES
MAESTRO MODULE
A WORD ABOUT DRUPAL COMMERCE 8.XCommerce Guys working to make Drupal Commerce independent of the rules moduleCommerce Guys Ryan Szrama says that Commerce will be able to integrate with Rules 8.x API eventually
HOW CAN WE HELP?Sign up to be a tester or developer
• http://d8rules.org/support
Check out the UI Brainstorm page
• https://www.drupal.org/node/2251267
WE CAN HELP SHAPE THE STORY!Drupal 8 rules siteRules 8.x Issue Queue on Drupal.orgRules 8.x on githubRules 8.x Brainstorming#drupal-rules on irc
WHATCHA TALKIN ABOUT, DAVID?
WHATCHA TALKIN ABOUT, MICHEAL?
WHATCHA TALKIN ABOUT, PRINCESS?
YOU CAN MAKE A DIFFERENCE:DRUPAL IS PEOPLE!
Stan Ascher - Twitter: stanascherDrupal.org - sascher