Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Salesforce Source: Specify NotifyFor.. parameters as configurable instead than having hardcoded #1028

Merged
merged 2 commits into from
Sep 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
36 changes: 32 additions & 4 deletions kamelets/salesforce-source.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down