Table of Contents | ||
---|---|---|
|
Overview
SDC is a Design platform, as such, we want to create an easy way to add new design capabilities to SDC.
...
The solution will provide several options for showing the designer as part of SDC. The communication between the SDC and the designers on the UI side will be event based and on the back-end side it will be based on the external API’s SDC exposes.
Designer
...
Configuration
As part of the integration between SDC and the different plugins, we uphold the concept that SDC can function without any of the different plugins.
...
The configuration allows SDC to control where the plugin UI will be displayed, tab mode or context mode.
...
Configuration fields
The designer configuration is located under {app base}/config/catalog-fe/plugin-configuration.yaml
Field | Type | Description |
connectionTimeout | Integer | This is the number of milliseconds, for the head request to wait for a response from the plugin. |
pluginsList | List of objects | A list of plugins’s configurations. |
pluginId | String | The name of the plugin. |
pluginHost | String | The host where the designer is located. |
| String | The plugin URL passed to the UI to retrieve the page. |
pluginDiscoveryUrl | String | The plugin URL used for the availability check. |
pluginStateUrl | String | The plugin state for UI router. |
pluginerDisplayOptions | String | We currently support two work modes for plugins:
displayName: "Workflow Designer" displayRole: [“TESTER”]
displayName: "monitor" displayRole: [“TESTER”] displayContext: ["VF", "SERVICE"] |
...
Code Block | ||||
---|---|---|---|---|
| ||||
eventsClientId=<received from query params> parentUrl=<received from query params> eventsToWaitFor = [ “CHECK_IN” ] PluginPubSub client = new PluginPubSub(eventsClientId, parentUrl, eventsToWaitFor) |
...
Send ready event
As part of the plugin flow, the plugin will need to send the ready event to SDC so that SDC will know the plugin has loaded successfully.
...
Info | ||
---|---|---|
| ||
{ type: ACTION_COMPLETED origion:plugin data: } |
...
Security TBD
Need to add solution for the iframe authorization and authentication.
...