Changes between Version 1 and Version 2 of GoFlow_Doc

05/23/2008 07:41:08 AM (7 years ago)
GoFlow administrator



  • GoFlow_Doc

    v1 v2  
    1 = GoFlow User Guide =
     1''(Ongoing translation assisted by Google translate, be indulgent please)''
    3 ''(I'm looking for a volunteer translator)''
     4= !GoFlow User Guide =
     5GoFlow is a ''django component''(project to provide application modules to another project django) to add workflow features to a project django.
     7We'll learn here to use this module, starting a project django very simple ("Hello world"), then gradually adding features.
     9== Prerequisite ==
     10Create a directory, and copy the directory''goflow''in this directory (you can also place it in any directory PYTHONPATH).
     13   In what follows, using filenames on, while the documentation Django
     14   advocates the use of absolute paths, this is voluntary, in order to simplify
     15   expressions and to be neutral vis-à-vis the platform (and it works, at least under Windows)
     17== 1. Project "Hello World" ==
     18We will discover the workflow engine with a very simple application based on a process workflow with a single activity (a single activity, no transition: the simplest possible). This activity is to receive a message (for example, "Hello world").
     20  * Start by creating a project django empty (or use an existing project)
     22    Django admin-startproj myproj
     25  * Add the following applications in the file''''
     27   INSTALLED_APPS = (
     28     ...
     29     'django.contrib.admin'
     30     'goflow.workflow'
     31     'goflow.instances'
     32   )
     34   The application''workflow''contains the "static" model data (modeling
     35   process), and application''forums''contains the dynamic part, or runtime.
     37  * Setting up the party's database file settings, for example like this:
     39   DATABASE_ENGINE = 'sqlite3'
     40   DATABASE_NAME = 'data.sqlite'
     43  * Add the following lines 2 das'' file'':
     45   urlpatterns = patterns ('',
     46     ...
     48     # Uncomment this for admin:
     49     (r '^ admin /', include ( 'django.contrib.admin.urls')),
     50     (r '^ workflow /', include ( 'goflow.urls')),
     51   )
     54  * Create now the database server and starting with:
     56   python syncdb - pythonpath =..
     57   python runserver - pythonpath =..
     60We can now open the console admin [http://localhost:8000/admin], and discover the data models introduced by! GoFlow:
     61   [[Image (GoFlow_DocFr:admin1.png)]]
     63we can also discover the Dashboard''!''GoFlow, which has the status of workflows using a "back-office", [http://localhost:8000/workflow]
     64   [[Image (GoFlow_DocFr:admin2.png)]]
     66We will now create a process workflow.
     67  * Return to the admin console, add an entity Process; screen below is shown:
     69   [[Image (GoFlow_DocFr:admin3.png)]]
     71  * Take the title "Hello world", and a description
     72  * Register using the''Save button and continue editing'': there is an activity''End''was added automatically.
     73  * Create an initial activity, by clicking on the icon "+" in the field''Initial activity'': take a title, set the process on the current process "Hello world", leave the default values for other fields.
     74  * Save
     75We have to create our first process workflow:
     76   [[Image (GoFlow_DocFr:admin4.png)]]
     78We have specified no application in our business, we will see that it is not necessary to begin to "play" with our application.
     80Indeed, when an activity is not associated with an application, a special application is still invoked, to simulate this activity: a panel is simply presented to the user, displaying the name and description of activity . A history of workflow is also displayed. A''OK''button allows you to complete the activity.
     82Before you start implementing our process workflow, it lacks one thing: allow the current user (''admin''for example) to instantiate the process.
     84  * Add a group named''''Hello world, give him permission''can_instantiate''on the content type''workflow.process'', and save
     85  * Add this group to the current user: this allows the user to instantiate the process''''Hello world.
     87Everything is now ready to execute our workflow: go on the dashboard [http://localhost:8000/workflow]. You will find our process and its definition, and other information on the roles and permissions
     89  * Click on the link''start a simulation instance''under the''process''Hello world
     91Bug''rev 21: name of process with a white''
     95'' 'TO BE CONTINUED'''
Back to Top