Announcement

Collapse
No announcement yet.

More variables

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

  • More variables

    Hi, I create the step #0 in transformer:
    {
    var nombre = 'PETER';
    localMap.put("PACI", nombre);
    }


    After in other step #1:
    {
    localMap.get('PACI&#039
    }


    and the error is:

    .......
    ERROR [4_destination_1.dispatcher.1] org.mule.impl.DefaultExceptionStrategy:
    ************************************************** ******************************
    Message : TypeError: Cannot find function text. (<cmd>#2) (org.mozilla.javascript.EcmaError)
    Type : org.mule.umo.transformer.TransformerException
    Code : 64999
    Transformer : Transformer{name=&#039;4_destination_1&#039;, returnClass=false, returnClass=false, sourceTypes=[]}
    JavaDoc : http://mule.codehaus.org/docs/apidoc...Exception.html
    ************************************************** ******************************
    Exception stack is:
    1. TypeError: Cannot find function text. (<cmd>#2) (org.mozilla.javascript.EcmaError)
    org.mozilla.javascript.ScriptRuntime:3226 (null)
    2. TypeError: Cannot find function text. (<cmd>#2) (org.mozilla.javascript.EcmaError) (org.mule.umo.transformer.TransformerException)
    com.webreach.mirth.server.mule.transformers.JavaSc riptTransformer:66 (http://mule.codehaus.org/docs/apidoc...Exception.html)
    ************************************************** ******************************

    .......

    Why?

    Thanks!!

  • #2
    Re: More variables

    Make sure you are using a Javascript step, rather than a mapper step in your transformers.
    Chris Lang

    Comment

    Working...
    X