kenaflow.exe --addstatefield [--workflow <path-or-folder>] [--currentdirectory <folder>] [--web <web-url>]
With this switch you can add the state field of a state machine workflow to the SharePoint list connected to the workflow.
If you run
kenaflow.exe --addstatefield from within a workflow folder you do not need to specify
--workflow <path-or-folder>. From any other working directory you need to specify
--workflow <path-or-folder> with eigther a
path to a
_wfconfig.ps1 file or a
folder to a workflow folder (that contains a
--currentdirectory the working directory of the process can be set.
In case of SharePoint workflows that are connected to multiple webs you can specify
--web <web-url> to specify the web that only should be processed. Otherwise all connected webs are processed!
This switch can be combined in a single execution of
kenaflow.exe all switches in section "Related Switches" below.