Announcement

Collapse

Mirth Connect 3.12.0 Released!

Mirth Connect 3.12.0 is now available as an appliance update and on our GitHub page. This release includes database performance improvements, improves visual HL7 representation, message pruning, keystore handling, PDF generation, community contributions, and fixes several security vulnerabilities. This release also contains many improvements to commercial extensions. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

How to set parameter like xsi:type in xml

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to set parameter like xsi:type in xml

    Hi !

    I was unable to set some parameters like that : xsi:type, and i really need it !
    Other parameters already works ; why this one ???

    Code:
    //I tried this : tmp['value']['@xsi:type']='aaaaa';
    //But it doesn't work at all ...
    <xmlmsg>
    <value xsi:type="XX" code="2" codeSystem="mycodesystem" codeSystemName="mycodesystemname" displayName="test"/>
    </xmlmsg>
    I got this error :

    ERROR-300: Transformer error
    ERROR MESSAGE: Error evaluating transformer
    java.lang.IllegalArgumentException: Name is not valid
    at org.apache.xmlbeans.impl.store.Cursor.validateLoca lName(Cursor.java:127)
    at org.apache.xmlbeans.impl.store.Cursor._setAttribut eText(Cursor.java:1148)
    at org.apache.xmlbeans.impl.store.Cursor.setAttribute Text(Cursor.java:3634)
    at org.mozilla.javascript.xmlimpl.XML.setAttribute(XM L.java:1516)
    at org.mozilla.javascript.xmlimpl.XMLList.setAttribut e(XMLList.java:667)
    at org.mozilla.javascript.xmlimpl.XMLList.putXMLPrope rty(XMLList.java:412)
    at org.mozilla.javascript.xmlimpl.XMLObjectImpl.ecmaP ut(XMLObjectImpl.java:233)
    at org.mozilla.javascript.ScriptRuntime.setObjectElem (ScriptRuntime.java:1397)
    at org.mozilla.javascript.ScriptRuntime.setObjectElem (ScriptRuntime.java:1389)
    at org.mozilla.javascript.gen.c342._c7(5515ca58-da46-4d67-adbf-63d280eb36a1:171)
    at org.mozilla.javascript.gen.c342.call(5515ca58-da46-4d67-adbf-63d280eb36a1)
    at org.mozilla.javascript.optimizer.OptRuntime.callNa me0(OptRuntime.java:106)
    at org.mozilla.javascript.gen.c342._c0(5515ca58-da46-4d67-adbf-63d280eb36a1:216)
    at org.mozilla.javascript.gen.c342.call(5515ca58-da46-4d67-adbf-63d280eb36a1)
    at org.mozilla.javascript.ContextFactory.doTopCall(Co ntextFactory.java:337)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(Scr iptRuntime.java:2755)
    at org.mozilla.javascript.gen.c342.call(5515ca58-da46-4d67-adbf-63d280eb36a1)
    at org.mozilla.javascript.gen.c342.exec(5515ca58-da46-4d67-adbf-63d280eb36a1)
    at com.webreach.mirth.server.mule.transformers.JavaSc riptTransformer.evaluateTransformerScript(JavaScri ptTransformer.java:372)
    at com.webreach.mirth.server.mule.transformers.JavaSc riptTransformer.transform(JavaScriptTransformer.ja va:286)
    at org.mule.transformers.AbstractEventAwareTransforme r.doTransform(AbstractEventAwareTransformer.java:4 8)
    at org.mule.transformers.AbstractTransformer.transfor m(AbstractTransformer.java:197)
    at org.mule.impl.MuleEvent.getTransformedMessage(Mule Event.java:251)
    at com.webreach.mirth.server.controllers.MessageObjec tController.getMessageObjectFromEvent(MessageObjec tController.java:482)
    at com.webreach.mirth.connectors.file.FileMessageDisp atcher.doDispatch(FileMessageDispatcher.java:79)
    at com.webreach.mirth.connectors.file.FileMessageDisp atcher.doSend(FileMessageDispatcher.java:213)
    at org.mule.providers.AbstractMessageDispatcher.send( AbstractMessageDispatcher.java:166)
    at org.mule.impl.MuleSession.sendEvent(MuleSession.ja va:191)
    at org.mule.impl.MuleSession.sendEvent(MuleSession.ja va:130)
    at org.mule.routing.outbound.AbstractOutboundRouter.s end(AbstractOutboundRouter.java:85)
    at org.mule.routing.outbound.FilteringMulticastingRou ter.route(FilteringMulticastingRouter.java:89)
    at org.mule.routing.outbound.OutboundMessageRouter$1. doInTransaction(OutboundMessageRouter.java:78)
    at org.mule.transaction.TransactionTemplate.execute(T ransactionTemplate.java:48)
    at org.mule.routing.outbound.OutboundMessageRouter.ro ute(OutboundMessageRouter.java:82)
    at org.mule.impl.model.DefaultMuleProxy.onCall(Defaul tMuleProxy.java:247)
    at org.mule.impl.model.seda.SedaComponent.doSend(Seda Component.java:209)
    at org.mule.impl.model.AbstractComponent.sendEvent(Ab stractComponent.java:277)
    at org.mule.impl.MuleSession.sendEvent(MuleSession.ja va:201)
    at org.mule.routing.inbound.InboundMessageRouter.send (InboundMessageRouter.java:161)
    at org.mule.routing.inbound.InboundMessageRouter.rout e(InboundMessageRouter.java:128)
    at org.mule.providers.AbstractMessageReceiver$Default InternalMessageListener.onMessage(AbstractMessageR eceiver.java:492)
    at org.mule.providers.AbstractMessageReceiver.routeMe ssage(AbstractMessageReceiver.java:271)
    at org.mule.providers.AbstractMessageReceiver.routeMe ssage(AbstractMessageReceiver.java:230)
    at com.webreach.mirth.connectors.vm.VMMessageDispatch er.routeTemplatedMessage(VMMessageDispatcher.java: 213)
    at com.webreach.mirth.connectors.vm.VMMessageDispatch er.doSend(VMMessageDispatcher.java:274)
    at org.mule.providers.AbstractMessageDispatcher.send( AbstractMessageDispatcher.java:166)
    at org.mule.impl.MuleSession.sendEvent(MuleSession.ja va:191)
    at org.mule.impl.MuleSession.sendEvent(MuleSession.ja va:130)
    at org.mule.routing.outbound.AbstractOutboundRouter.s end(AbstractOutboundRouter.java:85)
    at org.mule.routing.outbound.FilteringMulticastingRou ter.route(FilteringMulticastingRouter.java:89)
    at org.mule.routing.outbound.OutboundMessageRouter$1. doInTransaction(OutboundMessageRouter.java:78)
    at org.mule.transaction.TransactionTemplate.execute(T ransactionTemplate.java:48)
    at org.mule.routing.outbound.OutboundMessageRouter.ro ute(OutboundMessageRouter.java:82)
    at org.mule.impl.model.DefaultMuleProxy.onCall(Defaul tMuleProxy.java:247)
    at org.mule.impl.model.seda.SedaComponent.doSend(Seda Component.java:209)
    at org.mule.impl.model.AbstractComponent.sendEvent(Ab stractComponent.java:277)
    at org.mule.impl.MuleSession.sendEvent(MuleSession.ja va:201)
    at org.mule.routing.inbound.InboundMessageRouter.send (InboundMessageRouter.java:161)
    at org.mule.routing.inbound.InboundMessageRouter.rout e(InboundMessageRouter.java:128)
    at org.mule.providers.AbstractMessageReceiver$Default InternalMessageListener.onMessage(AbstractMessageR eceiver.java:492)
    at org.mule.providers.AbstractMessageReceiver.routeMe ssage(AbstractMessageReceiver.java:271)
    at org.mule.providers.AbstractMessageReceiver.routeMe ssage(AbstractMessageReceiver.java:230)
    at com.webreach.mirth.connectors.file.FileMessageRece iver.processFile(FileMessageReceiver.java:208)
    at com.webreach.mirth.connectors.file.FileMessageRece iver.poll(FileMessageReceiver.java:130)
    at org.mule.providers.PollingMessageReceiver.run(Poll ingMessageReceiver.java:118)
    at org.mule.impl.work.WorkerContext.run(WorkerContext .java:290)
    at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.runTask(ThreadPoolExecutor. java:650)
    at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.run(ThreadPoolExecutor.java :675)
    at java.lang.Thread.run(Unknown Source)


    Thanks for your replies.
    Please HELP it's really important
    Antaris

  • #2
    Re:How to set parameter like xsi:type in xml

    Try coding against the DOM XML object in JavaScript instead of using the tmp[][][] way of referencing incoming and outgoing data in Mirth. tmp[][][] is part of the helper functions and other code that WebReach added to Mule.

    John

    Comment


    • #3
      Re:How to set parameter like xsi:type in xml

      Try coding against the DOM XML object in JavaScript instead of using the tmp[][][] way of referencing incoming and outgoing data in Mirth. tmp[][][] is part of the helper functions and other code that WebReach added to Mule.

      John

      Comment

      Working...
      X