Accessing "Description" in a scheduled PROTOCOL:up

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Accessing "Description" in a scheduled PROTOCOL:up

  • Creator
    Topic
  • #47735
    Mark Thompson
    Participant

      In version 5.3, the PROTOCOL:upoc actually works nicely as a timer to trigger events within the engine.  The designers of the Advanced Scheduling option very wisely included a “Description” column to document what this particular timer call is supposed to be doing.  My question: Is there any way for Tcl to access the description when the upoc timer triggers the event?

      - Mark Thompson
      HealthPartners

    Viewing 4 reply threads
    • Author
      Replies
      • #56567
        Charlie Bursell
        Participant

          Not without reading the NetConfig from your Tcl proc.  The name is for reference only.

        • #56568
          Mark Thompson
          Participant

            Charlie,

            Great suggestion.  I don’t have a problem reading NetConfig — there are several nice tools for that.  How can I tell which event# triggered the call?

            - Mark Thompson
            HealthPartners

          • #56569
            Charlie Bursell
            Participant

              You would pass %A to the Tcl proc which is the text if the alert.

              I don’t see why you would go to the bother of reading the description from NetConfig.  In the Alerts configuation under action, when you call the proc, simply pass it in.

                       myproc “%A”  “My Description”

              Don’t forget to put the $A in quotes since it has embedded spaces.

              Charlie

            • #56570
              Mark Thompson
              Participant

                I’ve done quite a bit with alerts and the %A is very helpful.  Can it also be used with the scheduled events in a PROTOCOL:upoc thread discussed in this topic?

                - Mark Thompson
                HealthPartners

              • #56571
                Charlie Bursell
                Participant

                  No, it is used in the Alerts only.  Its generated by the Alert engine.

              Viewing 4 reply threads
              • The forum ‘Cloverleaf’ is closed to new topics and replies.