Nuxeo mailing list archives
[CPS-users] 'No workflow provides the "geo_request" action' for a
new trasition/state
Florent Guillaume
fg at nuxeo.com
Fri May 4 13:48:01 CEST 2007
Then it must be a permission problem. As a last resource, putting
debug statements in workflowtool.py would help, if you don't
understand what's going on.
Florent
On 3 May 2007, at 14:44, Winterflood, Jonathan wrote:
>
>
> Hi,
> I'm using CPSWorkflow to add a state/transitions to documents in a
> workspace. I'm therefore modifying the definition.xml file.
>
> I defined my extra state, entrance and exit transitions, basing myself
> on the 'accept' transition for submitted documents
>
> One of the extra transitions
> +<transition transition_id="geo_request"
> title="Request a geographical indexation"
> new_state="geo_index_pending" trigger="USER"
> before_script="" after_script="">
> <action
> url="%(content_url)s/content_status_modify?
> workflow_action=geo_request"
> category="dbr_loi_action">dbr_action_geo_request</action>
> <guard>
> <guard-role>Manager</guard-role>
> <guard-role>WorkspaceManager</guard-role>
> <guard-role>WorkspaceMember</guard-role>
> </guard>
> <transition-behavior behavior_id="merge"/>
> </transition>
>
> Adding the transition to the start state
> <state state_id="work" title="Work">
> + <exit-transition transition_id="geo_request"/>
> ....
>
> Now in my document view, the new action (dbr_action_geo_request)
> appears. However, if I try to use it, I get the following error:
> #
> Traceback (innermost last):
>
> * 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.
> #
>
> I can't figure out why doActionFor cannot find the action, since I was
> only able to click the link is because if _was_ found in the first
> place...
> What am I missing here?
>
> TIA,
> Jonathan
>
>
> 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.
>
> _______________________________________________
> cps-users mailing list
> cps-users at lists.nuxeo.com
> http://lists.nuxeo.com/mailman/listinfo/cps-users
>
--
Florent Guillaume, Director of R&D, Nuxeo
Open Source Enterprise Content Management (ECM)
http://www.nuxeo.com http://www.nuxeo.org +33 1 40 33 79 87
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.