HTTP Endpoint - integrationfirst/wso2mi-references GitHub Wiki

Configure URI Template

Only configure with $FILE

URL is appended with other path

Solution:

<payloadFactory media-type="json" template-type="default">
 <format>{"query":{"bool":{"must":[{"match":{"managementData.status.keyword":"EMAIL_IMPORT_DONE"}},{"match":{"traceId":"${vars.filename}"}}]}}}</format>
</payloadFactory>
<property name="count_import_username" scope="default" type="STRING" expression="${configs.elasticsearch_username}"/>
<property name="count_import_password" scope="default" type="STRING" expression="${configs.elasticsearch_password}"/>
<property name="REST_URL_POSTFIX" scope="axis2" type="STRING" expression="${configs.monitoring_url}"/>
<call blocking="true" initAxis2ClientOptions="false">
 <endpoint key="ElasticsearchEndpoint"/>
 <source type="body"/>
 <target type="body"/>
</call>
⚠️ **GitHub.com Fallback** ⚠️