WorkflowBatchController

WorkflowBatchController

WorkflowBatchController runs a workflow against a batch of files listed in a CSV file. See https://aptrust.github.io/dart-docs/users/workflows/batch_jobs/ for more information.

Note that this controller descends from RunningJobsController, which handles the display of running job progress.

Constructor

new WorkflowBatchController()

Source:

Methods

postRenderCallback()

The postRenderCallback attaches event handlers to elements that this controller has just rendered. In this case, our file input does not replace the placeholder text with the path to the selected file. We have to do that ourselves.

Source:

runBatch()

Validate the batch and run it.

Source:

runJob(jobParams, lineNumber, lastJobNumber)

Runs a single job from the batch in a separate process and wire up the dartProcess display to track the progress of the external process.

Parameters:
Name Type Description
jobParams JobParams

Describes the job to run.

lineNumber number

The line number from the CSV file that describes this job.

lastJobNumber number

The number of the last line of the CSV file. The function uses this to know when it has completed the last job in the batch.

Source: