Skip Activity Not Working As Expected In OSB Pipeline
(Doc ID 2659492.1)
Last updated on OCTOBER 21, 2021
Applies to:Oracle Service Bus - Version 18.104.22.168.0 and later
Information in this document applies to any platform.
On : 22.214.171.124.0 version, OSB Core Functionality
Skip activity not working as expected in OSB Pipeline
We have code implemented as below where there is a Pipeline. Within a pipeline there is a STAGE. And within the STAGE there is a for loop. And finally, within the for loop, there is a service callout.
Inside the Service Callout's Response Pipeline, there is a SKIP activity along with a Condition.
As shown below
Pipeline -- > Stage -- > for loop --> service callout (with Skip activity in response and a condition to skp)
If the Condition Passes, the SKIP activity is supposed to execute and the execution should skip the STAGE.
However, what we are seeing is that the SKIP activity helps in skipping the Service Callout but not the for loop and STAGE itself.
Ideally, it should skip the entire STAGE as we have SKIP activity inside Service Callout which is inside the STAGE.
In other words, SKIP is not exiting the immediate enclosing stage.
In the following document link, it is mentioned that the SKIP activity will skip the stage
14.16 Adding Skip Actions in the Console
Use the skip action to specify that at runtime, the execution of this stage is skipped and the processing proceeds to the next stage in the pipeline. This action has no parameters and can be used in the request, response or error pipelines.
It is also nowhere mentioned that the Service Callout behaves like its own stage.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document