Welcome Guest! Log in
Stambia versions 2.x, 3.x, S17, S18, S19 and S20 are reaching End of Support January, 15th, 2024. Please consider upgrading to the supported Semarchy xDI versions. See Global Policy Support and the Semarchy Documentation.

The Stambia User Community is moving to Semarchy! All the applicable resources have already been moved or are currently being moved to their new location. Read more…


When a session ends with errors, it can be configured to be restarted automatically a certain amount of times, with a defined delay.

By default, it will restart from the last detected error, but Restart Points can also be defined to manage the Process' flow more precisely.

To learn how to define Restart Points in a Process, please refer to the reference documentation.

Prerequisites:
  • Stambia DI Runtime S17.4.0 or higher

 

Configuring the Process

To configure a Process to be restarted automatically in case of errors, simply:

  1. Open the Process
  2. Go to the Properties / Meta-Inf View
  3. Set the values accordingly to your needs

 

The following two Meta-Inf are available to customize the auto-restart:

<autoRestartNumber>10</autoRestartNumber>

This property defines the maximum number of times the session's should be restarted when it ends with errors.

As soon as the session is successful, or if the number is reached, the Runtime will stop restarting it.

<autoRestartInterval>5000</autoRestartInterval>

This property specifies the delay (in milliseconds) to wait between each restart

 

Example:

propertiesConfiguration

 

Consulting the number of restarts

The Designer's Sessions View shows the amount of time a session has been restarted.

 restartCount

Prerequisites:
  • Stambia DI Designer S18.3.0 or higher

 

Articles

Suggest a new Article!