15 February 2015

Workflow

Powershell workflow is part of .NET Windows Workflow Foundation.


  • survive reboots and recover automatically from failures
  • state can be saved; checkpoints can be set
  • parallelizable
  • activities run independently of one another
  • uses the same syntax as a powershell function

Workflow script activity keywords:
  • InlineScript - run standard cmdlets as an activity
  • Sequence - control the order of execution of multiple activities
  • Parallel - run multiple activities in parallel - command execution runs in arbitrary order.
  • Foreach -parallel - iterate through a collection in parallel. Command in the scriptblock run sequentially.
  • Checkpoint-Workflow - create an on disk representation of workflow state
  • Suspend-Workflow - allow a workflow to be suspended (can be resumed)

No comments:

Post a Comment