PSEC - Powershell Enhanced Capability
Version 1.2.1

Tasks Types

Description

There are several Task Types and the Type mainly refers to what language is used to implement the Task execution. They are:

Type java

The Task execution will run the Java program defined by the fetchJavaMain. The class path to find the Java class and its execution time classes is defined by fetchJavaClassStr.

The parameters to the Java Program are defined by the Task Parameters in the Task Execution Script.

Type nodejs

The Task execution will run the JavaScript program defined by the func-fetchJavascriptMain. The environment variable XXXXXXXXXXXXX is used to locate and start the supporting NodeJS runtime.

The parameters to the JavaScript Program are defined by the Task Parameters in the Task Execution Script.

Type net

This is currently not implemented.

Type script

The function runScript([Task]$task, [hashtable]$parms, [hashtable]$status) inside the Task Execution Script is invoked.

The $parms to the JavaScript Program are defined by the Task Parameters in the Task Execution Script.

Type manual

The manual type is used to indicate manual processes that need to be done. It is typically used to hang subsequent Task dependencies off of.

The help file can be used to describe what needs to be done (such as the paramaters to download a file).

The function fetchManualSteps([Task]$task) is used to define an array of manual steps that need to be performed. Once they are all checked off, the system marks the Task as having been successfully completed.

Here is an example of a fetchManualSteps function. The help file would define what each step involves.

function fetchManualSteps([Task]$task) {
  return 'step1/step2/step3'.split("/");
}
PSEC - Powershell Enhanced Capability
1.2.1

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

 

 

 

 

 

X