Mirth Community

Mirth Community (http://www.mirthcorp.com/community/forums/index.php)
-   Support (http://www.mirthcorp.com/community/forums/forumdisplay.php?f=6)
-   -   More variables (http://www.mirthcorp.com/community/forums/showthread.php?t=422)

fernandoma 09-26-2006 03:03 AM

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')
}


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='4_destination_1', 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!!

chrisl 09-26-2006 11:31 AM

Re: More variables
 
Make sure you are using a Javascript step, rather than a mapper step in your transformers.


All times are GMT -8. The time now is 12:28 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation