Delay Sending Messages

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Delay Sending Messages

  • Creator
    Topic
  • #55615
    vdurst
    Participant

      Hello, I am looking to delay sending A38 for 24 hours.

      Situation: In our workflow, the A38 (preadmit cxl) is fired before an S14 (Sched update) so we need to hold/delay A38’s for a day.

      Thanks in advance!

    Viewing 2 reply threads
    • Author
      Replies
      • #85899
        Jim Kosloskey
        Participant

          One thought:

          Route the A38 to a FileSet Local Protocol one message per file.

          Setup another Fileset Local thread to read the file(s). Use a DirParse Tcl proc on this thread scheduled to run at whatever interval makes sense (perhspa every hour) with extended file info (which I think includes the date/timestamp) and select those files that meet the time constraint.

          email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

        • #85900
          vdurst
          Participant

            Hi Jim – that’s actually what I started to do (I found one of your threads!) but rather than writing one msg per file, I am writing all messages for a day to a file. I have a tps proc to rename the file with today’s date.

            I am working on the OB thread, but am stuck here — I don’t know how to tell it to pick up file with yesterday’s date. I was also looking at the Advanced Scheduling options..not too familiar

            many thanks

          • #85901
            Jim Kosloskey
            Participant

              I think you would need a DirParse Proc to look at the list of files found then decide which one to return in a list to Cloverleaf to process.

              I like the one message per file because I think it is more precise if the time is critical but whatever works for you is just fine.

              email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

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