[CPS-users] CPSWorkflow sub-object difficulties

Anahide Tchertchian at at nuxeo.com
Wed May 23 16:38:58 CEST 2007


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 list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.