This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#powershell workflow - export to xaml file | |
workflow PsWfExample { | |
param([String[]]$Services) | |
foreach -parallel ($svc in $Services){ | |
$svc | |
} | |
} | |
#get the serialized xaml content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Powershell Workflow InArguments object type sample: the objects can have complex types (not just String, Int) | |
workflow paralleltest { | |
param( | |
[Object[]]$ServicesList, | |
[System.ServiceProcess.ServiceController]$FirstService | |
) | |
InlineScript { Write-Host "output single FirstService object:"} |