Changes between Version 3 and Version 4 of goflow:FAQ
- Timestamp:
- Oct 7, 2007, 4:24:28 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
goflow:FAQ
v3 v4 12 12 For example if !AutoStart is not checked, then to start Activity it is necessary to call ''activate'' API function on it. If ''!AutoStart'' is checked, then 13 13 it is automatically activated as soon as previous activities are finished (depending on guard condition: xor, and) 14 15 == How should I define a transition condition ? == 16 transitions have a "condition" attribute: it is a python expression that returns a boolean. 17 the variables that can be used in the boolean expression are "instance" and "workitem". 18 examples: 19 * ''instance.condition == "OK"'': the user has pushed the ''OK'' button 20 * ''workitem.time_out(delay=5, unit='days')'': the task is waiting for 5 days or more (NYI but soon)