How to setup batch process?

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf How to setup batch process?

  • Creator
    Topic
  • #53250
    David Scrugham
    Participant

      New to the Cloverleaf software.  Have realtime threads working as expected but want to setup batch charge scenario as follows:

      1. Source Thread picks up HL7 charge file.

      2. Runs file through xlate which updates a field in the MSH segment for each charge message.

      3. Rebuild charge file with updated messages in new target directory.

      Again, my group is new to the Cloverleaf software so we are just trying to get some basic threads/processes worked out.  Any suggestions on the batch setup described above would be appreciated.

      Thanks

    Viewing 0 reply threads
    • Author
      Replies
      • #77056
        Jim Kosloskey
        Participant

          David,

          Here are some thoughts:

          Use the Fileset protocol for picking up the file.

          If you are picking it up from another machine then Fileset/FTP.

          If the file is local to you (either they are FTP’ng to your File System or it is on a referenceable network drive) use Fileset/Local.

          Depending on how the file is batched you may need some Tcl to remove the FSH and/or BSH segments and break into separate messages. If each message is separately delineated in the file you may not need any Tcl.

          Route the Messages pretty much the same as with real-time and execute your Xlate.

          Use the Fileset protocol again for the destination. Either Fileset/FTP or Fileset/Local depending on method of delivery.

          Depending on the characteristics of the file presence in the Source directory (mixed with other files, only certain files of a set wanted, etc.) you may need a Directory Parse Tcl proc.

          You may also need a Delete proc if you do not want each file picked up deleted from the source.

          If your destination files need to be named other than the configuration setting in the Fileset configuration, you will need a Tcl proc to accomplish that.

          There could be more depending on your situation.

          email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.

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