New-KFAWorkflow
With this switch you can create a new workflow in an empty directory.
<type>
can be:
- statemachine
- list
- site
- posh
During creation an ID is generated for the new workflow.
You need to configure the _wfconfig.ps1
manually!
Syntax
New-KFAWorkflow
-Type <type>
[-Debug]
[-Verbose]
[-JsonOutput]
Support
>= kenaflow 5.0.26
Return
This cmdlet will return log messages as JSON objects if -JsonOutput
is specified. Otherwise it returns nothing.
Description
This workflow must run in an empty folder. In this folder the new workflow is created.
Depending on <type>
in paramter -Type <type>
a new workflow of the given <type>
is created. kenaflow contains templates for different workflow types:
- PowerShell workflow
- E-Mail workflow
- SharePoint List workflow
- SharePoint Site workflow
- SharePoint State Machine workflow
After creation the workflow config and script(s) need to be configured manually to fit your needs! E.g. for SharePoint related workflows you need to configure the SharePoint platform and the web and list.
Parameters
-Type <type>]
This tells the cmdlet what type of workflow should be created:
<type>
can be:
- statemachine
- list
- site
- posh
[-Debug]
This optional parameter enables or disables
debug
level log messages.
If not specified the default configuration for log messages of kenaflow will be used.
[-Verbose]
This optional parameter enables or disables
verbose
level log messages
If not specified the default configuration for log messages of kenaflow will be used.
-JsonOutput:[$false]
This will return all log messages as JSON objects that can be captured while PowerShell execution.
If not specified the log messages are written to the PowerShell log targets, depending on the level of the log message.
Examples
New-KFAWorkflow -Type "posh"