Skip to main content

The extension manifest

The manifest is the extension object: what the extension is called, which views it has and where they appear, and the resources installed with it. You create it with an ODSL script, usually kept in source control as create-extension.odsl, or let Fusion AI create it with the Build an extension playbook.


A complete create-extension.odsl​

This script creates everything for a two-tab extension with one insight. The sections that follow explain each part.

//#region Feature policy: who sees the views
fp = FeaturePolicy()
fp.id = "extension.acme.positions"
fp.description = "Show the Positions extension"
fp.features = ["acme.positions.main"]
fp.addMember("Trading desk")
fp.addMember("Risk")
fp.deny = false
fp.enabled = true
save fp
//#endregion

//#region Insight report
ir = InsightReport()
ir.id = "acme.positions.insight.history"
ir.category = "acme.positions"
ir.name = "Position history"
ir.description = "The total position per book per day"
ir.template = "acme\extensions\positions\acme.positions.insight.history"
ir.icon = "clock-history text-primary"
ir.hideList = true
ir.hideExcel = true
save ir
//#endregion

//#region The extension
e = Extension()
e.id = "acme.positions"
e.publisher = "acme"
e.code = "positions"
e.name = "Positions"
e.icon = "briefcase"
e.description = "Open positions by book and period, and each book against its limit"
e.documentation = "https://intranet.acme.example/trading/positions-extension"
e.tags = ["TRADING", "RISK"]

e.resources.policy = ["extension.acme.positions"]
e.resources.script = []
e.resources.script.add("acme\extensions\positions\acme.positions.style")
e.resources.script.add("acme\extensions\positions\acme.positions.common")
e.resources.script.add("acme\extensions\positions\acme.positions.positions")
e.resources.script.add("acme\extensions\positions\acme.positions.limits")
e.resources.script.add("acme\extensions\positions\acme.positions.insight.history")
e.resources.reportconfig = []
e.resources.reportconfig.add("acme.positions.insight.history")

v = e.addView("positions")
v.section = "Extensions"
v.name = "Positions"
v.tabname = "Positions"
v.description = "Open positions by book and period"
v.excel = false
v.insights = true
v.feature = "acme.positions.main"
v.icon = "briefcase"
v.script = "acme\extensions\positions\acme.positions.positions"

v = e.addView("limits")
v.section = "Extensions"
v.name = "Positions"
v.tabname = "Limits"
v.description = "Each book against its limit"
v.excel = false
v.feature = "acme.positions.main"
v.icon = "speedometer2"
v.script = "acme\extensions\positions\acme.positions.limits"

save e
//#endregion

Run it in VS Code with the OpenDataDSL extension. save e saves the extension to your tenant, where it appears in the portal for the people in its feature policy.


The extension​

PropertyDescription
idThe unique id: the publisher and code joined with a dot, for example acme.positions
publisherYour publisher code, for example acme
codeA short code for the extension, for example positions
nameThe name shown in the extension catalogue
descriptionA description for the extension catalogue
documentationA link to the extension's documentation
iconA Bootstrap icon name, optionally followed by a colour class such as text-primary
tagsTags for the extension catalogue
previewtrue if the extension uses features from the next platform release, so it can only be installed in the preview environment. Defaults to false.
standalonetrue if the extension can be opened independently from the portal. Defaults to false.
viewsThe views, added with e.addView(id)
resourcesEverything installed with the extension (see below)

Views​

e.addView(id) adds a view and returns it. The id is unique within the extension.

PropertyDescription
sectionThe menu group the view appears in (see Menu groups), for example Data, Deliver or Build
orderThe position of the menu item within its group. Built-in items use 10, 20, 30 and so on; items without an order come after them, in name order.
nameThe menu item. Views with the same section and name are tabs of one menu item.
tabnameThe tab name. Defaults to Main. Use Apps to add the view to the menu item's Apps tab.
appnameThe view's name in the Apps tab, when tabname is Apps
descriptionA description of the view
iconThe icon shown next to the menu item
featureThe feature that decides who sees the view. A feature policy must grant it.
scriptThe Mustache script for the page, without the .mustache suffix
insightstrue to add an Insights tab listing the extension's insights
exceltrue to show the view in the Excel add-in instead of the portal
hometrue to offer the view as the portal home page, as the Home extension's Tasks view does

