Skip to Content
avatar image
Former Member

UDF for event validation

HI experts,

I am working on one of the Mapping condition , I tried using the Graphical mapping but some how when I check the queue , its getting suppressed.

Any Help with UDF will be really appreciated.

Condition :

if Event = Create;
Set to 'A' if Amount >= 600,
Set to 'B' if Amount >= 200 and < 600 else
Set to 'C' if Amount < 200

Thanks in advance
Pooja
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jul 04, 2017 at 08:25 AM

    Since you need to validate the equals condtions as well graphical mapping conditions might go big,try the below udf

    String Out = "";
    if(Amount>=600)
    {
    Out="A";
    }
    else if(Amount>=200&&Amount<=600)
    {
    Out="B";
    }
    else if(Amount<200)
    {
    Out="C";
    }
    return Out;

    and below condition

    event------------------------

    constant[create]-----------------Equals-----------------If

    Amount----------------------------UDF---------------------------then---------------------------Output

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 04, 2017 at 03:12 AM

    Hi Pooja,

    UDF is not needed for this requirement. You can achieve it with simple graphical mapping. Try this.

    Thanks & Regards,

    Avinash B

    Add comment
    10|10000 characters needed characters exceeded