โ10-17-2019 12:26 AM
Hi guys,
I am trying to use router with diff data scenarios, where I have to give conditions like:
1)
($DIFF_REC_COUNT<0) && (_PIPELINE_NAME.contains(โDI_AVT_DH_PERSON_TYPE_ODSโ,โDI_AVT_DH_PERSON_CITIZENSHIP_ODSโ,โDI_AVT_DH_PERSON_LANGUAGE_ODSโ))
If its true, goto Success flow or
goto this flow.
But looks like this expression is not correct; hence I am getting error like:
Failure: Unexpected error occurred while evaluating expression: SC@7e0b949, Resolution: Please check your expression
Please suggest!
Solved! Go to Solution.
โ10-17-2019 03:01 AM
I solved this issue actuallyโฆ
I gave this exp and it worked.
($DIFF_REC_COUNT<0) && (_PIPELINE_NAME.contains(โPERSON_TYPE_ODSโ)|| _PIPELINE_NAME.contains(โPERSON_CITIZENSHIP_ODSโ)|| _PIPELINE_NAME.contains(โPERSON_LANGUAGE_ODSโ) )
THanks for your quick response thoughโฆ ๐
โ10-17-2019 12:48 AM
with your .contains function, use true or false Boolean values for evaluation, also I am not sure if you can pass multiple arguments in contains function, try the expressions
($DIFF_REC_COUNT<0) && (_PIPELINE_NAME.contains(โDI_AVT_DH_PERSON_TYPE_ODSโ) == true || _PIPELINE_NAME.contains.(โDI_AVT_DH_PERSON_LANGUAGE_ODSโ) == true)
($DIFF_REC_COUNT<0) && (_PIPELINE_NAME.contains(โDI_AVT_DH_PERSON_TYPE_STGโ) == true || _PIPELINE_NAME.contains(โDI_AVT_DH_PERSON_LANGUAGE_STGโ) == true)
โ10-17-2019 01:54 AM
I gave this in Expression:
($DIFF_REC_COUNT<0)==true &&
(_PIPELINE_NAME.contains(โPERSON_TYPE_ODSโ,โPERSON_CITIZENSHIP_ODSโ,โPERSON_LANGUAGE_ODSโ,โOCF_US_ODSโ,โOCF_MEXICO_ODSโ,โOCF_NETHERLANDS_ODSโ,โOCF_COSTA_RICA_STGโ)==true)
And got this errorโฆ JSON o/p
[
{
โreasonโ: null,
โfailureโ: โUnexpected error occurred while evaluating expression: SC@3ce966fbโ,
โresolutionโ: โPlease check your expressionโ,
โsub-expressionโ: {
โ0: $DIFF_REC_COUNTโ: [
-2
],
โ1: 0โ: ,
โ2: <โ: [
true
],
โ3: trueโ: ,
โ4: ==โ: [
true
],
โ5: _PIPELINE_NAMEโ: [
โDI_AVT_DH_OCF_COSTA_RICA_STGโ
],
โ6: โPERSON_TYPE_ODSโโ: ,
โ7: โPERSON_CITIZENSHIP_ODSโโ: ,
โ8: โPERSON_LANGUAGE_ODSโโ: ,
โ9: โOCF_US_ODSโโ: ,
โ10: โOCF_MEXICO_ODSโโ: ,
โ11: โOCF_NETHERLANDS_ODSโโ: ,
โ12: โOCF_COSTA_RICA_STGโโ: ,
โ13: (โPERSON_TYPE_ODSโ,โPERSON_CITIZENSHIP_ODSโ,โPERSON_LANGUAGE_ODSโ,โOCF_US_ODSโ,โOCF_MEXICO_ODSโ,โOCF_NETHERLANDS_ODSโ,โOCF_COSTA_RICA_STGโ)โ: [
{
โ_snaptype_argumentsโ: {
โsearchStringโ: โPERSON_TYPE_ODSโ,
โpositionโ: โPERSON_CITIZENSHIP_ODSโ,
โignoredโ: โOCF_COSTA_RICA_STGโ
}
}
]
}
}
]
โ10-17-2019 03:00 AM
can you use the exact expressions which I provided in my previous comments, and see if that works for you, I dont think you can pass multiple arguments in contains method
โ10-17-2019 03:01 AM
I solved this issue actuallyโฆ
I gave this exp and it worked.
($DIFF_REC_COUNT<0) && (_PIPELINE_NAME.contains(โPERSON_TYPE_ODSโ)|| _PIPELINE_NAME.contains(โPERSON_CITIZENSHIP_ODSโ)|| _PIPELINE_NAME.contains(โPERSON_LANGUAGE_ODSโ) )
THanks for your quick response thoughโฆ ๐