PSEC - Powershell Enhanced Capability
Version 1.2.1

Script Name

wait-data-run.ps1

Description

Used to test for the creation of a file by the previous step

Details

This task can be initiated once the previous step has been started and completed (which happens almost immediately since it starts a background job).

If the file exists it ste the status to GOOD. Otherwuse it sets the status to FAIL. This will trigger the PSEC Workflow mechanism to prevent further dependant tasks from running.




param([Task]$task,[hashtable]$cfgParms,[hashtable]$brief)

$targFile = $task.tfs.globMap.creFile;
if (test-path $targFile) {
  $brief.sCondCode = "GOOD"
  $brief.waitMsg = "$targFile found"
} else {
  $brief.sCondCode = "FAIL"
  $brief.waitMsg = "$targFile not yet located"
}
"wait-data-run.ps1 finished`r`n";

PSEC - Powershell Enhanced Capability
1.2.1

Copyright © 2018-2021, 2022, Rexcel System Inc.

 

 

 

 

 

X