Ignore:
Timestamp:
8 Jun 2011, 21:12:34 (13 years ago)
Author:
Henrik Bettermann
Message:

Extend application workflow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/workflow.py

    r6295 r6300  
    2626    start_transition = Transition(
    2727        transition_id = 'start',
    28         title = 'Start',
     28        title = 'Start application',
    2929        source = INITIALIZED,
    3030        destination = STARTED)
     
    3232    submit_transition = Transition(
    3333        transition_id = 'submit',
    34         title = 'Submit',
     34        title = 'Submit application record',
    3535        source = STARTED,
    3636        destination = SUBMITTED)
     
    3838    admit_transition = Transition(
    3939        transition_id = 'admit',
    40         title = 'Admit',
     40        title = 'Admit applicant',
    4141        source = SUBMITTED,
    4242        destination = ADMITTED)
    4343
    44     defer_transition = Transition(
    45         transition_id = 'defer',
    46         title = 'Defer',
     44    refuse1_transition = Transition(
     45        transition_id = 'refuse1',
     46        title = 'Refuse application',
    4747        source = SUBMITTED,
     48        destination = NOT_ADMITTED)
     49
     50    refuse2_transition = Transition(
     51        transition_id = 'refuse2',
     52        title = 'Refuse application',
     53        source = ADMITTED,
    4854        destination = NOT_ADMITTED)
    4955
     
    5460        destination = CREATED)
    5561
    56     #final_transition = Transition(
    57     #    transition_id = 'finalize',
    58     #    title = 'Delete',
    59     #    source = ADMITTED,
    60     #    destination = None)
     62    reset1_transition = Transition(
     63        transition_id = 'reset1',
     64        title = 'Reset application',
     65        source = SUBMITTED,
     66        destination = STARTED)
     67
     68    reset2_transition = Transition(
     69        transition_id = 'reset2',
     70        title = 'Reset application',
     71        source = ADMITTED,
     72        destination = STARTED)
     73
     74    reset3_transition = Transition(
     75        transition_id = 'reset3',
     76        title = 'Reset application',
     77        source = NOT_ADMITTED,
     78        destination = STARTED)
     79
     80    reset4_transition = Transition(
     81        transition_id = 'reset4',
     82        title = 'Reset application',
     83        source = CREATED,
     84        destination = STARTED)
    6185
    6286    return [init_transition, start_transition, submit_transition, admit_transition,
    63         defer_transition, create_transition,]
     87         create_transition, refuse1_transition, refuse2_transition, reset1_transition,
     88         reset2_transition, reset3_transition, reset4_transition]
    6489
    6590
     
    117142grok.global_utility(ApplicationWorkflowNullVersions, IWorkflowVersions)
    118143
    119 class WorkflowState(grok.Adapter, WorkflowState):
     144class ApplicationState(grok.Adapter, WorkflowState):
    120145    """An adapter to adapt Applicant objects to workflow states.
    121146    """
     
    123148    grok.provides(IWorkflowState)
    124149   
    125 class WorkflowInfo(grok.Adapter, WorkflowInfo):
     150class ApplicationInfo(grok.Adapter, WorkflowInfo):
    126151    """Adapter to adapt Applicant objects to workflow info objects.
    127152    """
Note: See TracChangeset for help on using the changeset viewer.