Forum Discussion
Hi Pooja,
I tried that with File Reader > CSV Parser > Sequence > Mapper > Pipeline Execute.
It didn’t pass the parameter to the child pipeline. Is there something special that I need to do to send the parameter to the child?
Thanks,
Scott
Hi Scott,
In Pipeline execute’s Parameter Name you need to set the ID(can be any name) and in the Parameter Value enable the expression and access the ID that you want to read.
Do share the sample csv file.
Thanks,
Pooja
- tstack6 years agoFormer Employee
Another option is to use the
matches
operator that can check a value against a pattern. The nice thing about this approach is that the pattern looks roughly like the value being matched and the type of the value is implicitly checked. So, an error won’t be raised if the value has an unexpected type.For your first example:
The object pattern,
{ MessageId }
, would only match objects that contain the propertyMessageId
. The full expression would look like this:$entity matches { MessageId }
For the second example:
A string pattern that uses the
...
wildcard can check for a value with a prefix. The full expression would look like:$entity matches "ERROR:"...
(Unfortunately, while there is documentation for the
match
operator, the documentation formatches
seems to be missing at the moment. We’ll get that fixed)- TimBurns6 years agoNew Contributor III
Thank you. That is cleaner.
$entity instanceof Object && “MessageId” in $entity
This is what I doing before and it was kind of icky.
- TimBurns6 years agoNew Contributor III
This is what I have: $entity.toString().contains(“ERROR”)