Joachim Schmitz wrote: > Tarek Ziadé schrieb: > >> Joachim Schmitz wrote: >> >>> Tarek Ziadé schrieb: >>> >>>> Joachim Schmitz wrote: >>>> >>>>> 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 ? >>>> >>>> >>>> Maybe you could create a placeful workflow in that part of the portal, >>>> >>>> There's a complete documentation here: >>>> http://www.cps-project.org/sections/documentation/developers/cpsworkflow >>>> >>> >>> >>> Actually I don't understand how that would solve my problem. I have >>> something like this: >>> >>> - the manager creates the student-folder with a document containing >>> the admission examination results. >>> - the student can then do his first login >>> - at this first login a personal document is created >>> - then he can/must upload some documents >>> - then he can book his accommodation --> accommodation document is >>> created. >>> - then ... and so on >>> >> since, as far as i understand it, you are grouping one student's >> documents in one container, you can apply specific workflows >> on that container >> >>> Do I have to define a workflow for each document, or can I define >>> everything in one workflow (placefull or not) ? >>> >>> Is there somewhere an example, I can look at ? >> >> >> IIRC the document I have pointed explains how to do it. >> > 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). > > 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.
yes, since workflows are document oriented. But if the workflows you have are not changing a lot basic cps workflows behaviors, maybe you can manage to share the same workflow everywhere and change the transtion behaviors by code, and extend existing workflows by adding states and transitions Tarek > > _______________________________________________ cps-devel mailing list http://lists.nuxeo.com/mailman/listinfo/cps-devel
