PSEC - Powershell Enhanced Capability
Version 1.2.1

Task Showcase Contexter

Purpose

This step is used to demonstrate how to set global context for all the tasks.

Description

This is used to set the global context values (stored in the custom TaskFlowStruct (TFS)). The values set are readable by subsequent tasks.

For this reason the task should be the first in the WorkFlow under most circumstances.

Operation

It relies on the fact that the PSEC WorkFlow visits every script during loading. The primeContextTask is called when the task is initially loaded.

The Brief hashtable is passed in so values can be easily persisted between workflow invocations.

Normal options are persisted by default using the the PSEC WorkFlow mechanisms.

The options are used to set values. The Task Run action is initiated which updates the brief file and then presumably the TFS values.

Values

The CycleNo value is incremented every time a Task Run action is taken. The current value is taken from the brief.json.txt file when the WorkFlow is restarted.

The Month value is taken from the options.json.txt file as this is the standard place that option values are persisted.

PSEC - Powershell Enhanced Capability
1.2.1

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

 

 

 

 

 

X