Announcement

Collapse
No announcement yet.

Problem using own java class

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

  • Problem using own java class

    Hi

    Im trying to use a small java class in transformer but can't get it running but receive a following error:

    RROR-300: Transformer error
    ERROR MESSAGE: Error evaluating transformer
    org.mozilla.javascript.EcmaError: ReferenceError: "PatientInfo" is not defined. (e598ceaf-5ad9-4953-8a40-137c16b8db23#247)
    at org.mozilla.javascript.ScriptRuntime.constructErro r(ScriptRuntime.java:3226)
    at org.mozilla.javascript.ScriptRuntime.constructErro r(ScriptRuntime.java:3216)
    .... etc

    I have a package called myPackage in a jar file called External.jar. The jar file is located in mirth/lib/custom/. The package includes the java class called PatientInfo.class.

    And the javascript in transformer:
    importPackage(Packages.myPackage);
    var object = new PatientInfo();
    var t = object.getInfo();

    Where is the problem?

    Thanks

    Post edited by: Harminator, at: 06/01/2007 02:47

    Post edited by: Harminator, at: 06/01/2007 02:48

  • #2
    Re:Problem using own java class

    Try:
    Code:
    var object = new Packages.myPackage.PatientInfo();
    var t = object.getInfo();
    Chris Lang

    Comment

    Working...
    X