Hi Andres,

The default value is triggered if the attribute comes with the event and a
null value or some exception occurs when processing that particular
attribute.

The default value will not be sent if the attribute itself is not there in
the event.

Thanks,
Lasantha


On 4 November 2013 00:04, andresgomez92 <[email protected]> wrote:

> Hi all,
>
> I have a question about the field "Default Value" on the Event Builder.
>
> I think the following:
>
> If I receive an event like this:
>
> *{"Nombre":"Andres", "Dinero"10, "Other":"100}
> *
> and I use this:
>
> <http://img189.imageshack.us/img189/761/qdhx.png>
>
> When the event leaves the event builder, I have this:
>
> *[Andres 10]
> *
> Now, If I receive an event like this:
>
> *{"Nombre":"Andres", "Other":100}
> *
> When the event leaves the event builder, I have this:
>
> *[Andres]
> *
>
> But I expected to get this:
>
> *[Andres 0]
> *
>
> Since the field "Default Value" to "Dinero" is 0.
>
> Do not operate in this manner? Could I do it in any way?
>
> Regards,
>
> Andrés Gómez
>
>
>
> --
> View this message in context:
> http://wso2-oxygen-tank.10903.n7.nabble.com/Event-Builder-JSON-Builder-Default-Value-use-tp87986.html
> Sent from the WSO2 Development mailing list archive at Nabble.com.
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
*Lasantha Fernando*
Software Engineer - Data Technologies Team
WSO2 Inc. http://wso2.com

email: [email protected]
mobile: (+94) 71 5247551
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to