Announcement

Collapse
No announcement yet.

mesaage api avaialble ?

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

  • mesaage api avaialble ?

    ok , in order to write a filter we use javascript or any other scripting languages like
    messageObject.getType()
    but how do we know that an object called mesage object exists with a method getType is there any kindda api available to treat the messages as objects ?
    please help!!!!!!!!!!!!!!!!!

  • #2
    Re: mesaage api avaialble ?

    There is no API documentation yet, however all of the messageObject values are available from the drag and drop reference list. The main ones are:

    .getId() //returns the internal id in Mirth
    .getType() //returns type of message
    .getSource() //sending system (facility)
    .getVersion() //version of message
    .getRawData() //incoming data
    .getTransformedData() //incoming data as XML
    .getEncodedData() //transformed data re-encoded after modifcations

    Those are the main functions that would be used in the transformer. You can see the full function list here:
    http://www.mirthproject.org/fisheye/...ageObject.java

    That being said, an full API document is in the works.
    Chris Lang

    Comment

    Working...
    X