doc/book/en/development/datamodel/define-workflows.rst
changeset 2476 1294a6bdf3bf
parent 2307 060c3f3f7d28
child 2539 0f26a76b0348
equal deleted inserted replaced
2475:b6753521129d 2476:1294a6bdf3bf
    18 
    18 
    19 Set-up a workflow
    19 Set-up a workflow
    20 -----------------
    20 -----------------
    21 
    21 
    22 We want to create a workflow to control the quality of the BlogEntry
    22 We want to create a workflow to control the quality of the BlogEntry
    23 submitted on your application. When a BlogEntry is created by a user
    23 submitted on your instance. When a BlogEntry is created by a user
    24 its state should be `submitted`. To be visible to all, it has to
    24 its state should be `submitted`. To be visible to all, it has to
    25 be in the state `published`. To move it from `submitted` to `published`,
    25 be in the state `published`. To move it from `submitted` to `published`,
    26 we need a transition that we can call `approve_blogentry`.
    26 we need a transition that we can call `approve_blogentry`.
    27 
    27 
    28 A BlogEntry state should not be modifiable by every user.
    28 A BlogEntry state should not be modifiable by every user.