OSM: COM som automation plugin

Hello

I'm new with the OSM (7.2.2) and try to build a CEP. I created two cartridges (one for the COM) and the other for SOM.

I've created rules of recognition and I can inject an order in COM cartridge with CreateOrder WebService method. It works very well.

Now what I want to accomplish is to invoke the cartridge SOM in a task automated cartridge of COM. In COM cartridge, I did the following:

  1. Created a task automated with Automation XQuery sender - inner. My default ordering process use this automated task.
  2. The sender of XQuery uses an XQuery query that returns the following:
    <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
                      xmlns:ord="http://xmlns.oracle.com/communications/ordermanagement"
                      xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
        <soapenv:Header>
            <wsse:Security>
                <wsse:UsernameToken>
                    <wsse:Username>admin</wsse:Username>
                    <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">Oracle001</wsse:Password>
                </wsse:UsernameToken>
            </wsse:Security>
        </soapenv:Header>
        <soapenv:Body>
            <ord:CreateOrder>
                <co:customerOrder xmlns:co="http://xmlns.cgi.com/CustomerOrder" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                    <co:order>
                       <co:summary>
                          <co:orderNumber>{ $orderNumber }</co:orderNumber>
                       </co:summary>
                    </co:order>
                 </co:customerOrder>
            </ord:CreateOrder>
        </soapenv:Body>
    </soapenv:Envelope>

3. the tab "Routing" XQuery Sender 'To' use the JNDI name 'oracle, communications, ordermanagement, WebServiceQueue' and 'Reply To' JNDI name, oracle, communications, ordermanagement, WebServiceResponseQueue

I get the following exception and I can not understand why... Any help would be appreciated!

# < October 1, 2013 20:04:45 CEST > < error > < SGD > < OSM1 > < AdminServer > < ExecuteThread: "14" for queue: 'oms.automation' > < SGD-automation > < BEA1 108CE2EBFBEE3057A4BD > < aaa1e3e54fdb4a71:-13852a1c:1416f0bddc3:-8000-000000000001724e > < 1380650685374 > < BEA-000000 > < automation. [AutomationDispatcher: cannot run plugin[/automation/plugin/internal/task/CGI_COM_Base/1.0.0.0.0/SomProvisionOrderTask/do] because of the com.mslv.oms.automation.AutomationException: Exception thrown during execution of the Script resource [osmmodel:///CGI_COM_Base/1.0.0.0.0/resources/ComponentInteraction/CreateProvisioningOrderRequest_do.xquery]; exceptional location: null

com.mslv.oms.automation.AutomationException: com.mslv.oms.automation.AutomationException: Exception thrown during execution of the Script resource [osmmodel:///CGI_COM_Base/1.0.0.0.0/resources/ComponentInteraction/CreateProvisioningOrderRequest_do.xquery]; exceptional location: null

at com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.a (unknown Source)

at com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.processMessage (unknown Source)

at com.mslv.oms.automation.AutomationDispatcher.onLocalMessage (unknown Source)

at oracle.communications.ordermanagement.cluster.message.a.a (unknown Source)

at oracle.communications.ordermanagement.cluster.message.impl.a.a (unknown Source)

at oracle.communications.ordermanagement.cluster.message.impl.a.a (unknown Source)

at oracle.communications.ordermanagement.cluster.impl.a.a (unknown Source)

at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage (unknown Source)

at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:583)

at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:486)

at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:388)

at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)

at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)

at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)

to weblogic.jms.client.JMSSession.access$ 000 (JMSSession.java:115)

to weblogic.jms.client.JMSSession$ UseForRunnable.run (JMSSession.java:5170)

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.AutomationException: Exception thrown during execution of the Script resource [osmmodel:///CGI_COM_Base/1.0.0.0.0/resources/ComponentInteraction/CreateProvisioningOrderRequest_do.xquery]; exceptional location: null

at oracle.communications.ordermanagement.automation.plugin.AbstractScriptPluginImplementation.transform (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.AbstractScriptSendAutomator.run (unknown Source)

at com.mslv.oms.automation.plugin.AbstractAutomator._runAutomator (unknown Source)

at com.mslv.oms.automation.AutomationDispatcher.a (unknown Source)

at com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.processMessage (unknown Source)

at com.mslv.oms.automation.AutomationDispatcher.onLocalMessage (unknown Source)

at oracle.communications.ordermanagement.cluster.message.a.a (unknown Source)

at oracle.communications.ordermanagement.cluster.message.impl.a.a (unknown Source)

at oracle.communications.ordermanagement.cluster.message.impl.a.a (unknown Source)

at oracle.communications.ordermanagement.cluster.impl.a.a (unknown Source)

at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage (unknown Source)

at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:583)

at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:486)

