PSEC - Powershell Enhanced Capability
Version 1.2.1

Task Create Data

Purpose

This step creates the file tested for and processed by subsequent steps.

It makes use of the library flow lib-run-generic-script to simplify the code.

Implementation

Besides the standard PSEC configuration parameters, the file psec-hello-cfg.json is also used to pass in parameters to the script execution code.

  • parm-file provides the file name
  • parm-sleep provides the number of seconds to sleep before creating the file.

Since these are preloaded values, the Workflow needs to be restarted if these are changed (with an editor) using the // key sequence to restart the Workflow.

The target folder is the working directory of the create-flow Task which is obtained at Task.execlocn.

The fully qualified name is stored in the globMap variable hung off of the Task.tfs object.

Caution

This example is for demonstration purposes. The global variable creFile used to pass the file name to the subsequent tasks is only populated when the Create File step is run. In a robust production ready situation the global variable would be populated also at setup time which is a mechanism provided by the Workflow machinary.

PSEC - Powershell Enhanced Capability
1.2.1

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

 

 

 

 

 

X