Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-1962

Directory specification for file watching (FileWatch.directoryExpr) can access environment variables

    XMLWordPrintable

Details

    • Feature
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • 2.1.0
    • JS7 Agent
    • None

    Description

      Feature

      • The directory of a File Order Source that is used for file watching with Agents is notated as an expression that allows access to the Agent's environment variables..
      • Examples in JSON
        • "directoryExpr": "env('HOME') ++ '/files/incoming'"
          • watch for files in a Unix environment using the HOME environment variable and sub-directories
        • "directoryExpr": "env('FILE_DIR', env('HOME')) ++ '/files/incoming'"
          • watch for files in a directory specified by the FILE_DIR environment variable and sub-directories. If the FILE_DIR environment variable does not exist then the HOME environment variable is used as a fallback.

      Attachments

        Activity

          People

            jz Joacim Zschimmer
            jz Joacim Zschimmer
            Andreas Püschel Andreas Püschel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: