1 Reply Latest reply on Apr 26, 2013 4:53 AM by FreakySoni

    Wrong context for task-status based notification

      Hi all,

      I have an automated task with two possible statuses (failure, success) and I have configured an status-based notification associated to the failure status that uses an XQuery sender.

      I get the following error:

      Caused By: net.sf.saxon.trans.XPathException: External object has wrong class (is class com.mslv.oms.automation.OrderNotificationContextBeanLocal, expected interface com.mslv.oms.automation.TaskNotificationContext

      The code that i use in the XQuery is:

      declare namespace context = "java:com.mslv.oms.automation.TaskNotificationContext";
      let $osmTask := context:getTaskMnemonic($context)

      According with the OSM 7.2 Developer's guide the context object passed to the XQuery is TaskNotificationContext (Table 5-4 Context Objects Passed To Plug-In).

      In the support site I've seen similar issues with the task Jeopardy notifications, that use the same context than the status-based notification:


      I will appreciate any help, thanks.