[CPS-users] CPSWorkflow sub-object difficulties

Winterflood, Jonathan jonathan.winterflood at capgemini.com
Thu May 24 10:07:07 CEST 2007


Thanks for your answer,

Indeed, the document is folderish (but not the subdocuments) and is a type created with cpsschemas and the types tool (as far as I can tell, I didn't create them)

So far, I have given both types the same workflow in members/.cps_workflow_configuration : workspace_dbr_loi_wf (my custom workflow)
In sections/.cps_workflow_configuration, both types use section_dbr_loi_wf (another custom workflow) and this seems to work fine: one can accept or reject the publication of pending texts and their parts (and the parts have the actions available)

However, the parts in the member spaces do not have the actions available.
Could this be a clue?

Regards,
Jonathan


-----Message d'origine-----
De : Anahide Tchertchian [mailto:at at nuxeo.com] 
Envoyé : mercredi 23 mai 2007 16:39
À : Winterflood, Jonathan
Cc : cps-users at lists.nuxeo.com
Objet : Re: [CPS-users] CPSWorkflow sub-object difficulties

Hi,

Winterflood, Jonathan a écrit :
> Hi,
> 
> I'm creating a special workflow for custom documents on my CPS site, and 
> I can't get objects with sub-objects to follow the flow:
> 
> I have a custom workflow, in which I created a second state 
> 'geo_index_pending'. There is a transition 'geo_request' that leads from 
> 'work' to 'geo_index_pending'.
> 
> In the documents (only top-level), the action appears. When I apply the 
> action, on documents without sub-documents there is no problem, but when 
> there are sub-documents, I get this error:

[...]

> As far as I can tell, the sub-object can't follow the parent in its 
> transitioning. How should I go about allowing this?

As I can tell, your document is folderish, wich is a good thing to make 
its children follow its transitions.
Now to make it happen ok, you have to change your sub document workflow 
so that it has all the transitions the parent has.
You don't have to declare actions for these new transitions if you do 
not want the sub document to follow them on its own, but they have to exist.

Regards,

-- 
Anahide Tchertchian, Nuxeo
Mail: at at nuxeo.com - Tel: +33 (0)1 40 33 79 87
http://www.nuxeo.com - http://www.nuxeo.org

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.




This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.