Changes between Version 2 and Version 3 of GoFlow


Ignore:
Timestamp:
09/25/2007 03:27:39 PM (8 years ago)
Author:
goflow@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GoFlow

    v2 v3  
    1313== The Leave workflow application ==
    1414
    15 soon ...
     15=== settings file ===
     16
     17==== standard settings ====
     18{{{
     19INSTALLED_APPS = (
     20    ....
     21    'django.contrib.workflow',    # uses the workflow engine
     22    'leavedemo.leave',            # the leave application
     23)
     24}}}
     25
     26==== specific settings ====
     27
     28{{{
     29WF_APPS_PREFIX = 'leavedemo'
     30}}}
     31This is the url prefix for workflow application definition;
     32for example, in the workflow definition the application ''app1'' is
     33mapped on the url ''/leavedemo/app1''
     34
     35{{{
     36WF_PUSH_APPS_PREFIX = 'leavedemo.leave.pushapplications'
     37}}}
     38this is the module containing the push applications functions;
     39for example, the push application ''pushapp1'' is a function defined as
     40following in the ''leavedemo/leave/pushapplications.py'' module:
     41{{{
     42def pushapp1(workitem):
     43    ...
     44    return aUser
     45}}}
     46
     47=== urls.py file ===
     48
     49==== Starting a workflow instance ====
     50
     51the ''start_application'' is a handler that display a form used to create an instance of the workflow process:
     52
     53usage:
     54{{{
     55    (r'^leavedemo/request/$',
     56     'django.contrib.workflow.applications.start_application',
     57     {'process_name':'leave', 'form_class':RequestForm, 'template':'start_leave.html'}),
     58}}}
     59
     60''next soon ...''
Back to Top