Announcement

Collapse
No announcement yet.

PostProcessor Set Status and Reponse

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

  • PostProcessor Set Status and Reponse

    In the PostProcessor I like to set the current message status and reponse string but I am unable to update it using this code. I there a better way to do it?


    responseMap.put('customResponse', ResponseFactory.getSuccessResponse("Message Sent to Lab"));


    return new Response(SENT,'',Message Sent to Lab);

  • #2
    What is your Mirth version?

    Because "getSuccessResponse" method deprecated after v3.1.

    So if you are using new version of Mirth, you should use;
    PHP Code:
    responseMap.put('customResponse'ResponseFactory.getSentResponse('Message Sent to Lab')); 
    Class ResponseFactory
    http://javadocs.mirthcorp.com/connec...seFactory.html
    .

    Comment


    • #3
      I tried that too but it will not set the response or that status, can have the post processor can that be the problem?

      Comment


      • #4
        Did you select it from source response dropdown?

        Comment


        • #5
          Can I change the response d1 value using the the same code?


          responseMap.put("d1", ResponseFactory.getSentResponse("Message Sent to Lab"));

          Comment


          • #6
            Looks like this is working nice for the source response, is there anyway I can do it for the destination response?

            Comment


            • #7
              get destination response and put to responseMap.

              Comment

              Working...
              X