โ08-29-2017 11:59 AM
is it possible to set pipeline parameters via a mapper? its not working for me as expected. maybe iโm going about designing the pipeline wrongโฆ but essentially i want the values passed into the Task (arguments from a web service callout) to carry through and if there is a failure emails the person that triggered the event. if its successful it emails them a success email.
โ08-29-2017 12:58 PM
No, the parameters are global to all snaps which means they cannot be changed during an execution. If they could be changed, the changes would show up in different snaps at unpredictable times. For example, in a mapper, two different expressions that reference the same parameter might get different values.
If youโre not able to pass through the original document, you can move parts of the pipeline into a child pipeline that is invoked with the PipelineExecute snap. You can then pass the values as pipeline parameters to the child execution.
โ08-29-2017 06:00 PM
use child pipeline to pass parameters.
Create separate pipeline for email with email snap.Lets say its โSend Emailโ pipeline
Call this pipeline via โPipeline Executeโ snap. Pass you useremail as $useremail to child pipeline โSend Emailโ.
Thanks,
Piyush