Skip to content

Commit

Permalink
Camel K 2.0 changes and updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mmajerni authored and christophd committed Oct 4, 2023
1 parent 564eade commit b9d0653
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SalesforceToServiceNow.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class SalesforceToServiceNow extends RouteBuilder {
public void configure() throws Exception {

// main route
from("salesforce:CamelCaseTopic?"
from("salesforce:subscribe:CamelCaseTopic?"
+ "notifyForOperationCreate=true&notifyForOperationUpdate=true&notifyForOperationDelete=false&notifyForOperationUndelete=false"
+ "&updateTopic=true&rawPayload=true&sObjectQuery=SELECT Id, CaseNumber FROM Case")

Expand Down
3 changes: 2 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,9 @@ Use the following command to run it in "dev mode", in order to see the logs in t
kamel run SalesforceToServiceNow.java --dev
```

If everything is ok, after the build phase finishes, you should see the Camel integration running. When a new Salesforce Case is created, the integration will print "New Case <salesforce-id>" in the terminal window. After creating a ServiceNow Incident Request it will print "Created Incident with number <servicenow-incident-number>". It will then update the Salesforce Case and print "Updated Case with Incident number <servicenow-incident-number>".
If everything is ok, after the build phase finishes, you should see the Camel integration running.

Create a new Salesforce Case. Integration will print "New Case {salesforce-id}" in the terminal window. After creating a ServiceNow Incident Request it will print "Created Incident with number {servicenow-incident-number}". It will then update the Salesforce Case and print "Updated Case with Incident number {servicenow-incident-number}".
When running in dev mode, you can change the integration code and let Camel K redeploy the changes automatically.

To try this feature, open the `SalesforceToServiceNow.java` file and change "New Case" to "Holy new Case Batman", then save the file.
Expand Down

0 comments on commit b9d0653

Please sign in to comment.