Create workflows
To start with a new workflow we recommend to use the templates contained in kenaflow.exe
.
How to create a new workflow:
Go to the workflow root directory and create a new subdirectory.
Change to this directory.
Execute
kenaflow.exe
:
kenaflow.exe --new --wftype <workflow-type>
<workflow-type>
can be one of the following values:
- list
- statemachine
- site
- posh
Example:
kenaflow.exe --new --wftype list
This command will fill the current directory.
You must edit the workflow configuration file
_wfconfig.ps1
to make some settings.You can now open the workflow script file in the PowerShell ISE or in Visual Studio Code.
You must set the SharePoint address ("Web") and the list on which the workflow operates.
Each new workflow is initially disabled (Enabled = $false
) so kenaflow would not execute it. This must be changed manually.