eZ Community » Learn » eZ Publish » Creating a simple custom workflow event

Creating a simple custom workflow event

Thursday 09 December 2010 5:01:18 pm

  • Currently 5 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Conclusion

Again, workflows are useful tools to setup process that occurs before or after the publication of a content. They can be as simple as the content approval process and can be much more complex and combined to the object states they can be very powerful.

We have seen in this tutorial how to setup a workflow and link it to a trigger and we applied it to a content approval process. We have then been through an example of a workflow that automatically post a status update to a Twitter account. Additionally, because of some technical restriction from Twitter, we have also developed a little CLI script which acts as a helper with Twitter’s OAuth.

With these examples, you should now be able to develop your own workflow events for your website needs.

 

Resources

The extension built throughout this tutorial is available for download under both the tar.gz and ezpkg formats :

Other resources used to build this tutorial :

This tutorial is available for offline reading, in PDF format :
Creating a simple custom workflow event - PDF Version

 

Credits

Thanks to Yemkay for the Arc-twitteroauth library: http://github.com/yemkay/arc90-twitteroauth

Thanks to Konstantin Kovshenin for the trick with Twitter OAuth for PHP: http://kovshenin.com/archives/twitter-api-pin-based-oauth-php/

 

About the author, Quoc Huy Nguyen Dinh

Quoc Huy Nguyen Dinh

Huy began web development in late 1996. As he studied software engineering in France, he grew a preference for web development and gathered skills on the side with personal projects and helping a small online publishing start-up company. He discovered eZ Publish in 2008 and is now a certified eZ Publish developer working for the Financial Times in London.

 

License choice

GNU Free Documentation License (GFDL)
http://www.gnu.org/copyleft/fdl.html

Printable

Printer Friendly version of the full article on one page with plain styles

Author(s)

Proudly Developed with from