|
List Info
Thread: CPSWorkflow sub-object difficulties
|
|
| CPSWorkflow sub-object difficulties |
  United States |
2007-05-22 04:40:58 |
|
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_request217;
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:
* Module ZPublisher.Publish, line 115, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 41, in call_object
* Module
Products.CMFCore.FSPythonScript, line 108, in __call__
* Module
Shared.DC.Scripts.Bindings, line 311, in __call__
* Module
Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
* Module
Products.CMFCore.FSPythonScript, line 164, in _exec
* Module None, line 24, in content_status_modify
<FSPythonScript at
/DBR/content_status_modify used for /DBR/members/dbr/00000000001>
Line 24
* Module AccessControl.ZopeGuards,
line 341, in
guarded_apply
* Module AccessControl.ZopeGuards,
line 363, in
builtin_guarded_apply
* Module
Products.CPSWorkflow.workflowtool, line 711, in doActionFor
* Module
Products.CPSWorkflow.workflowtool, line 754, in _doActionForRecursive
* Module
Products.CPSWorkflow.workflowtool, line 755, in _doActionForRecursive
* Module
Products.CPSWorkflow.workflowtool, line 734, in _doActionFor
WorkflowException: No workflow provides the
"geo_request" action.
As far as I can tell, the sub-object can’t
follow the parent in its transitioning. How should I go about allowing this?
TIA,
Jonathan
|
| Re: CPSWorkflow sub-object difficulties |
  France |
2007-05-23 09:38:58 |
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 nuxeo.com - Tel: +33 (0)1 40 33 79 87
http://www.nuxeo.com - http://www.nuxeo.org
_______________________________________________
cps-users mailing list
cps-users lists.nuxeo.com
htt
p://lists.nuxeo.com/mailman/listinfo/cps-users
|
|
[1-2]
|
|