Forum Discussion
Your research is correct, we are using setScale() with ROUND_HALF_UP.
As to the rounding behavior, web browsers seem to round up on ‘5’ in some cases as well. If you try toFixed() on the value ‘2.35’, it will return 2.4 in Chrome and FireFox. I’m not sure what causes the difference at the moment, but it might be due to the differences between using floating point numbers and BigDecimals. The BigDecimals will be more accurate in their results since floating point is more of an approximation.
- Aleksandar_A3 years agoContributor III
Hi @pjanapati and welcome to the SnapLogic Community! 🙂
If the snaps that you are using does not support Pass Through, then you can add Copy Snap and a Gate Snap after the Salesforce Snap.
That way the Gate Snap will wait until it collects all of the documents, in this case until Salesforce Snap completes.
Afterwards just split the documents coming directly from the Copy Snap.
Skeleton Flow:
Sample Pipeline:
SL-Comm-Sequentially_2023_02_28.slp (8.8 KB)Also, you can achieve the same with many different approaches like: pipeline nesting and pipeline execute, copy and join snap etc.
Let me know if this helps you.
BR,
Aleksandar.Hi Aleksandar,
Can you provide some more information on the other approaches you mentioned to ensure the pipeline runs sequentially? I am looking to call some other pipelines from a single pipeline and want to make sure that everything downstream waits until the Pipeline Execute snap finishes completely. Thanks.
- Aleksandar_A2 years agoContributor III
Hello kindminis ,
Another approach would be to use sub pipelines and call them in sequence using Pipeline Execute Snap.
Related Content
- 2 years ago
- 10 months ago
- 4 years ago