Create a Process

Create a new Process

To create a new process:

  1. Click the process New Process button in the Project Explorer toolbar. The New Process wizard opens.

  2. Select the parent folder for the process.

  3. Enter a File Name for the process and then click Finish.
    The process is created and the process editor opens.

  4. Press Ctrl+S to save the process.

Add a Mapping

To add a mapping to a process:

  1. Drag and drop first the mapping from the Project Explorer into the process editor.
    This mapping is added as a reference to the current process.

  2. Right-click this mapping step and select Show Properties View.

  3. In the Properties view, set the step parameters in the Standard section:

    • Name: Name of the step.

    • Enable: Select this option to have this step enabled. Disabled steps are not executed or generated for execution.

    • Error Accepted: Select this option to have this step complete with a Success status even when it fails.

  4. In the Description section, provide a detailed Description of the step.

  5. Press Ctrl+S to save the process.

The mapping is used in the process as a reference. Any change performed in this mapping impacts all the processes referencing it.

Add an Action

To add an action:

  1. In the Palette, select the action that you want to add to the process. You can expand the accordions in the palette to access the appropriate action.

  2. Click on the process diagram.
    A step representing your action is added to the diagram.

  3. Right-click this action and select Show Properties View.

  4. In the Properties view, set the step parameters in the Standard section:

    • Name: Name of the action. Use a naming convention for the action names as they are used in the variable path.

    • Enable: Select this option to have this action enabled. Disabled actions are not executed or generated for execution.

    • Error Accepted: Select this option to have this action complete with a Success status even when it fails.

  5. Set the action parameters in the Standard section. Each action has its own set of parameters, detailed in the Actions Reference.

    • A mandatory parameter appears as an editable field. Enter or select the value for this parameter.

    • An optional parameter appears as a non-editable field, possibly with a default value. Click the parameter name to unlock the field and then enter/select a value for the parameter.

  6. In the Description section, provide a detailed Description of the step.

  7. Press Ctrl+S to save the process.

Advanced Step Configuration

In the Advanced section of the Properties view, you can configure advanced step properties.

Dynamic Name

Dynamic Name: Dynamic Name for this step. This name can change at run-time and is available in the CORE_DYNAMIC_NAME variable.

Begin Step

By default, all steps with no preceding step start when the process begins.
The Is Begin Action option configures explicitly a step as a startup step.

Semaphore Name

The Semaphore name ensures that multiple instances of a step do not run simultaneously.

When a step starts, it checks whether another step with the same semaphore name runs and waits for that step to finish before starting. Multiple steps with the same semaphore name always run sequentially, even if they start simultaneously.

This feature does not guarantee the execution order of these steps. It is preferable to use links to explicitly define the execution order.

Conditional Step Generation

In the Generation section of the Properties view, you can configure in the Generation Condition a script to condition this step generation.

Step Repetition

In the Generation section of the Properties view, you can configure step repetition using an XPath Query.

Step Logging

In the Meta-Inf section of the Properties view, you can configure in an XML payload how additional log messages are emitted for the step. A message may be emitted to the log file, to the console, and to the runtime log database.

The XML payload contains a series of <userLog> elements with the following elements and attributes:

  • Path attribute: The message name, and optionally the path to the process step it should be attached to.

  • Trigger attribute: Defines when the message should be logged, that is before (beforeExecution) or after (afterExecution) the step is executed.

  • Info element: Defines the message content.

  • Logger elements: Specify the logger that receives the message.
    By default you can use:

    • userConsole: logs to the runtime standard output.

    • mainConsole: same as userConsole, prefixed with date/time.

    • stambiaLog: logs to the runtime log database.

Example 1. User log example
<userLog
    path="../START/ScriptingWatcher"
    trigger="beforeExecution">
        <info>Before Scripting: param=${~/param}$</info>
        <logger>stambiaLog</logger>
        <logger>mainConsole</logger>
</userLog>
<userLog
    path="../START/ScriptingWatcher"
    trigger="afterExecution">
        <info>After Scripting: param=${~/param}$</info>
        <logger>stambiaLog</logger>
        <logger>mainConsole</logger>
</userLog>