at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:388)

at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)

at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)

at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)

to weblogic.jms.client.JMSSession.access$ 000 (JMSSession.java:115)

to weblogic.jms.client.JMSSession$ UseForRunnable.run (JMSSession.java:5170)

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: javax.xml.transform.TransformerException: org/apache/Commons/httpclient/util/URIUtil

to oracle.communications.ordermanagement.rule.XQueryHelper$ b.a (unknown Source)

at oracle.communications.ordermanagement.rule.XQueryHelper.transform (unknown Source)

at oracle.communications.ordermanagement.rule.XQueryHelper.transform (unknown Source)

at oracle.communications.ordermanagement.rule.XQueryHelper.transform (unknown Source)

to oracle.communications.ordermanagement.automation.plugin.XQueryPluginImplementation$ c.transform (unknown Source)

at oracle.communications.ordermanagement.automation.plugin.AbstractScriptPluginImplementation.transform (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.AbstractScriptSendAutomator.run (unknown Source)

at com.mslv.oms.automation.plugin.AbstractAutomator._runAutomator (unknown Source)

at com.mslv.oms.automation.AutomationDispatcher.a (unknown Source)

at com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.processMessage (unknown Source)

at com.mslv.oms.automation.AutomationDispatcher.onLocalMessage (unknown Source)

at oracle.communications.ordermanagement.cluster.message.a.a (unknown Source)

at oracle.communications.ordermanagement.cluster.message.impl.a.a (unknown Source)

at oracle.communications.ordermanagement.cluster.message.impl.a.a (unknown Source)

at oracle.communications.ordermanagement.cluster.impl.a.a (unknown Source)

at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage (unknown Source)

at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:583)

at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:486)

at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:388)

at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)

at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)

at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)

to weblogic.jms.client.JMSSession.access$ 000 (JMSSession.java:115)

to weblogic.jms.client.JMSSession$ UseForRunnable.run (JMSSession.java:5170)

at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)

>

Just to follow up, I adjusted my XQuery and it works fine now. Problem solved.

Tags: Oracle Applications

