Code

Changes between Version 9 and Version 10 of GoFlow


Ignore:
Timestamp:
10/01/07 14:43:38 (7 years ago)
Author:
goflow@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GoFlow

    v9 v10  
    7676           condition="instance.condition=='Re-request'") 
    7777}}} 
     78'''Some definitions:''' 
     79[[BR]]A ''transition'' is a path from an ''Activity'' to another one. 
     80[[BR]]An ''Activity'' is a task that a person (or an automatic process) with a specific role must achieve: it is linked to an ''Application'' which is typically an URL declared in the ''urls.py'' file. 
     81[[BR]]A ''push application'' is a handler that return a user, given the context of process instance (in fact the parameter of the handler is a ''workitem'', we will see this later)  
    7882 
    7983=== settings file === 
     
    8589    .... 
    8690    'django.contrib.workflow',    # uses the workflow engine 
     91    #'contrib.workflow',          # alternative if workflow engine is not installed as contrib 
    8792    'leavedemo.leave',            # the leave application 
    8893) 
     
    124129 
    125130''next soon ...'' 
     131 
     132=== workflow urls === 
     133Some urls are workflow standard tasks,  managed by the engine itself; like CRUD urls managed by admin,  the workflow standard tasks  are available with the following line in the ''urls.py'' file: 
     134{{{ 
     135    (r'^leavedemo/', include('django.contrib.workflow.urls')), 
     136}}} 
     137 
     138So the workflow engine provides handlers and default templates below: 
     139{{{ 
     140    (r'^mywork/$', 'django.contrib.workflow.views.mywork', {'template':'mywork.html'}), 
     141    (r'^otherswork/$', 'django.contrib.workflow.views.otherswork', {'template':'otherswork.html'}), 
     142    (r'^otherswork/instancehistory/$', 'django.contrib.workflow.views.instancehistory', {'template':'instancehistory.html'}), 
     143    (r'^myrequests/$', 'django.contrib.workflow.views.myrequests', {'template':'myrequests.html'}), 
     144    (r'^myrequests/instancehistory/$', 'django.contrib.workflow.views.instancehistory', {'template':'instancehistory.html'}), 
     145    (r'^mywork/activate/$', 'django.contrib.workflow.views.activate', {'template':'activate.html'}), 
     146    (r'^mywork/complete/$', 'django.contrib.workflow.views.complete', {'template':'complete.html'}), 
     147}}} 
     148 
     149''mywork'': displays the tasks list of the current user 
     150 
     151''next soon''