Section "Service"

The settings in this section control the "runner service" that runs as Windows services and executes the kenaflow process.

serviceMainRunPattern

    <entry key="serviceMainRunPattern" type="System.String" comment="CRON pattern to run the main kenaflow process" default="*/1 * * * *"></entry>

The default CRON pattern */1 * * * * will start kenaflow every minute if it is not already running.

This setting controls in which frequency kenaflow is started, if the "runner service" is active and monitors the kenaflow main process.

Please read: Automatic Execution

serviceClearErrorListRunPattern

    <entry key="serviceClearErrorListRunPattern" type="System.String" comment="CRON pattern to run the main kenaflow process" default="0 0 * * 6"></entry>

In case of SharePoint workflows it's possible to configure an "Error List" where all occuring errors will be written to.

This list can grow if lots of errors in workflows occure.

This error lists should be cleaned up regularely.

With this setting you can control the frequency of the cleanup process. The runner service starts kenaflow.exe --cleanuperrorlist <days> --all.

<days> is the amount of days that error messages should be kept in the error lists. The value is taken from the global setting serviceClearErrorListDays.

The default CRON pattern 0 0 * * 6 will start the cleanup very saturday at midnight.

serviceClearErrorListDays

    <entry key="serviceClearErrorListDays" type="System.Int32" default="14" comment="how many days the error logs in SharePoint Error List are kept.."></entry>

Please read the previous settings description.

Full Section Default

<section name="service">
  <entry key="serviceMainRunPattern" type="System.String" comment="CRON pattern to run the main kenaflow process" default="*/1 * * * *"></entry>
  <entry key="serviceClearErrorListRunPattern" type="System.String" comment="CRON pattern to run the main kenaflow process" default="0 0 * * 6"></entry>
  <entry key="serviceClearErrorListDays" type="System.Int32" default="14" comment="how many days the error logs in SharePoint Error List are kept.."></entry>
</section>