syndesisio / connectors

Apache Camel Connectors for Syndesis
Apache License 2.0
6 stars 12 forks source link

chore: Add Salesforce streaming connectors #69

Closed zregvart closed 6 years ago

zregvart commented 6 years ago

This adds thee connectors:

These connectors are intended to be used to start the integration, i.e. Camel from endpoints.

In addition to authentication properties they have one property open for configuration sObjectName the name of the object to get events for.

Internally connectors generate topicName and query endpoint properties and remove the sObjectName property to prevent class lookup by the given object name that would lead to IllegalArgumentException.

Output of the connector is AnyObject DTO that contains a single Id property with the identifier of the object the event was generated for.

pure-bot[bot] commented 6 years ago

Pull request approved by @davsclaus - applying approved label

davsclaus commented 6 years ago

Good work @zregvart - I like that you only had to write 5 lines of java code in the component where you build up that query for salesforce, and add/remove a bit in the options. Considering that this is the beginning of ipaas adventure then it seems flexible enough at this point.

I made a comment about sObjectName field not being required, if that would otherwise have been desirable. Also you can use the same endpointOverrides to provide a different description of the field if that makes sense. You can for example say the name of the field to be notified when its updated | deleted etc.