Changes between Version 3 and Version 4 of goflow:FAQ


Ignore:
Timestamp:
Oct 7, 2007, 4:24:28 PM (17 years ago)
Author:
goflow@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • goflow:FAQ

    v3 v4  
    1212For 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
    1313it 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 ? ==
     16transitions have a "condition" attribute: it is a python expression that returns a boolean.
     17the variables that can be used in the boolean expression are "instance" and "workitem".
     18examples:
     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)
Back to Top