1 Reply Latest reply: Oct 23, 2012 11:55 AM by Lucas Andres Muñoz RSS

    <Cannot create automator> javax.naming.NameNotFoundException

    Guaracy.Mendes-Oracle
      Hi team,
      I'm getting that error after created a new automated task (there is a internal xquery automator):
      <Cannot create automator>
      javax.naming.NameNotFoundException: While trying to lookup 'automation.plugin/internal/task/XXXXXX_XOM_Solution/1.0.0.0.0/XOM_SendBill_getMailResponse/do' didn't find subcontext 'automation'. Resolved ''; remaining name 'automation/plugin/internal/task/XXXXXX_XOM_Solution/1/0/0/0/0/XOM_SendBill_getMailResponse/do'

      Here is my xquery code:
      =================
      declare namespace context = "java:com.mslv.oms.automation.TaskContext";
      declare namespace log = "java:org.apache.commons.logging.Log";
      declare namespace automator = "java:oracle.communications.ordermanagement.automation.plugin.ScriptReceiverContextInvocation";

      declare variable $context external;
      declare variable $log external;
      declare variable $automator external;

      return (
      log:info($log, '[getMailResponse] - Recebido aviso de envio de email'),

      automator:setUpdateOrder($automator,"true"),
      automator:completeTaskOnExit("success"),

      (
      <OrderDataUpdate xmlns="http://www.metasolv.com/OMS/OrderDataUpdate/2002/10/25">
      <UpdatedNodes>
      <_root>
      <eMailResponse>
      Testing...
      </eMailResponse>
      </_root>
      </UpdatedNodes>
      </OrderDataUpdate>
      )
      )

      Thanks in advance for your help.