public
Description: Shade is a state machine (or workflow) engine for ColdFusion business objects.
Homepage:
Clone URL: git://github.com/ryanwood/shade.git
Updated README
ryanwood (author)
Fri Jul 18 12:17:52 -0700 2008
commit  9bd2d89c803a6023caf640b7d8bd70f7cd4b4582
tree    493534df196c4ddab36142411f29b18e6fb679ac
parent  94ee712cb48348cfe764d06a9181405bfb125a95
0
...
37
38
39
40
41
42
43
 
 
 
 
44
45
46
...
80
81
82
83
 
84
85
86
...
37
38
39
 
 
 
 
40
41
42
43
44
45
46
...
80
81
82
 
83
84
85
86
0
@@ -37,10 +37,10 @@ unless it returns true. A guard is called on the original business object
0
 You can also define event callback methods in the decorator. The signature
0
 for those will be: 
0
 
0
-  [state]EnteringAction:  Fires just before you enter this state
0
-  [state]AfterAction:     Fires just after the state becomes current
0
-  [state]ExitAction:      Fires on the previous state just after the new
0
-                          state becomes current (i.e. when you leave this state)
0
+  before[state]Action: Fires just before you enter this state
0
+  after[state]Action:  Fires just after the state becomes current
0
+  exit[state]Action:   Fires on the previous state just after the new
0
+                       state becomes current (i.e. when you leave this state)
0
                           
0
 
0
 === EXAMPLE ===
0
@@ -80,7 +80,7 @@ for those will be:
0
     
0
     <!--- Observers --->
0
     
0
-    <cffunction name="closedEnteringAction" access="public" returntype="void" output="false">
0
+    <cffunction name="beforeClosedAction" access="public" returntype="void" output="false">
0
       <!--- Perform some action such as sending a notification when an order is closed. --->
0
       <cfmail ... />
0
     </cffunction>

Comments