โ06-01-2022 05:00 AM
Is there a way/expression to capture pipeline invocation type (i.e. Scheduled Task, Triggered Task, Manual).
Solved! Go to Solution.
โ06-03-2022 12:21 AM
Hey @nishant.k9,
Thereโs a way to capture the invoker type by using the elastic api. Basically weโre going to gather all executions of that particular pipeline, and separate only the last one (thatโs the actual execution thatโs going to trigger the elastic request). In the response thereโs a field that points to the invoker type. Unfortunately thereโs no parameter to separate the last execution, at least I donโt know one, thatโs why I added one more snap with an expression that filters out the information we need.
Youโll need a basic auth account for the snaplogic elastic request. Note that this will work only upon execution, and if you want to validate and test, youโll need to use Record Replay.
CaptureInvoker_2022_06_03.slp (4.2 KB)
Regards
Bojan
โ06-02-2022 05:29 AM
Hi @nishant.k9 ,
Yes there is. You need to make use of the snaplogic list snap. It will get the metadata from snaplogic about pipelines/accounts/tasks, etc
So in this case:
Regards
Jens
โ06-02-2022 10:41 PM
@JensDeveloper
Thank you for the response, but i have bit different ask.
Like, consider there is a pipeline which is scheduled at some frequency. Now this pipeline can be executed in two way : one is manually by user and other is automatically by scheduler. So I want to capture specific runtime information whether the execution was manual or scheduled, for audit purpose.
โ06-03-2022 12:21 AM
Hey @nishant.k9,
Thereโs a way to capture the invoker type by using the elastic api. Basically weโre going to gather all executions of that particular pipeline, and separate only the last one (thatโs the actual execution thatโs going to trigger the elastic request). In the response thereโs a field that points to the invoker type. Unfortunately thereโs no parameter to separate the last execution, at least I donโt know one, thatโs why I added one more snap with an expression that filters out the information we need.
Youโll need a basic auth account for the snaplogic elastic request. Note that this will work only upon execution, and if you want to validate and test, youโll need to use Record Replay.
CaptureInvoker_2022_06_03.slp (4.2 KB)
Regards
Bojan
โ06-03-2022 05:38 AM
@bojanvelevski
Thank youโฆ it somehow solved my problem