X4 Produktdokumentation

Cron

cron.png

New configurations for executions at server startup can be created via the Cron button. A number of options and parameters are available for this. These are explained in more detail below.


Options


Name

Freely selectable name for execution

Process

Path to the process in the X4DB

ExampleProcesses/Activities/Processes/Process.wrf

Click 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 sub-process of another process.


Active

Activates the scheduler

Generate Cron expression

Generates a Cron expression

Possible values:

  • Minutes

  • Hourly

  • Daily

  • Weekly

  • Monthly

  • Yearly

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

Generating a cron expression is not possible if the cron expression was edited manually.


Parameters 

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


add_row.png

Add row

remove_row.png

Remove 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 component.

As the parameter values are only directly accessible when the process is started, 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>