On Tue, Dec 11, 2018 at 11:43 AM Ruwan Yatawara <ruw...@wso2.com> wrote:

> Adding Dev Group.
>
> On Tue, Dec 11, 2018 at 11:41 AM Ruwan Yatawara <ruw...@wso2.com> wrote:
>
>> Hi All,
>>
>> We have encountered a problem when sending json arrays as input events
>> via http eventAdapterType. Basically, if inputs json contains an array in
>> the root element level, everything works fine, if other elements exist in
>> the json, at root level in addition to the array; see below structure :
>>
>> {
>> "recordsTotal": 100,
>> "recordsFiltered": 1000,
>> *"data": [{*
>> * "uuid": "ABCD",*
>> * "severity": 10,*
>> * "inAction": false*
>> * },{*
>> * "uuid": "EFGH",*
>> * "severity": 10,*
>> * "inAction": false*
>> * }*
>> * ]*
>> }
>>
>> Input fails with a malformation exception. Note that when adding the
>> mappings we opted to use the json path in format: *$.data[*].uuid* to
>> refer to each uuid element inside the payload. However, this json path
>> expression does not seem to be recognized by CEP. But when using absolute
>> references indicating the array index: i.e. *$.data[1].uuid *, everything
>> works as expected.
>>
>> This appears to be an issue in CEP. Can you please advise on how we can
>> work this out?
>>
>> Thanks and Regards,
>> Ruwan
>>
>>
>>

-- 
*V. Mohanadarshan* | Technical Lead | WSO2 Inc. <http://www.wso2.com/> |
(M) 94-771117673 | (E) mo...@wso2.com |
GET INTEGRATION AGILE
Integration Agility for Digitally Driven Business
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to