Placing views​

To getSet
A new menu item with tabsThe same section and name on each view, a different tabname on each
A new tab on an existing menu itemThe existing item's section and name, and your own tabname
An app in the Apps tabtabname to Apps and an appname
A view in the Excel add-inexcel to true

The portal menu is a rail of groups. Selecting a group opens a panel listing its menu items, each with its icon, name and description (the view's description, or the extension's when no view of the item has one). Set section to one of these groups:

GroupsectionWhat goes here
DataDataFinding, viewing and editing data and master data
Reports and dashboardsReportsReports, dashboards and auditing
MonitorMonitorAlerts, validation, processes and deliveries
Load and deliverDeliverLoading data in and sending it out: loaders, integrations, exports, automations
BuildBuildScripts, workflows, notebooks, calendars and promotion
Fusion AIAIFusion AI
ManageManageGroups and bulk management
Solutionsany other sectionIndustry and customer solutions; each section is a heading in the panel
ODSL AdminODSL AdminOpenDataDSL administration

The older sections still work: Information goes to Data and Operations to Monitor. Screens that host extension tabs (Master Data, Data, Events and Groups) still match on the screen's own section and name, so keep Information or Manage on those views.

Where the menu items sit today, so you can choose an order between them:

GroupItems by order
Data5 Tasks (Home), 10 Master Data, 20 Data, 25 Data Explorer, 30 Events, 35 Event Data, 40 Smart Data (portal), 45 Smart Data, 50 GEO Data, 60 Composer, 70 Data Reconciliation
Reports10 Reports, 20 Dashboards, 30 Auditing, then pinned dashboards and reports
Monitor10 Alerts (portal), 12 Alerts, 15 Validation, 20 Executions, 30 Processes, 40 Process Timeline, 50 Curves, 60 Datasets
Deliver10 Data Loaders, 20 Integrations, 30 Export data, 40 Automations, 50 Aggregator, 80 Data Packages, 90 Queues
Build10 Scripts (portal), 15 Scripts, 20 Types, 30 Calendars (portal), 35 Calendars, 40 Workflows, 50 Notebooks, 60 Promote
AI10 Fusion AI
Manage10 Groups (portal), 15 Group Manager, 20 Data Management, 30 Master Data Management
SolutionsExtensions: 10 Simple Portfolio, 90 Example. Packaging: 10 Components, 20 Packaging, 30 Analysis
ODSL Admin10 Tenants, 20 Common Policies, 30 Alert Manager

Resources​

e.resources lists what is installed with the extension, by service. Anything not listed is not installed when the extension is installed in another environment or tenant, even if it works where you built it.

ServiceList
scriptEvery script the extension uses: each view's page, every partial the pages include, and every insight page
reportconfigEvery insight report id
policyThe feature policy and every data policy
taskEvery task tile the extension adds to the Home page, by id (see Adding tasks)

script can instead hold lifecycle scripts, which run when the extension is installed, upgraded or uninstalled:

e.resources.script.install = "acme\extensions\positions\acme.positions.install"
e.resources.script.upgrade = "acme\extensions\positions\acme.positions.upgrade"
e.resources.script.uninstall = "acme\extensions\positions\acme.positions.uninstall"

Use them for one-off set-up, such as creating the master data types or default settings the extension needs.


Naming conventions​

ThingConventionExample
Extension idpublisher.codeacme.positions
Feature policyextension. and the extension idextension.acme.positions
FeatureThe extension id and the view id, or one feature for all viewsacme.positions.main
Page scriptsA folder per extension, files named by extension id and view idacme\extensions\positions\acme.positions.limits
Shared partialsThe extension id with .style and .commonacme.positions.style
Insight reportsThe extension id, .insight. and a nameacme.positions.insight.history
Insight categoryThe extension idacme.positions

Pages written by the Build an extension playbook are saved under ai-generated\extensions\ instead, so they are easy to tell apart.


Saving the manifest with Fusion AI​

Fusion AI has tools that save the same objects without a script: create_policy for feature and data policies, save_script for pages, create_report for insight reports and create_extension for the extension. The Build an extension playbook uses them after your approval, and hands back the equivalent create-extension.odsl script.