Announcement

Collapse

NextGen Connect 3.10.1 Released!

NextGen (Mirth) Connect 3.10.1 is now available as an appliance update and on our GitHub page. This release contains bug fixes. See the release notes for the list of fixes.

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

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

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