cancel
Showing results for 
Search instead for 
Did you mean: 

Generate dynamic sequence in mapper with every pipeline validation?

darshthakkar
Valued Contributor

Hi Team,

Is there a way we can generate a dynamic sequence in mapper or any other snap (values of which can be used in mapper eventually) with each pipeline validation? If not with pipeline validation, it will be okay for now if we are able to generate a value with each pipeline execution.

For example, if I validated or executed my pipeline once, the sequence starts with 1, with every other run, the sequence would be 2, 3, 4, etc.

Thank you.


Best Regards,

Darsh

3 REPLIES 3

darshthakkar
Valued Contributor

We don't want to overdo this as well. Something like, setting a numberSequence to 1 and before the completion of the pipeline, appending it with +1 and storing that number as a parameter and using it during next execution. I'm looking for an easier way that doesn't put a lot of overhead to the pipeline.

darshthakkar
Valued Contributor

@ddellsperger @koryknick - tagging you here if you can please assist on this one or share insights to the available functionalities.

Best Regards,

Darsh

koryknick
Employee
Employee

@darshthakkar - I might recommend using an expression library to store your current value at the end of each execution.

I've attached a sample pipeline to get you started.

Hope this helps!