This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit f80ab4d42c4f4c220a6b75b125a5af114a704899
Author: Andrea Cosentino <[email protected]>
AuthorDate: Thu Sep 1 14:59:13 2022 +0200

    Salesforce Source: Specify NotifyFor.. parameters as configurable instead 
than having hardcoded
---
 .../kamelets/salesforce-source.kamelet.yaml        | 36 +++++++++++++++++++---
 1 file changed, 32 insertions(+), 4 deletions(-)

diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/salesforce-source.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/salesforce-source.kamelet.yaml
index 28b6c3f4..bd853828 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/salesforce-source.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/salesforce-source.kamelet.yaml
@@ -88,6 +88,34 @@ spec:
         x-descriptors:
         - urn:alm:descriptor:com.tectonic.ui:password
         - urn:camel:group:credentials
+      notifyForOperationCreate:
+        title: Notify Operation Create
+        description: Notify for create operation.
+        type: boolean
+        x-descriptors:
+          - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+        default: true
+      notifyForOperationUpdate:
+        title: Notify Operation Update
+        description: Notify for update operation.
+        type: boolean
+        x-descriptors:
+          - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+        default: false
+      notifyForOperationDelete:
+        title: Notify Operation Delete
+        description: Notify for delete operation.
+        type: boolean
+        x-descriptors:
+          - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+        default: false
+      notifyForOperationUndelete:
+        title: Notify Operation Undelete
+        description: Notify for undelete operation.
+        type: boolean
+        x-descriptors:
+          - 'urn:alm:descriptor:com.tectonic.ui:checkbox'
+        default: false
   types:
     out:
       mediaType: application/json
@@ -110,10 +138,10 @@ spec:
       parameters:
         notifyForFields: "{{notifyForFields}}"
         updateTopic: "true"
-        notifyForOperationCreate: "true"
-        notifyForOperationUpdate: "false"
-        notifyForOperationDelete: "false"
-        notifyForOperationUndelete: "false"
+        notifyForOperationCreate: "{{notifyForOperationCreate}}"
+        notifyForOperationUpdate: "{{notifyForOperationUpdate}}"
+        notifyForOperationDelete: "{{notifyForOperationDelete}}"
+        notifyForOperationUndelete: "{{notifyForOperationUndelete}}"
         sObjectQuery: "{{query}}"
       steps:
       - marshal:

Reply via email to