Docs Menu
API Developer Guide / middleware / pub / service / wait

Service: wait

This service introduces a waiting period or delay within the pipeline. It is commonly used for controlling the execution flow in batch processing or asynchronous scenarios. It waits until a specified condition is met before continuing the execution

Input Parameter:

Name Type Description
metaData: Document Additional metadata or information to control the wait operation.
batchId: String The identifier of the batch or group for which the wait is applied.
status: String The status or condition that the service should wait for before proceeding.

Output Parameter:

Name Type Description
taskStatus: String The status of the task after waiting. It indicates whether the specified condition was met.