Glossary¶
The vocabulary of Polarion Applications, in alphabetical order. Each entry links to the page where the concept is explained.
A¶
- Application
- A package (ZIP) with a manifest, one or more views and optional endpoints, uploaded to Polarion through Global Administration. The extensibility framework
- Application identifier
- The
identifierfield of the manifest; globally unique on a server and the name of the top-level folder in the ZIP. Reverse-DNS style, for examplecom.example.inspector. Application package applicationView- The XML element that places a form extension in a form layout or a navigation topic in a Topics configuration. Its
idis<identifier>.<viewId>. View configuration XML appEndpoint- Context field with the base URL of the application's own endpoints:
https://<host>/polarion/apps/<identifier>/rest. PolarionContext arguments- Polarion's
IArgumentsobject inside a server script, holding the request parameters. Inside a JavaScript function the name refers to the function's own arguments, so capture it at the top level. Write the server script
C¶
- Context
- The
PolarionContextobject a view receives fromfetchContext(): identifiers of the surrounding project, work item or document, the selection, and the URLs and token for HTTP calls. Application context
E¶
- Endpoint
- An HTTP path under
/polarion/apps/<identifier>/rest/implemented by a server script and declared inserverScripts.endpoints. Your own REST API inside Polarion. Your own REST endpoints - Envelope
- The JSON wrapper
{ timestamp, success, data }or{ timestamp, success: false, error }around every endpoint response. Results and the envelope - Event
- A notification pushed by the Polarion host to a view through the SDK. Polarion 2612 emits
selection-changed. React to selection changes
F¶
- Form extension
- A view type rendered as a collapsible panel inside the Work Item form; knows the open work item. Form extension
- Form layout
- Polarion's XML configuration of the Work Item form per work item type and Polarion View. Where form extensions are placed. Place it in a form layout
H¶
- Host bridge
- The part of the Polarion page that answers SDK requests and emits events to application iframes over
postMessage. How an application works
M¶
manifestVersion- Manifest field with the version of the manifest format;
"1.0"in Polarion 2612. manifest.json - Manifest
manifest.json, the descriptor of an application: identity, views and endpoints. manifest.json
N¶
- Navigation topic
- A view type rendered as a full page with an entry in the project navigation panel. Navigation topic
O¶
objectId- The parameter every endpoint call must carry, usually
PROJECT/WI-IDof the object the call is about. The objectId parameter
P¶
- Polarion View (hat)
- Polarion's named sets of navigation topics and form layouts (Default and any custom ones). Not to be confused with an application view.
- Polarion Application SDK
- The npm package
polarion-app-sdkprovidingfetchContext,events,destroyandEventTypes. SDK API publisherName- Manifest field naming the organization that publishes the application; shown in the upload dialog and in Properties. manifest.json
R¶
- REST API
- Polarion's documented REST API under
/polarion/rest/v1, callable from a view with the token from the context. Calling the REST API from a view - REST token
- The value of
context.restToken, sent as theX-Polarion-REST-Tokenheader to authenticate REST and endpoint calls as the current user. Requires token authentication on the server. Enable Applications in Polarion - Root directory
- The folder of a view inside the application package (
rootDirectoryin the manifest). Application package
S¶
- Selection
- The work items currently selected in a Work Items table or Document. Sidebars receive it only through the
selection-changedevent; theircontext.selectedWorkItemIdsis empty. A form extension gets the open item, or all ticked items in the multi-item edit form, incontext.selectedWorkItemIds. React to selection changes - Server script
- A JavaScript file in
server-scripts/executed on the Polarion server by GraalVM when its endpoint is called; has access to the Polarion Java API. Write the server script - Sidebar
- A view type shown in the sidebar area next to the Work Items table and in Documents, selectable from the Show Sidebar menu. Sidebar
T¶
- Topics configuration
- Polarion's XML configuration of the navigation panel per Polarion View. Where navigation topics are placed. Add it to the navigation
V¶
- View
- One web page of an application placed at one kind of location in Polarion: form extension, sidebar or navigation topic. Declared under
viewsin the manifest. Views - View identifier
- The
identifierof a view, unique within its application. Combined with the application identifier into<identifier>.<viewId>. manifest.json