Ignore:
Timestamp:
30 Jan 2015, 14:02:53 (10 years ago)
Author:
Henrik Bettermann
Message:

Extend customer registration workflow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/workflow.py

    r12221 r12526  
    2626from waeup.ikoba.interfaces import (
    2727    IObjectHistory, IIkobaWorkflowInfo, IIkobaUtils,
    28     STARTED, CREATED, REQUESTED, APPROVED,
     28    STARTED, CREATED, REQUESTED, PROVISIONALLY, APPROVED,
    2929    SUBMITTED, VERIFIED, REJECTED, EXPIRED)
    3030from waeup.ikoba.interfaces import MessageFactory as _
     
    6565
    6666    Transition(
     67        transition_id = 'approve_provisionally',
     68        title = _('Approve customer provisionally'),
     69        msg = _('Customer registration provisionally approved'),
     70        source = REQUESTED,
     71        destination = PROVISIONALLY),
     72
     73    Transition(
     74        transition_id = 'approve_finally',
     75        title = _('Approve finally'),
     76        msg = _('Customer registration finally approved'),
     77        source = PROVISIONALLY,
     78        destination = APPROVED),
     79
     80    Transition(
    6781        transition_id = 'approve',
    6882        title = _('Approve customer'),
     
    98112        source = REQUESTED,
    99113        destination = STARTED),
     114
     115    Transition(
     116        transition_id = 'reset4',
     117        title = _('Reset customer'),
     118        msg = _('Reset to initial customer state'),
     119        source = PROVISIONALLY,
     120        destination = STARTED),
     121
     122    Transition(
     123        transition_id = 'reset5',
     124        title = _('Reset to requested'),
     125        msg = _("Reset to 'requested'"),
     126        source = PROVISIONALLY,
     127        destination = REQUESTED),
    100128
    101129    )
Note: See TracChangeset for help on using the changeset viewer.