X4 Produktdokumentation

BPM Processes: Cron

cron.png

The Cron button can be used to create new configurations for server startup executions. A number of options and parameters are available. These are explained in more detail below.


Options


Name

Freely selectable name for the execution

Process

Path to the process in the X4DB

Example: Processes/Activities/Processes/Process.wrf

Select Browse or drag and drop a process into the field to select a process.

  • The process must be in the same project as the scheduler.

  • The process must not be a subprocess of another process.


Active

Enables the scheduler.

Generate Cron Expression

Creates a Cron expression.

Possible values:

  • Minutes

  • Hourly

  • Daily

  • Weekly

  • Monthly

  • Yearly

In the Source tab, you can manually edit the Cron expression.

It is not possible to generate a Cron expression if the Cron expression has been manually edited.


Parameters

In the Parameters section, you can define any number of parameters for the execution configuration.


add_row.png

Add a row

remove_row.png

Delete a row

Key

Name of the parameter (any string, ideally NCName)

Value

Optional parameter value


The scheduler creates an XML file as input for the process, which contains the defined parameters. The input XML file is loaded directly into the process at the start block.

Since the parameter values are only directly accessible at the start of the process, they must be saved (e.g. as a variable) if they are to be used later in the process.

Example:

XML
<?xml version="1.0" encoding="UTF-8"?>
<Execution jobId="JobId" executionId="ExecutionId" executionName="ExecutionName">
  <Parameters>
    <Parameter name="ParameterKey">ParameterValue</Parameter>
    <Parameter name="ParameterKey">ParameterValue</Parameter>
    <Parameter name="ParameterKey">ParameterValue</Parameter>
    ...
  </Parameters>
</Execution>