Discussion:
please give example for the filter, to get list of orders for example(<magento:list-orders )
Chris Haus
2013-05-11 01:42:20 UTC
Permalink
Hello,
<br /><br />
not sure whether you still need it - but I just had to solve this.
<br /><br />
What I did was:
<br />
First, just query everything, output it with a logger so you'll see the column name you need (customer_id, order_id, ...)
<br />
And then you can set up a filter like:
<br /><br />
eq(customer_id,218)
<br /><br />
So the whole thing:
<br />
<code>
<br />
&lt;flow name=&quot;ListOneCustomer&quot; doc:name=&quot;ListOneCustomer&quot;&gt;
<br />
&lt;magento:list-customers config-ref=&quot;Magento&quot; doc:name=&quot;Magento&quot; filter=&quot;eq(customer_id,218)&quot;&#47;&gt;
<br />
&lt;byte-array-to-object-transformer doc:name=&quot;Byte Array to Object&quot;&#47;&gt;
<br />
&lt;foreach doc:name=&quot;For Each&quot;&gt;
<br />
&lt;json:object-to-json-transformer doc:name=&quot;Object to JSON&quot;&#47;&gt;
<br />
&lt;logger message=&quot;Payload 1: #[payload]&quot; level=&quot;INFO&quot; doc:name=&quot;Logger&quot;&#47;&gt;
<br />
&lt;&#47;foreach&gt;
<br />
&lt;&#47;flow&gt;
<br />
</code>
<br /><br />
And only this customer is selected.
<br /><br />
Hope that helps (anybody :) )
<br /><br />
Chris

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Chris Haus
2013-05-11 01:44:20 UTC
Permalink
And I found one more resource:
<br /><br />
<a href="https://github.com/mulesoft/magento-connector/blob/master/examples/example-search-product-and-update-media/src/main/app/mule-config.xml" rel="nofollow">https://github.com/mulesoft/magento-c...</a>
<br /><br />
<code>
<br />
&lt;magento:list-products filter=&quot;eq(meta_keyword, 'technology')&quot; &#47;&gt;
<br />
</code>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Loading...