Hi,
Joachim Schmitz a écrit :
In our studentregistration portal we have a studentfolder, which
contains other folders or documents, whichs workflows depend on the
current status of the student.
I would like to define one workflow for a student and all related
documents. How can I do that with a documentbased workflow like
CPSWorkflow ?
I'm not sure I got what you're trying to achieve here, but if you'd like
to make your subdocuments follow a workflow different from the one
they're following in other parts of the site, you defeinitely should use
the placeful workflow mechanism.
Do I have to define a workflow for each document, or can I define
everything in one workflow (placefull or not) ?
You can apply the same workflow to different document types. That's what
is done with default CPSDefault workflows.
All it says about "Placeful workflow configuration" is:
Workflow configuration is placeful in CPS: we can decide that for a
given subtree, a given
portal type will follow a given workflow. A placeful (local) workflow is
used for instance to
have a subtree dedicated to public content where objects must pass
through a reviewing
process (sections), and another subtree where the objects can be created
and worked
upon easily by the members (workspaces).
It alos says:
Set up the appropriate workflow chain in sections
CPS workflows are placeful: it is possible to indicate that a given
portal type follows different workflows according to its location on the
site.
We usually make a distinction between CPS sections and workspaces: a
workflow chains configuration file exists in both roots.
In the ZMI, go to the sections folder, and click on the
“cps_configuration” file: here you can change the mapping between
allowed portal types and the workflow they have to follow in sections.
If you have executed the CPSWorkflowHowTo installer, the Schedule portal
type should be mapped to the “cps_validation_wf” workflow.
You can add a '.cps_workflow_configuration' configuration file in each
folder, although, if your folders are all in the same upper folder, you
can set workflow subchains on a sole .cps_workflow_configuration file there.
That sounds to me that I have to create a dedicated workflow for each
document, since each document, which can be created in the students
folder, has it's portal_type.
Just change the mapping so that these different document types follow
the same workflow.
Hope this helps, regards,
--
Anahide Tchertchian, Nuxeo
Mail: [EMAIL PROTECTED] - Tel: +33 (0)1 40 33 71 60
http://www.nuxeo.com - http://www.cps-project.org
_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel