We have a CPF configuration. Defined on a database to pick up the docs under
the path /alerts/email/ when a document matching this condition arrives I don't
see the corresponding action getting fired. I don't see any error in the
error.log. Attached is the pipeline and action module. When I do the
cpf:document-get-status("/alerts/email/test2.xml") I get a done status.Any idea on how to debug. Thanks in advance. Santhosh Kanugovi
<?xml version="1.0" encoding="UTF-8"?> <pipeline xmlns="http://marklogic.com/cpf/pipelines"> <pipeline-name>Email Alert Pipeline</pipeline-name> <pipeline-description>Pipeline to send email alert messages</pipeline-description> <success-action> <module>/MarkLogic/cpf/actions/success-action.xqy</module> </success-action> <failure-action> <module>/MarkLogic/cpf/actions/failure-action.xqy</module> </failure-action> <state-transition> <state>http://marklogic.com/states/initial</state> <on-success>http://marklogic.com/states/sent</on-success> <on-failure>http://marklogic.com/states/error</on-failure> <execute> <condition> <module>/MarkLogic/cpf/actions/mimetype-condition.xqy</module> <options xmlns="/MarkLogic/cpf/actions/mimetype-condition.xqy"> <mime-type>text/xml</mime-type> </options> </condition> <action> <module>/app/lib/actions/send.xqy</module> </action> </execute> </state-transition> <state-transition> <state>http://marklogic.com/states/sent</state> <on-success>http://marklogic.com/states/deleted</on-success> <on-failure>http://marklogic.com/states/error</on-failure> <execute> <condition> <module>/MarkLogic/cpf/actions/mimetype-condition.xqy</module> <options xmlns="/MarkLogic/cpf/actions/mimetype-condition.xqy"> <mime-type>text/xml</mime-type> </options> </condition> <action> <module>/app/lib/actions/delete.xqy</module> </action> </execute> </state-transition> </pipeline>
send.xqy
Description: send.xqy
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
