Hi Vanii,

Your approach looks good. But should the behavior be busy-waiting rather
than polling?

On Mon, Sep 28, 2015 at 5:54 PM, Vanii Thiyagarajah <va...@wso2.com> wrote:

> Hi,
>
> Salesforce ESB Custom Inbound endpoint allows to consume the Salesforce
> streaming data. It creates the connection with Salesforce and listens the
> data periodically.
>
>
> ​
>
> ​
>
> step1: Create the pushTopic record in salesforce account using developer
> console.
>
> PushTopic pushTopic = new PushTopic();
> pushTopic.Name = 'InvoiceStatementUpdates';
> pushTopic.Query = 'SELECT Id, Name, Status__c, Description__c FROM
> Invoice_Statement__c';
> pushTopic.ApiVersion = 34.0;
> pushTopic.NotifyForOperationCreate = true;
> pushTopic.NotifyForOperationUpdate = true;
> pushTopic.NotifyForOperationUndelete = true;
> pushTopic.NotifyForOperationDelete = true;
> pushTopic.NotifyForFields = 'Referenced';
> insert pushTopic;
>
> step2: Create the inbound endpoint using the following parameters.
>
>      User Name
>
>      Password
>
>      Security Token
>
>      Push Topic Name
>
>
>
> We can consume the streaming data what you have created in the pushtopic
>  ('InvoiceStatementUpdates' in step1).
>
>
> Thanks,
>
>


-- 

Best Regards,

Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/
<http://wso2.com/about/team/malaka-silva/>

Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
_______________________________________________
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to