I have a document in its initial state ( http://marklogic.com/states/initial
) and I configured my CPF pipeline as:
<state-transition>
<annotation>ready</annotation>
<state>http://marklogic.com/states/ready</state>
<on-success>http://marklogic.com/states/completed</on-success>
<on-failure>http://marklogic.com/states/error</on-failure>
<execute>
<condition>
<module>/MarkLogic/cpf/actions/namespace-condition.xqy</module>
<options xmlns="/MarkLogic/cpf/actions/namespace-condition.xqy">
<namespace/>
</options>
</condition>
<action>
<module>action.xqy</module>
</action>
</execute>
</state-transition>
Now, when I change the state of the document using:
cpf:document-set-state("/myDocs/example.xml","http://marklogic.com/states/ready")
The CPF action module action.xqy is not executed.
Is there any way to explicitly change the status of a document and run the CPF action module configured for this state?
Rahul source
share