Hi,

We have alert configured in our server and when any file inserts into
/alert/email/<<file-name>> the email sent to specified user.

However after upgrading ML from 6 to 8, the below messages started coming

TaskServer: state is already successor so not updating for
/alerts/email/15835948930718685389.xml

The file name is unique and it can not be same any time.

Could somebody help to resolve this.?

I am attaching pipeline for the reference.

Regards,
Indy
<?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/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/delete.xqy</module>
      </action>
    </execute>
  </state-transition>
</pipeline>
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to