Integration

Get Involved. Join the Conversation.

Topic

    Stefan Knoll
    Filter trigger endpoint by multiple elementsAnswered
    Topic posted September 25, 2019 by Stefan Knoll, tagged Events, Integration 
    49 Views, 4 Comments
    Title:
    Filter trigger endpoint by multiple elements
    Summary:
    Need help with the syntax for a filter, that restricts the triggering event of my integration flow by 2 different elements
    Content:

    Hi,

    I'm a newbie on OIC, so sorry in advance for maybe not using the correct terminology...

    I have an issue with my triggering endpoint: I need to filter that by specific values of two different elements. So far, I couldn't figure out how to do that. Using a single element works for both of my requirements, but I'm not able to put both of them together in a single expression.

    Can somebody advice?

    Kind regards

    Stefan

    Version:
    19.3.2.0.0

    Best Comment

    KAMAL HOSSEN

    You can use the expression like below for multiple elements (you can use "and"/"or" operator based on your need-

    <xpathExpr xmlns:ns_0="http://xmlns.oracle.com/adf/svc/types/" xmlns:ns_1="http://xmlns.oracle.com/apps/scm/commonWorkExecution/workOrders/workOrdersService/" xmlns:ns_2="http://xmlns.oracle.com/apps/scm/commonWorkExecution/workOrders/workOrdersService/types/">$eventPayload/ns_2:result/ns_1:WoStatusCode="ORA_UNRELEASED"  and $eventPayload/ns_2:result/ns_1:WorkOrderSubType != "STR_SLITTING" and $eventPayload/ns_2:result/ns_1:WorkOrderSubType != "STR_CUSTSLIT"</xpathExpr> 

     

    Thank you.

    Comment