The Sleep component is used to induce a specified delay in the flow of execution of an event process. The component holds the message in memory for the said amount of time and sends it to the output port.
Sleep component has the following properties in its Configuration Property Sheet.
If this attribute is enabled, the service tries to validate the input received. If disabled, service will not validate the input. For more details, refer Validate Input section section under Interaction Configurations in Common Configurations page.
Error handling configuration
The remedial actions to be taken when a particular error occurs can be configured using this attribute.
Click the ellipsis button against this property to configure Error Handling properties for different types of Errors. By default, the options Log to error logs, Stop service and Send to error port are enabled.
Refer Error Handling section in Common Configurations for detailed information.
SleepService Interval Time Unit
Specifies the unit in which the SleepService Interval time duration is specified. The unit options are:
Specifies the time duration after which the flow of execution will be allowed to leave this component.
SleepService after Every Message
Specifies whether a sleep delay is to be induced after every message received.
If this property is enabled, then every message received sleeps for the specified duration; if disabled, the message will only sleep for the following time:
(specified interval – (current time – message received time))
Specifies the XSD schema for the IN_PORT / OUT_PORT ports. If you provide the XSD, it is only set on the ports so that it can be used during transformations. This is not used by the component during execution.
Simple flow demonstrating the basic functionality of Sleep.
If the property SleepService after Every Message is enabled, then every message received sleeps for the specified duration; if disabled, the message only sleeps for specified interval - (current time - message received time).