This discussion is archived
1 Reply Latest reply: Mar 21, 2012 5:46 AM by viktor.jarolim RSS

Update orderdata as well as suspend order in single automationtask receiver

Sachin_Lokhande_OSM Newbie
Currently Being Moderated
Hi,

I am trying to update order data using <OrderDataUpdate> and at the same time suspending the order using XML-API but i am getting below error message.

<OrderDataUpdate xmlns="http://www.metasolv.com/OMS/OrderDataUpdate/2002/10/25">
<UpdatedNodes>
<_root>
<lineNewOrder>
<header>
<response>
<statusCode>101</statusCode>
<statusMessage>Invalid Request received for WITA Inbound Interface ActivationOrder</statusMessage>
</response>
</header>
</lineNewOrder>
</_root>
</UpdatedNodes>
</OrderDataUpdate>&lt;SuspendOrder.Response xmlns="urn:com:metasolv:oms:xmlapi:1"&gt;&lt;OrderID&gt;34229&lt;/OrderID&gt;&lt;OrderHistID&gt;1046201&lt;/OrderHistID&gt;&lt;/SuspendOrder.Response&gt;]
at oracle.communications.ordermanagement.automation.plugin.AbstractScriptPluginImplementation.updateOrderData(Unknown Source)
at oracle.communications.ordermanagement.automation.plugin.AbstractScriptPluginImplementation.runCommonFunctionality(Unknown Source)
at oracle.communications.ordermanagement.automation.plugin.ScriptRunnerImpl.runScript(Unknown Source)
at oracle.communications.ordermanagement.automation.plugin.AbstractScriptAutomator.run(Unknown Source)
at com.mslv.oms.automation.plugin.AbstractAutomator._runAutomator(Unknown Source)
at oracle.communications.ordermanagement.automation.plugin.XQueryReceiver_etej5p_EOImpl._runAutomator(XQueryReceiver_etej5p_EOImpl.java:205)
at com.mslv.oms.automation.AutomationDispatcher.a(Unknown Source)
at com.mslv.oms.automation.plugin.AutomationDispatcherImpl.processMessage(Unknown Source)
at com.mslv.oms.automation.AutomationDispatcher.onLocalMessage(Unknown Source)
at com.mslv.oms.automation.plugin.AutomationDispatcherImpl.a(Unknown Source)
at com.mslv.oms.automation.plugin.i.a(Unknown Source)
at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage(Unknown Source)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4585)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4271)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3747)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5096)
at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
Caused by: com.mslv.oms.automation.OrderUpdateException: Error updating order data: orderId[34229] orderHistId[1046199]
at com.mslv.oms.automation.TaskContextBean.updateOrderData(Unknown Source)
... 23 more
Caused by: com.mslv.oms.handler.InternalErrorException: Unexpected error : Invalid Xml Data :Expected 'EOF'.
  • 1. Re: Update orderdata as well as suspend order in single automationtask receiver
    viktor.jarolim Explorer
    Currently Being Moderated
    Could you please explain what exactly you mean by suspend the order and also describe the context?
    What type of automator are we talking?
    If you want to suspend the task and you're in a task automator, you just invoke the suspendTask method on the context the same way you would invoke the completeTaskOnExit.
    If you want to suspend the order, this is possible by invoking the processXmlRequest method on the context object and passing the xml string in parameter.
    But you need to test this, I have never used an automator to suspend an order.

    regards
    Viktor

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points