# demo-options


#using module h:\psec\flows\run-gael\setup-run-gael.psm1;
#using module h:\psec\lib\lib-setup-run-gael.psm1;

set-strictmode -version 2.0


function defineFlowTask([Flow]$flow,[Task]$task) {
#--- define
  $def = new-module -asCustomObject -scriptBlock {

    # shows how to present contextual variables
    function getTaskDesc([Task]$task) {
      $tfs = $task.tfs;
      [string]$desc        = @"
This illustrates how manual steps are intergrated into the PSEC workflow subsystem.`r`n
"@
      return $desc;
    }

    function fetchManualSteps([Task]$task) {
      return 'step1/step2/step3'.split("/");
    }



      Export-ModuleMember -Variable * -Function *

  }
  hlog("defineFlowTask $flow $task")

  return $def;
}



X
PSEC - Powershell Enhanced Capability
1.2.1
  src: psec-demo-demo-manual-demo-manual-def.psm1

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