Chris Haus
2013-05-11 01:42:20 UTC
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 />
<flow name="ListOneCustomer" doc:name="ListOneCustomer">
<br />
<magento:list-customers config-ref="Magento" doc:name="Magento" filter="eq(customer_id,218)"/>
<br />
<byte-array-to-object-transformer doc:name="Byte Array to Object"/>
<br />
<foreach doc:name="For Each">
<br />
<json:object-to-json-transformer doc:name="Object to JSON"/>
<br />
<logger message="Payload 1: #[payload]" level="INFO" doc:name="Logger"/>
<br />
</foreach>
<br />
</flow>
<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
<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 />
<flow name="ListOneCustomer" doc:name="ListOneCustomer">
<br />
<magento:list-customers config-ref="Magento" doc:name="Magento" filter="eq(customer_id,218)"/>
<br />
<byte-array-to-object-transformer doc:name="Byte Array to Object"/>
<br />
<foreach doc:name="For Each">
<br />
<json:object-to-json-transformer doc:name="Object to JSON"/>
<br />
<logger message="Payload 1: #[payload]" level="INFO" doc:name="Logger"/>
<br />
</foreach>
<br />
</flow>
<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