<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="http://joetsuihk.com/zh-hant/taxonomy/term/56/all" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>trigger</title>
    <link>http://joetsuihk.com/zh-hant/taxonomy/term/56/all</link>
    <description></description>
    <language>zh-hant</language>
     <atom:link href="http://joetsuihk.com/zh-hant/taxonomy/term/56/all/feed" rel="self" type="application/rss+xml" />
      <item>
    <title>Actions, trigger, rules, workflow</title>
    <link>http://joetsuihk.com/zh-hant/node/137</link>
    <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;這四個Drupal6 的module 互相有關連，功能又多， 做一個小小的整理&lt;/p&gt;
&lt;p&gt;action 和 rules 是做同一件事：定義一些“行為”／“行動”&lt;br /&gt;
而rules 是進階版的 action&lt;br /&gt;
這些“行為” 例如顯示一個信息, 發一個email 等等，單獨存是沒有意義的， 它需要一個觸發器去觸發一個action/rule&lt;br /&gt;
這個觸發器就是 trigger module 了&lt;/p&gt;
&lt;p&gt;觸發器的例子有：“在儲存一個node 之後”&lt;br /&gt;
那你就可以達成：“在儲存一個node 之後，發一個email到 &lt;a href=&quot;mailto:admin@abc.com&quot;&gt;admin@abc.com&lt;/a&gt;”&lt;/p&gt;
&lt;p&gt;以上的例子很簡單，不足以說明它們的強大，但這篇只是想給讀者一個概念&lt;br /&gt;
讀者們要先內化這概念， 下一個post 便可以講一下進階的用法&lt;/p&gt;
&lt;p&gt;而 workflow 是一個處理流程的module, 本身也是一個巨大的觸發器&lt;br /&gt;
workflow 自己可以做到定時出版一類的功能，由draft 到review 到publish, 每一步都有一個trigger, 可以trigger send email 等等的rules&lt;br /&gt;
有機會的話也可以詳細講講&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-taxonomy-vocabulary-2 field-type-taxonomy-term-reference field-label-above&quot;&gt;&lt;div class=&quot;field-label&quot;&gt;Free tags:&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/zh-hant/taxonomy/term/55&quot;&gt;actions&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/zh-hant/taxonomy/term/56&quot;&gt;trigger&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/zh-hant/taxonomy/term/57&quot;&gt;rules&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/zh-hant/taxonomy/term/58&quot;&gt;workflow&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-field-add-this field-type-addthis field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a class=&quot;addthis_button &quot; addthis:title=&quot;Actions, trigger, rules, workflow - JOE Tsui&amp;#039;s Drupal life in Hong Kong (香港)&quot; addthis:url=&quot;http://joetsuihk.com/zh-hant/node/137&quot;&gt;&lt;img src=&quot;http://s7.addthis.com/static/btn/sm-share-en.gif&quot; alt=&quot;Share page with AddThis&quot; /&gt;
&lt;/a&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
     <pubDate>Sun, 20 Dec 2009 07:46:01 +0000</pubDate>
 <dc:creator>JOE</dc:creator>
 <guid isPermaLink="false">137 at http://joetsuihk.com</guid>
  </item>
  </channel>
</rss>
