How to modifiy errordb metadata when using ERROR disposition

Clovertech Forums Cloverleaf How to modifiy errordb metadata when using ERROR disposition

  • Creator
    Topic
  • #119468
    Peter Cosman
    Participant

      Is there a way to modifiy the metadata when sending a message to errordb?
      When I use ERROR $obmh in a tcl script, the message arrives in the errordb and the Error Info metadata says “user abort via ERROR disposition”. I would like to be able to add useful info to this error info field explaining what the error is.

      Can’t find any clue in the manual if such action is possible and how to do this.

      We are running Cloverleaf 20.1.1.1P

    Viewing 0 reply threads
    • Author
      Replies
      • #119469
        Paul Bishop
        Participant

          Yep, there is. you set the USERDATA to whatever you’d like it to be:

          keylset userdata DATA “verbiage to display in USERDATA”
          msgmetaset $mh USERDATA $userdata

          This is assuming that “mh” is the variable name used with the keylget args MSGID command.

          Paul Bishop
          Carle Foundation Hospital
          Urbana, IL

      Viewing 0 reply threads
      • You must be logged in to reply to this topic.