-
-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Double Feature: OmniStudio logging + loosely-coupled dependencies (#765)
* Added new CallableLogger class that can be used both for a loosely coupled dependency on Nebula Logger, as well as for adding support for logging in OmniStudio * Added logic to populate origin source metadata fields on LogEntry__c for OmniStudio entries (similar to how fields are populated for Apex, Flow, and lightning components) * Fixed #764 in the Slack plugin by correcting the logic for the 'isShort' boolean, used to determine how to format long text blocks & blocks with line breaks * Expanded build.yml to run all scratch org def files (which were also renamed), added sample OmniStudio metadata to use in the pipeline (for orgs with OmniStudio configured) * Cleaned up README.md content / started the process of consolidating documentation to be centralized in the wiki
- Loading branch information
Showing
165 changed files
with
1,890 additions
and
166 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"orgName": "Nebula Logger - OmniStudio Scratch Org", | ||
"edition": "Enterprise", | ||
"hasSampleData": true, | ||
"country": "US", | ||
"language": "en_US", | ||
"features": ["OmniStudioDesigner", "OmniStudioMetadata", "OmniStudioRuntime"], | ||
"settings": { | ||
"chatterSettings": { | ||
"enableChatter": false | ||
}, | ||
"communitiesSettings": { | ||
"enableNetworksEnabled": false | ||
}, | ||
"emailAdministrationSettings": { | ||
"enableEnhancedEmailEnabled": true | ||
}, | ||
"eventSettings": { | ||
"enableDeleteMonitoringData": false, | ||
"enableEventLogGeneration": false, | ||
"eventLogRetentionDuration": 0 | ||
}, | ||
"pathAssistantSettings": { | ||
"pathAssistantEnabled": false | ||
} | ||
} | ||
} |
82 changes: 82 additions & 0 deletions
82
...g/scratch-orgs/omnistudio/omniIntegrationProcedures/demo_Logging_Procedure_1.oip-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<OmniIntegrationProcedure xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<customJavaScript>{}</customJavaScript> | ||
<elementTypeComponentMapping>{"ElementTypeToHTMLTemplateList":[]}</elementTypeComponentMapping> | ||
<isActive>false</isActive> | ||
<isIntegrationProcedure>true</isIntegrationProcedure> | ||
<isMetadataCacheDisabled>false</isMetadataCacheDisabled> | ||
<isOmniScriptEmbeddable>false</isOmniScriptEmbeddable> | ||
<isTestProcedure>false</isTestProcedure> | ||
<isWebCompEnabled>false</isWebCompEnabled> | ||
<language>Procedure</language> | ||
<name>Logger Integration Procedure Demo</name> | ||
<omniProcessElements> | ||
<isActive>true</isActive> | ||
<isOmniScriptEmbeddable>false</isOmniScriptEmbeddable> | ||
<level>0.0</level> | ||
<name>AddLogEntry</name> | ||
<omniProcessVersionNumber>0.0</omniProcessVersionNumber> | ||
<propertySetConfig>{ | ||
"executionConditionalFormula" : "", | ||
"failureConditionalFormula" : "", | ||
"failOnStepError" : true, | ||
"useFormulas" : true, | ||
"additionalInput" : { | ||
"loggingLevel" : "INFO", | ||
"message" : "Hello, world!" | ||
}, | ||
"additionalOutput" : { }, | ||
"failureResponse" : { }, | ||
"sendOnlyAdditionalInput" : false, | ||
"returnOnlyAdditionalOutput" : false, | ||
"returnOnlyFailureResponse" : false, | ||
"responseJSONPath" : "", | ||
"responseJSONNode" : "", | ||
"sendJSONPath" : "", | ||
"sendJSONNode" : "", | ||
"remoteClass" : "CallableLogger", | ||
"remoteOptions" : { }, | ||
"remoteMethod" : "newEntry", | ||
"chainOnStep" : false, | ||
"actionMessage" : "", | ||
"additionalChainableResponse" : { }, | ||
"show" : null, | ||
"label" : "RemoteAction1", | ||
"disOnTplt" : false | ||
}</propertySetConfig> | ||
<sequenceNumber>1.0</sequenceNumber> | ||
<type>Remote Action</type> | ||
</omniProcessElements> | ||
<omniProcessKey>demo_Logging</omniProcessKey> | ||
<omniProcessType>Integration Procedure</omniProcessType> | ||
<propertySetConfig>{ | ||
"linkToExternalObject" : "", | ||
"trackingCustomData" : { }, | ||
"includeAllActionsInResponse" : false, | ||
"columnsPropertyMap" : [ ], | ||
"relationshipFieldsMap" : [ ], | ||
"labelSingular" : "", | ||
"labelPlural" : "", | ||
"description" : "", | ||
"nameColumn" : "", | ||
"rollbackOnError" : false, | ||
"chainableQueriesLimit" : 50, | ||
"chainableDMLStatementsLimit" : null, | ||
"chainableCpuLimit" : 2000, | ||
"chainableHeapSizeLimit" : null, | ||
"chainableDMLRowsLimit" : null, | ||
"chainableQueryRowsLimit" : null, | ||
"chainableSoslQueriesLimit" : null, | ||
"chainableActualTimeLimit" : null, | ||
"additionalChainableResponse" : { }, | ||
"queueableChainableQueriesLimit" : 120, | ||
"queueableChainableCpuLimit" : 40000, | ||
"queueableChainableHeapSizeLimit" : 6, | ||
"ttlMinutes" : 5, | ||
"mockResponseMap" : { } | ||
}</propertySetConfig> | ||
<subType>Logging</subType> | ||
<type>demo</type> | ||
<uniqueName>demo_Logging_Procedure_1</uniqueName> | ||
<versionNumber>1.0</versionNumber> | ||
</OmniIntegrationProcedure> |
144 changes: 144 additions & 0 deletions
144
config/scratch-orgs/omnistudio/omniScripts/demo_Logging_English_1.os-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<OmniScript xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<elementTypeComponentMapping>{"ElementTypeToHTMLTemplateList":[]}</elementTypeComponentMapping> | ||
<isActive>true</isActive> | ||
<isIntegrationProcedure>false</isIntegrationProcedure> | ||
<isMetadataCacheDisabled>false</isMetadataCacheDisabled> | ||
<isOmniScriptEmbeddable>false</isOmniScriptEmbeddable> | ||
<isTestProcedure>false</isTestProcedure> | ||
<isWebCompEnabled>true</isWebCompEnabled> | ||
<language>English</language> | ||
<name>Nebula Logger Demo</name> | ||
<omniProcessElements> | ||
<isActive>false</isActive> | ||
<isOmniScriptEmbeddable>false</isOmniScriptEmbeddable> | ||
<level>0.0</level> | ||
<name>Add New Log Entry with Integration Procedure Action</name> | ||
<omniProcessVersionNumber>0.0</omniProcessVersionNumber> | ||
<propertySetConfig>{ | ||
"controlWidth" : 12, | ||
"label" : "", | ||
"integrationProcedureKey" : "", | ||
"useContinuation" : false, | ||
"remoteOptions" : { | ||
"preTransformBundle" : "", | ||
"postTransformBundle" : "", | ||
"useFuture" : false, | ||
"chainable" : false | ||
}, | ||
"remoteTimeout" : 30000, | ||
"preTransformBundle" : "", | ||
"postTransformBundle" : "", | ||
"sendJSONPath" : "", | ||
"sendJSONNode" : "", | ||
"responseJSONPath" : "", | ||
"responseJSONNode" : "", | ||
"extraPayload" : { | ||
"loggingLevel" : "DEBUG", | ||
"message" : "halp" | ||
}, | ||
"inProgressMessage" : "In Progress", | ||
"postMessage" : "Done", | ||
"failureNextLabel" : "Continue", | ||
"failureAbortLabel" : "Abort", | ||
"failureGoBackLabel" : "Go Back", | ||
"failureAbortMessage" : "Are you sure?", | ||
"validationRequired" : "Step", | ||
"redirectPageName" : "", | ||
"redirectTemplateUrl" : "vlcAcknowledge.html", | ||
"redirectNextLabel" : "Next", | ||
"redirectNextWidth" : 3, | ||
"redirectPreviousLabel" : "Previous", | ||
"redirectPreviousWidth" : 3, | ||
"showPersistentComponent" : [ true, false ], | ||
"show" : null, | ||
"HTMLTemplateId" : "", | ||
"wpm" : false, | ||
"ssm" : false, | ||
"message" : { }, | ||
"pubsub" : false, | ||
"svgSprite" : "", | ||
"svgIcon" : "", | ||
"errorMessage" : { | ||
"custom" : [ ], | ||
"default" : null | ||
}, | ||
"enableDefaultAbort" : false, | ||
"enableActionMessage" : false, | ||
"businessCategory" : "", | ||
"businessEvent" : "" | ||
}</propertySetConfig> | ||
<sequenceNumber>1.0</sequenceNumber> | ||
<type>Integration Procedure Action</type> | ||
</omniProcessElements> | ||
<omniProcessElements> | ||
<isActive>true</isActive> | ||
<isOmniScriptEmbeddable>false</isOmniScriptEmbeddable> | ||
<level>0.0</level> | ||
<name>Add New Log Entry with Remote Action</name> | ||
<omniProcessVersionNumber>0.0</omniProcessVersionNumber> | ||
<propertySetConfig>{ | ||
"controlWidth" : 12, | ||
"label" : "", | ||
"remoteClass" : "CallableLogger", | ||
"remoteMethod" : "newEntry", | ||
"remoteOptions" : { | ||
"preTransformBundle" : "", | ||
"postTransformBundle" : "" | ||
}, | ||
"remoteTimeout" : 30000, | ||
"preTransformBundle" : "", | ||
"postTransformBundle" : "", | ||
"sendJSONPath" : "", | ||
"sendJSONNode" : "", | ||
"responseJSONPath" : "", | ||
"responseJSONNode" : "", | ||
"extraPayload" : { | ||
"loggingLevel" : "WARN", | ||
"message" : "hi?", | ||
"saveLog" : true | ||
}, | ||
"inProgressMessage" : "In Progress", | ||
"postMessage" : "Done", | ||
"failureNextLabel" : "Continue", | ||
"failureAbortLabel" : "Abort", | ||
"failureGoBackLabel" : "Go Back", | ||
"failureAbortMessage" : "Are you sure?", | ||
"validationRequired" : "Step", | ||
"redirectPageName" : "", | ||
"redirectTemplateUrl" : "vlcAcknowledge.html", | ||
"redirectNextLabel" : "Next", | ||
"redirectNextWidth" : 3, | ||
"redirectPreviousLabel" : "Previous", | ||
"redirectPreviousWidth" : 3, | ||
"showPersistentComponent" : [ true, false ], | ||
"show" : null, | ||
"HTMLTemplateId" : "", | ||
"wpm" : false, | ||
"ssm" : false, | ||
"message" : { }, | ||
"pubsub" : false, | ||
"svgSprite" : "", | ||
"svgIcon" : "", | ||
"errorMessage" : { | ||
"custom" : [ ], | ||
"default" : null | ||
}, | ||
"enableDefaultAbort" : false, | ||
"enableActionMessage" : false, | ||
"useContinuation" : false, | ||
"businessCategory" : "", | ||
"businessEvent" : "", | ||
"toastComplete" : true | ||
}</propertySetConfig> | ||
<sequenceNumber>0.0</sequenceNumber> | ||
<type>Remote Action</type> | ||
</omniProcessElements> | ||
<omniProcessType>OmniScript</omniProcessType> | ||
<propertySetConfig>{"persistentComponent":[{"render":false,"label":"","remoteClass":"","remoteMethod":"","remoteTimeout":30000,"remoteOptions":{"preTransformBundle":"","postTransformBundle":""},"preTransformBundle":"","postTransformBundle":"","sendJSONPath":"","sendJSONNode":"","responseJSONPath":"","responseJSONNode":"","id":"vlcCart","itemsKey":"cartItems","modalConfigurationSetting":{"modalHTMLTemplateId":"vlcProductConfig.html","modalController":"ModalProductCtrl","modalSize":"lg"}},{"render":false,"dispOutsideOmni":false,"label":"","remoteClass":"","remoteMethod":"","remoteTimeout":30000,"remoteOptions":{"preTransformBundle":"","postTransformBundle":""},"preTransformBundle":"","postTransformBundle":"","id":"vlcKnowledge","itemsKey":"knowledgeItems","modalConfigurationSetting":{"modalHTMLTemplateId":"","modalController":"","modalSize":"lg"}}],"allowSaveForLater":true,"saveNameTemplate":null,"saveExpireInDays":null,"saveForLaterRedirectPageName":"sflRedirect","saveForLaterRedirectTemplateUrl":"vlcSaveForLaterAcknowledge.html","saveContentEncoded":false,"saveObjectId":"%ContextId%","saveURLPatterns":{},"autoSaveOnStepNext":false,"elementTypeToHTMLTemplateMapping":{},"seedDataJSON":{},"trackingCustomData":{},"enableKnowledge":false,"bLK":false,"lkObjName":null,"knowledgeArticleTypeQueryFieldsMap":{},"timeTracking":false,"hideStepChart":false,"mergeSavedData":false,"visualforcePagesAvailableInPreview":{},"cancelType":"SObject","allowCancel":true,"cancelSource":"%ContextId%","cancelRedirectPageName":"OmniScriptCancelled","cancelRedirectTemplateUrl":"vlcCancelled.html","consoleTabLabel":"New","wpm":false,"ssm":false,"message":{},"pubsub":false,"autoFocus":false,"currencyCode":"","showInputWidth":false,"rtpSeed":false,"consoleTabTitle":null,"consoleTabIcon":"custom:custom18","errorMessage":{"custom":[]},"stylesheet":{"newport":"","lightning":"","newportRtl":"","lightningRtl":""},"stepChartPlacement":"right","disableUnloadWarn":true,"scrollBehavior":"auto","currentLanguage":"en_US"}</propertySetConfig> | ||
<subType>Logging</subType> | ||
<type>demo</type> | ||
<uniqueName>demo_Logging_English_6</uniqueName> | ||
<versionNumber>6.0</versionNumber> | ||
<webComponentKey>533171c5-045f-0aab-f717-97eb6cd7e7f1</webComponentKey> | ||
</OmniScript> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.