Similar Questions

  • Cannot create automator Custom Automation Plugin

    Hi all

    I have a little problem with the Plugins of customs automation, I work with a group of developers of the OSM, we use the same installation of the OSM and even the same reference cell, but when we develop a custom Plugin of Automation (Java class that connects to a database and extract information to make an update of order data) my classmates of teams instances OSM work correctly but mine generates an error and is always the same for the various customs Automatios Plugins.

    I looked up this error on Oracle Support and I have found this:
    Bug 14117065 : ERROR SAVING IS INFINITELY GENERATED NOTIFICATION SETTINGS
    It seems that it's my mistake, but it is strange because OSM my team mates as I told before.

    This is the error:

    < error > < SGD > < CO-L-14109ZG > < AdminServer > < ExecuteThread: '13' for the queue: 'oms.automation' > < SGD-automation > < BEA1 43AD8411EF12560E5D6A > < 46645d5ea9e48215:5aa9f334:13ab1fa4b23: - 8000-0000000000000374 > < 1351607306050 > < BEA-000000 > < automation. AutomationDispatcher: Cannot create automator
    javax.naming.NameNotFoundException: while trying to search for "automation.plugin/internal/task/NcaOsmOrquestacionBA_TOIP/1.0.0.0.0/TANotificarCrmEstadosBA_TOIP/do" did not find subcontext 'automation '. Solved "; left name "Automation/plugin/internal/task/NcaOsmOrquestacionBA_TOIP/1/0/0/0/0/TANotificarCrmEstadosBA_TOIP/do.
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:247)
    at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:214)
    at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:411)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at com.mslv.oms.automation.AutomationDispatcher.i (unknown Source)
    at com.mslv.oms.automation.AutomationDispatcher.h (unknown Source)
    at com.mslv.oms.automation.AutomationDispatcher.c (unknown Source)
    at com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.c (unknown Source)
    at com.mslv.oms.automation.AutomationDispatcher.d (unknown Source)
    at com.mslv.oms.automation.AutomationDispatcher.a (unknown Source)
    at com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.a (unknown Source)
    at com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.c (unknown Source)
    at com.mslv.oms.automation.plugin.AutomationEventHandlerImpl.processMessage (unknown Source)
    at com.mslv.oms.automation.AutomationDispatcher.onLocalMessage (unknown Source)
    at oracle.communications.ordermanagement.cluster.message.e.a (unknown Source)
    at oracle.communications.ordermanagement.cluster.message.impl.c.a (unknown Source)
    at oracle.communications.ordermanagement.cluster.message.impl.c.a (unknown Source)
    at oracle.communications.ordermanagement.cluster.impl.a.a (unknown Source)
    at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage (unknown Source)
    at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:574)
    at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:477)
    at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:379)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
    at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)
    to weblogic.jms.client.JMSSession.access$ 000 (JMSSession.java:115)
    to weblogic.jms.client.JMSSession$ UseForRunnable.run (JMSSession.java:5170)
    at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)

    To avoid the error happening much, set the redelivery JMS on all queues of the OSM to a reasonable value (for development, it is generally 1 restitution try max with 5000ms between attempts, for the production of these values are generally higher in 15-20 attempts with 7000-15000ms between attempts).

    As to why he can not find the plugin, it looks like a problem with the plugin ear file deployment. I'd say comparing your list of deployments with your colleagues in the wls console.

    Brian.

  • What commands can be executed with COM/OLE automation?

    I think I posted this question before. Hope I have better luck this time.

    Where are reflected the "remote control" commands (those that are available via COM/OLE automation)?

    I would be happy if at least I know how to run the following command programmatically:

    Document | Text OCR Recogniotion | Recognize text using OCR

    This particular command is possible for a plugin perhaps?

    TIA,

    -Ramon

    Of course!

  • Cannot run the com.oracle.servicebus.plugin purpose

    I am trying to package an OSB 12 application, consisting of several projects with maven 3, with the plugin servicebus. I get this error:

    Cannot run com.oracle.servicebus.plugin:oracle goal-servicebus - plugin:12.1.3 - 0 - 0:package (by default-package) on SomeProject: failed to create the Service Bus Configuration Archive. See the log in the directory build for more information.

    But there is no more information in the newspaper, or e or x switches give me more info on what are supposed to give me a more talkative output. I know that plugin errors are like that but this servicebus plugin does not seem to be well documented, is there a way I could identify the exact cause?

    I have it.

    The commEnv.sh script (which runs along the way) affects the JAVA_HOME path does not exist if the variable JAVA_VENDOR is not defined.

    I was brutal and modified the commEnv.sh even though I guess that's not a file with that I should be playing. But it seems that these scopes are valid in scripts sh...

    Now, I got a success of the generation!

  • ActionDescriptor Automation plugin return value

    Hello.

    I create a bunch of plugins that work together, and I'm creating a Panel to control all this. The group currently has a single button that triggers the call of an event that is the event of the execution of my automation plugin. I can send parameters to the side js side C++ using an ActionDescriptor, and works very well.

    The executeAction return value must be the result, which is also an ActionDescriptor according to documentation - I would use it to return data to the plugin in order to establish a two-way communication between the user interface and my central plugin. My question is this: how you can set the ActionDescriptor on the C++ side must be returned by executeAction? There is no reference to this in the kit of development or forums.

    Thank you

    Barna

    For the filter, see Dissolve.cpp (DoFinish()) and DissolveScripting.cpp, (WriteScriptParameters())

    For automation, see Listener.cpp (Execute()) and ListenerScripting.cpp (WriteScriptParams())

  • Need of Encarta acroexch.dll I need it to do some automation to Excel to PDF. Which product is this file or where I can get it?

    I need it to do some automation to Excel to PDF. Which product is this file or where I can get it?

    The correct function is "CreateObject" - you misspelled it.

  • PropertyUtils in Automation plugin

    Hello

    I wonder if it is possible to use PropertyUtils plugin automation functions, for example PIGetXMP(), PISetXMP(), PIGetSlices()? So far I have errors after the call, maybe I'm missing something

    I would use an automation plugin get room and action-to-action. See examples of getter and the listener.

    The utils property was designed for the fichier/Format/Selection/et.al filter. types of plugin.

  • Documentation for the automation plugins

    Hello

    I'm new with Oracle OSM 7.2.2 and trying to find documentation for the feature that is available in automation_plugins.jar

    I see that there are many classes available that can be used in XQuery Automators, for example:

    declare namespace context = "java:com.mslv.oms.automation.TaskContext";
    declare variable $context external;
    context:completeTaskOnExit($context, "success")
    

    There is nothing in Oracle Communications order and Service Management Documentation that describes what classes are available in automation_plugins.jar and how they can be used. Is there a javadoc or other documentation somewhere?

    Thanks in advance

    Hello

    Yes, there are java documentation available. It will come with SDK during installation of the OSM.

    Check your default folder: C:\Program Files\OSM\SDK\osm7.2.2.1.x.x-javadocs.zip.

    Hope this helps you.

    Concerning

    Srinivas

  • Compiler error of the library for QuickTest Pro automation Plugin files

    I'm trying the Flex Automation Package in the Flex 3 beta (because you do not have to have a license of data services to try it)

    I installed flex 3 beta and the package automation that accompanies it, but when I try to compile the library files, I get "an internal error has occurred. Please consult the error log"and"Unable to load SWC automation.swc.
    The log file has. MESSAGE Uncaught in the compiler exception"as well as all sorts of other info.
    I am trying to use the project > properties > Flex compiler method.

    A strange thing is that I can not reference the swc libraries locally. Flex Builder is installed here: C:\Program Files\Adobe\Flex Builder 3 and the SWCs are here: C:\Program Files\Adobe\Flex Builder 3\sdks\moxie\frameworks\libs, so I tried it - include-libraries "sdks\moxie\frameworks\libs\automation.swc" "sdks\moxie\frameworks\libs\automation_agent.swc" "sdks\moxie\frameworks\libs\qtp.swc" and I always get the error "can't open ' sdks\moxie\frameworks\libs\... '. ' CFC ' "if I put the whole path, the error continues, but I see (listed at the beginning of my post) internal error messages.

    for what it's worth: I tested with http://examples.adobe.com/flex2/inproduct/lcds/flexstore/flexstore.html, QTP and QTP is grateful for the elements in the flex... So I'm sure that the side test is set up right, I can not just to compile libraries in my own projects to test.

    If anyone has had this problem?... or someone can see where I am screwing things up?

    Well... in case that everyone scrolls on this problem, I finally understand how to make it work.

    I was adding only libraries in the section 'Compiler' project > properties. I found that libraries should also be added in the "Library Path" (go to project > properties > Flex Build Path > library path)

    I can now test my projects with QTP.

    However, I do not understand why I can't relatively reference libraries in the compiler section. I always have to enter the full path to the library.

  • Flash Player bug com som

    APOs an instalacao da ultima versão do Flash Player, estou tendo problemas ao see videos, em todos os navegadores as tenho wont audio (10 of IE, Firefox, Chrome)... Or seja, os videos are sendo exibidos usually, mas sem som!

    [ English] > After you have installed the latest version of Flash Player, I have audio problems When you view videos in all browsers I have installed (10 IE, Firefox, Chrome) ... In other words, videos are displays normally, but without sound! !

    If it's on Youtube, reactivate the sound

  • Get the path to the current document. Automation plugin

    How to get the path to the current document? (C++ Plugin)

    I used headset and getter - but I do not see that information.

    I understand that there is something in the opposite direction of:

    FullPathToAlias ('... filename.psd ', aliasValue);

    error = sPSActionDescriptor-> PutAlias (someDesc, keyFileReference, aliasValue);

    But how to someDesc so there is a lot of open document

    I'm sorry.

    the answer is:

    logfilename Char [MAX_PATH];

    Manage aliases.

    error = PIUGetInfo (classDocument, keyFileReference, & alias, NULL);

    AliasToFullPath (alias, & filename [0], MAX_PATH);

  • After Effects cs5.5 educational come with Cycore plugins?

    Preinsltalled, I'm trying the trial version, and there is no Cycore effects? I want to buy the edutcaional version, but I don't know if I want too, because I don't know if it has effects Cycore, as CC particle World

    Details of the trial version

  • The AIA question: COM and SOM are in different instances of the OSM

    Hi all!

    I tried to install control components to enable it in my local environment.

    When I set up "OracleComms_OSM_O2A_COMSOM_TypicalSolution" in the same server, the order of implementation of the SOM was created successfully.

    But during the installation of control components to enable it in the step "Setup of WebLogic Server resources", I decided to use the typical topology, deployment, central order (COM) management and management service (SMO) order in different instances of the OSM.

    After configure WebLogic Server Components in both machines (COM - SOM) I have been "OracleComms_OSM_O2A_COM_TypicalSolution" in my local computer and 'OracleComms_OSM_O2A_SOM_Solution' in the other machine. But when I'm in the tests of time that COM order cannot create the order of implementation of the SOM in the other machine.

    I need to configure to be available to create orders of Provisioning SOM in a different machine according to the proposed model?


    Best regards

    AndresG

    Hi Andres,

    Please check two things if you did that you have two separate instances

    (1) in the ProvisioningSITask, please check if 'WebServiceCreateProvisioningOrderQueue' has any published without any error message.

    (2) If a 1 is Yes, then please check if you have created a JMS bridging between the two instances of the OSM. As the COM message should sink to SOM per JMS Bridging.

    Thank you
    Native Jacques

  • is com.mslv.oms.automation.AutomationException by updating the order data

    Hello

    I wrote a sample Xquery Automator with external event receiver.

    DECLARE namespace SGD = "urn: com:metasolv:oms:xmlapi:1";

    DECLARE namespace log = "java: org.apache.commons.logging.Log;

    declare namespace automator = "java: oracle.communications.ordermanagement.automation.plugin.ScriptReceiverContextInvocation";

    declare the namespace context = "java: com.mslv.oms.automation.TaskContext";

    " declare osm namespace = ' http://xmlns.Oracle.com/communications/OrderManagement "; "

    declare saxon namespace = " " http://Saxon.SF.NET/ "; "

    " declare namespace xsl = ' http://www.w3.org/1999/XSL/transform ";

    declare the external variable $context;

    declare the external variable $log;

    declare the external variable $automator;

    Let $taskData: = fn:root (.) / CRAMER. Response

    Let $orderId: = $taskData/CRAMERWOID

    Let $jid: = $taskData/CRAMERJOBID

    Let $ordUpdateReqXML: =)

    " < OrderDataUpdate xmlns =" http://www.MetaSolv.com/OMS/OrderDataUpdate/2002/10/25 "> "

    < update path = "/" >

    < job_id > HC < / job_id >

    < / update >

    < / OrderDataUpdate >

    )

    Let $ordUpdateReqXMLStr: saxon =: serialize($ordUpdateReqXML, <xsl:output method="xml" omit-xml-declaration="yes" indent="yes" saxon:indent-spaces="4"/>)

    return)

    Journal: info($log, "### XML Transformed")

    Journal: info ($log, $ordUpdateReqXML),

    Journal: info ($log, "# XML Transformed after serialized"),

    Journal: info ($log, $ordUpdateReqXMLStr),

    Automator:setUpdateOrder($Automator,"true"),

    Context:updateOrderData($context,$ordUpdateReqXMLStr),

    context: completeTaskOnExit ($context, "success")

    )


    but when running it throw exception automation:

    Caused by: java.lang.NullPointerException

    at oracle.communications.ordermanagement.automation.plugin.AbstractScriptPluginImplementation.updateOrderData (unknown Source)

    NOTE: - in Design Studio Plugin properties - Xquery Automation tab I tried with two control box checked and unchecked data verification options.

    Please guide me what is wrong with my code.

    Let me know if more information needed on this.

    Thank you

    Stack trace

    com.mslv.oms.automation.AutomationException

    at oracle.communications.ordermanagement.automation.plugin.AbstractExternalReceiverDispatcher.processMessage (unknown Source)

    at com.mslv.oms.automation.AutomationDispatcher.onLocalMessage (unknown Source)

    at oracle.communications.ordermanagement.cluster.message.a.a (unknown Source)

    at oracle.communications.ordermanagement.cluster.message.impl.a.a (unknown Source)

    at oracle.communications.ordermanagement.cluster.message.impl.a.a (unknown Source)

    at oracle.communications.ordermanagement.cluster.impl.a.a (unknown Source)

    at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage (unknown Source)

    at com.mslv.oms.security.base.ControllerBean.processExternalListenerAutomationMessage (unknown Source)

    at com.mslv.oms.security.base.OMSController_h9cupp_EOImpl.__WL_invoke (unknown Source)

    at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)

    at com.mslv.oms.security.base.OMSController_h9cupp_EOImpl.processExternalListenerAutomationMessage (unknown Source)

    at com.mslv.oms.security.base.OMSController_h9cupp_EOImpl_WLSkel.invoke (unknown Source)

    at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)

    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:222)

    at com.mslv.oms.security.base.OMSController_h9cupp_EOImpl_1036_WLStub.processExternalListenerAutomationMessage (unknown Source)

    at oracle.communications.ordermanagement.automation.plugin.AbstractExternalReceiverDispatcher.processMessage (unknown Source)

    at com.mslv.oms.automation.AutomationDispatcher.onLocalMessage (unknown Source)

    at com.mslv.oms.automation.plugin.AutomationDispatcherImpl.a (unknown Source)

    to com.mslv.oms.automation.plugin.AutomationDispatcherImpl$ 2.a (unknown Source)

    at oracle.communications.ordermanagement.cluster.message.ClusterMessageHandlerBean.onMessage (unknown Source)

    at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:583)

    at weblogic.ejb.container.internal.MDListener.run(MDListener.java:902)

    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: java.lang.NullPointerException

    at oracle.communications.ordermanagement.automation.plugin.AbstractScriptPluginImplementation.updateOrderData (unknown Source)

    I found the solution, just need to order to update set to false after the order data update

    Here is the update of Xquery

    DECLARE namespace SGD = "urn: com:metasolv:oms:xmlapi:1";

    DECLARE namespace log = "java: org.apache.commons.logging.Log;

    declare namespace automator = "java: oracle.communications.ordermanagement.automation.plugin.ScriptReceiverContextInvocation";

    declare the namespace context = "java: com.mslv.oms.automation.TaskContext";

    declare namespace osm = "http://xmlns.oracle.com/communications/ordermanagement";

    declare the saxon namespace = "http://saxon.sf.net/";

    declare namespace xsl = "http://www.w3.org/1999/XSL/Transform";

    declare the external variable $context;

    declare the external variable $log;

    declare the external variable $automator;

    Let $taskData: = fn:root (.) / CRAMER. Response

    Let $orderId: = $taskData/CRAMERWOID

    Let $jid: = $taskData/CRAMERJOBID

    Let $ordUpdateReqXML: =)

    http://www.MetaSolv.com/OMS/OrderDataUpdate/2002/10/25">

    HC

    )

    Let $ordUpdateReqXMLStr: saxon =: serialize($ordUpdateReqXML, )

    return)

    Journal: info($log, "### XML Transformed")

    Journal: info ($log, $ordUpdateReqXML),

    Journal: info ($log, "# XML Transformed after serialized"),

    Journal: info ($log, $ordUpdateReqXMLStr),

    Automator:setUpdateOrder ($Automator, true (()),

    Context:updateOrderData($context,$ordUpdateReqXMLStr),

    (: threshold, I have added to the problem)

    Automator:setUpdateOrder ($Automator, false (),.

    context: completeTaskOnExit ($context, "success")

    )

  • Automation as an action and via file/controller plugin

    Hello

    I have a plugin of automation that is scriptable (he has a number of settings exposed scriptable and can be saved and run from the scripts palette). The plugin displays the user interface when it is called interactively (from file/controller).

    I have however problems distinguish when it is called by a range of Action as a reading of the recorded action and when it was actually called interactively by file/plc (test in Photoshop CS6). The plugin invocation I check past action descriptor and if not empty, read parameters and do not display the user interface. On the end of the call, I write the return parameter to a descriptor for use in recorded action. With this in mind, after PS start first by selecting file/controller works as expected - no descriptor/parameters not passed in the plugin. But after a first call, Photoshop seems to keep the descriptor/settings written at the end of the plugin and passes on subsequent user called file/controller. The same happens if the plugin is called from a reading of the action recorded (and its expected). Basically after a first invocaction, the plugin will always receive descriptor action either that she called from a reading of action invoked by the user.

    I need to distinguish these two cases, and basically present UI/start from scratch when the user calls it and use the settings of the action at the action he plays. I found nothing in the SDK to point me to the solution, then I'd appreciate the help.

    In filter plugins I can at least start selector when it is called from the user interface and allowing free/ignore action descriptor data.

    I don't think you should interest you. The option that you care is the following:

    PIDialogPlayOptions playInfo

    This is the part of PIActionParameters * actionParameters

    This is part of your PSActionsPlugInMessage that comes in your Automation plugin entrypoint.

    This setting has three options:

    (a) always show the dialog box.

    (b) only show the dialog box if you do not like the settings you are given,

    (c) never display a dialog (either returns an error or move forward with the best options but do not stop with a dialog box)

    On the file menu, the user selected, you should get option a (always). In the Panel shares, you should get option a or b. Scripts, you can get all three options.

    There is also a property in PIProperties.h called propPlayInProgress, but the information above must be what to do the right thing with dialog boxes.

Maybe you are looking for