X4 Produktdokumentation

Timer-based Intermediate


TimerBasedIntermediate.png

Timer-based Intermediate: Defines a timer-based intermediate event in a Business Process according to BPMN 2.0 allows to set a case state using the property Case State, see Managing Case States.


Properties

Case Management

Case State

Case state to be set with this element

Possible values: Any already defined case state value; You can manage available case states by clicking  parameter-bearbeiten.png , see Managing Case States.


Technical

Duration

Waiting time until the event occurs

Possible values:

  • Any duration specifying days, hours, minutes, seconds and milliseconds

  • 9999d 23h 59m 59s 999ms: Maximum waiting time

  • 0d 0h 0m 0s 0ms: No waiting time (Default)

(information) As an alternative you can define an end date using Until.

To open the waiting time configuration click on  parameter-bearbeiten.png or double-click the event within the process diagram.

Label

Label of the symbol within the process diagram

Setting a Timer-based Intermediate Event

  1. Drag a Timer-based Intermediate Event from the Palette to the process diagram

  2. Select the event component and switch to the Properties view.

  3. Select in property Case State a predefined case state, e.g. IN PROGRESS.

    If property Case State doesn't provide an option yet, no case state has been defined for the Business Process. To manage case states, click property Case State and open the case state management by clicking the  parameter-bearbeiten.png  button, see Managing Case States.

    When executing the Business Process, the case state will now be updated. The case state change is indicated by a corresponding label for the event.

    As an alternative, the case state can also be set dynamically using Technical Processes. The Case Management adapter is provided for this purpose.


  4. Open the waiting time configuration by clicking the  parameter-bearbeiten.png  button next to the property Duration or by double-clicking the event within the process diagram.

    Duration-setzen.png

  5. Configure desired waiting time by specifying days, hours, minutes, seconds and milliseconds.

    As an alternative you can define an end date using Until.


  6. Save the configuration with OK.

Setting Timer-based Intermediate Event Dynamically

Timer-based events can also be configured dynamically using Technical Processes and a corresponding mapping. The corresponding Technical Process is created and managed via the timer-based intermediate event. It is created directly under the corresponding Business Process and cannot be moved.  

  1. Open the waiting time configuration by clicking the  parameter-bearbeiten.png  button next to the property Duration or by double-clicking the event within the process diagram.

    DynamicConfig.png

  2.  Click on Create under Dynamic Configuration
    Create-dynamic-process.png

  3. Enter the process name and confirm by clicking OK.


    The process will be created directly below the Business Process and can be edited here.

    The Technical Process has to provide the following target structure:

    XML
    <?xml version="1.0" encoding="UTF-8"?>
    <timerBasedConfiguration>
    	<durationDay>0</durationDay>
    	<durationHour>0</durationHour>
    	<durationMinute>0</durationMinute>
    	<durationSecond>10</durationSecond>
    	<durationMillis>0</durationMillis>
    </timerBasedConfiguration> 
    


    XML
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <timerBasedConfiguration>
        <untilTimestamp>2020-03-17T17:00:00</untilTimestamp>
    </timerBasedConfiguration>