the future of the rules module in drupal 8

39
FUTURE OF THE RULES MODULE IN DRUPAL 8 And how we can help shape the story STAN ASCHER

Upload: stan-ascher

Post on 09-Jan-2017

946 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: The Future of the Rules module in Drupal 8

FUTURE OF THE RULES MODULE IN DRUPAL 8And how we can help shape the story

STAN ASCHER

Page 2: The Future of the Rules module in Drupal 8

WHO AM I?• Site Builder• Front End Developer• Themer• Talker

Page 3: The Future of the Rules module in Drupal 8

WHATS GOING ON HERE?

Page 4: The Future of the Rules module in Drupal 8

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

Page 5: The Future of the Rules module in Drupal 8

THE SUCCESS STORY BEHIND RULES

Page 6: The Future of the Rules module in Drupal 8

THE SUCCESS STORY BEHIND RULES: HELPING THE SITE BUILDER

Page 7: The Future of the Rules module in Drupal 8

THE SUCCESS STORY BEHIND RULES: INTERGRATIONS

Workbench Webform Drupal Commerce Content Access

Flag Organic Groups Token

Ubercart Voting Twitter Features

Context Message

Page 8: The Future of the Rules module in Drupal 8

PROGRESS :CHALLENGES AND MILESTONES

Page 9: The Future of the Rules module in Drupal 8

FAGO AND KLAUSIMaintainers of the Rules ModulesHave lots of other Drupal ModulesContributors to Drupal 8

Page 10: The Future of the Rules module in 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.(

Page 11: The Future of the Rules module in Drupal 8

WHAT’S DONE?

Page 12: The Future of the Rules module in Drupal 8

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)

Page 13: The Future of the Rules module in Drupal 8

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

Page 14: The Future of the Rules module in Drupal 8

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

Page 15: The Future of the Rules module in Drupal 8

WHAT’S LEFT?

Page 16: The Future of the Rules module in Drupal 8

MILESTONE 2: RULES CORE API COMPLETION

Page 17: The Future of the Rules module in Drupal 8

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

Page 18: The Future of the Rules module in Drupal 8

BUT WHAT ABOUT THE SITE BUILDERS?

Page 19: The Future of the Rules module in Drupal 8

THE USER INTERFACE: THE RULES UI

Page 20: The Future of the Rules module in Drupal 8

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)

Page 21: The Future of the Rules module in Drupal 8

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

Page 22: The Future of the Rules module in Drupal 8

D7 BROWSE RULE

Page 23: The Future of the Rules module in Drupal 8

D8 BROWSE RULES

Page 24: The Future of the Rules module in Drupal 8

RULES EDIT SCREEN OVERVIEW

Page 25: The Future of the Rules module in Drupal 8

RULES EDIT SCREEN OVERVIEW: ADD EVENT

Page 26: The Future of the Rules module in Drupal 8

RULES EDIT SCREEN: ADD EVENT

Page 27: The Future of the Rules module in Drupal 8

RULES EDIT SCREEN OVERVIEW: ADD CONDITION

Page 28: The Future of the Rules module in Drupal 8

EDITING A CONDTION GROUP

Page 29: The Future of the Rules module in Drupal 8

EDITING A CONDTION GROUP: CHANGE CONDITION

Page 30: The Future of the Rules module in Drupal 8

EDITING A CONDITION GROUP WITHIN A CONDTION GROUP

Page 31: The Future of the Rules module in Drupal 8

OTHER TECHNOLOGIES

RULES LINK MODULE

Page 32: The Future of the Rules module in Drupal 8

OTHER TECHNOLOGIES

MAESTRO MODULE

Page 33: The Future of the Rules module in Drupal 8

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

Page 34: The Future of the Rules module in Drupal 8

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

Page 35: The Future of the Rules module in Drupal 8

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

Page 36: The Future of the Rules module in Drupal 8

WHATCHA TALKIN ABOUT, DAVID?

Page 37: The Future of the Rules module in Drupal 8

WHATCHA TALKIN ABOUT, MICHEAL?

Page 38: The Future of the Rules module in Drupal 8

WHATCHA TALKIN ABOUT, PRINCESS?

Page 39: The Future of the Rules module in Drupal 8

YOU CAN MAKE A DIFFERENCE:DRUPAL IS PEOPLE!

Stan Ascher - Twitter: stanascherDrupal.org - sascher