Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduction

The JS7 - File Watching is used to automatically start a workflow when file arrives in a directory. JS7 Agents on any platform can continuously watch for incoming files and add an order for each file.

Workflow

The workflow  jdFileWatchingForkTouch workflow includes a shell job that creates files for the automated execution of the jdFileWatchingFork workflow.

  • The jdFileWatchingForkTouch Workflow jdFileWatchingForkTouch workflow creates the files,
  • File Watching automatically picks up the files and
  • starts the jdFileWatchingFork workflow by adding one order for each file that has been created.

To execute the workflow from the folder 08_FileWatching folder follow the below steps described below:

  1. Click the folder  08_FileWatching FileWatching folder and expand the jdFileWatchingForkTouch workflow. By adding an order to the jdFileWatchingForkTouch workflow - as explained with the JS7 - Online Demo - Workflow - jdFileWatchingForkTouch article - a number of files are created and their respective file orders are automatically added to the jdFileWatchingFork workflow. You can check the triggering of files from the screenshot below.



  2. To check the status of the order click the name of the workflow to make the Order History panel appear.




  3. From In the Order History panel, you can verify that 5 orders are have been added to the workflow. Each order represents the respective file. You can verify if the orders are successful and havefinished. Click the Order ID to see the log output created by jobs executed for each order.



  4. A log window will open and the order log will be displayed. The order log contains the output of all the jobs executed by the order.
  5. You can download the log file by clicking the Download button in the upper right-hand corner of the log view window. Also, you can expand and collapse all the job output using the chevron icons in the upper left-hand corner of the log view window.


...