widgets.xml Element Reference
The widgets.xml file keeps the application default configuration. It is loaded on the Web application startup.
The widgets.xsd file is a schema for widgets.xml files. For more details, see the Application Configuration section in Backoffice Framework - Technical Overview.
Schema Document Properties
|
Target Namespace |
None |
|
Version |
1.0 |
|
Element and Attribute Namespaces |
|
|
Schema Composition |
|
Declared Namespaces
|
Prefix |
Namespace |
|---|---|
|
xml |
http://www.w3.org/XML/1998/namespace |
|
xs |
http://www.w3.org/2001/XMLSchema |
Global Declarations
Global declarations in the widgets.xml file.
Element: widgets
widgets is the root element of the widgets.xml file.
|
Type |
Locally-defined complex type |
|
Nillable |
no |
|
Abstract |
no |
XML Instance Representation
<widgets> |
|
required-parameters="string" |
List of the parameters required to create a correct widgets.xml file. You need to add the parameters as the attributes in the import element. |
<widget>Widget</widget> [0..*] |
See the Complex Type: Widget. |
<widget-connection>WidgetConnection</widget-connection> [0..*] |
See the Complex Type: WidgetConnection. |
<widget-connection-remove>WidgetConnectionRemove</widget-connection-remove> [0..*] |
|
<widget-extension>WidgetExtension</widget-extension> [0..*] |
See the Complex Type: WidgetExtension. |
<import>Import</import> [0..*] |
See the Complex Type: Import. |
<requires>Requirement</requires> [0..*] |
See the Complex Type: Requirement. |
</widgets> |
Element: virtual-sockets
virtual-sockets allows you to define dynamic sockets. When widget definition does not specify a virtual socket, you can add it through the widgets.xml or application orchestrator.
|
Type |
Locally-defined complex type |
|
Nillable |
no |
|
Abstract |
no |
XML Instance Representation
<virtual-sockets> |
|
<input>Socket</input> [0..*] |
Input virtual socket. See the Complex Type: Socket. |
<output>Socket</output> [0..*] |
Output virtual socket. See the Complex Type: Socket. |
</virtual-sockets> |
Global Definitions
Global definitions in the widgets.xml file.
Complex Type: AccessSettings
AccessSettings allows you to restrict access to a widget instance to a particular authority group.
|
Parent type |
None |
|
Sub-types |
None |
|
Abstract |
no |
XML Instance Representation
<...> |
|
<add>AddAccess</add> [0..1] |
See the Complex Type: AddAccess. |
<remove>RemoveAccess</remove> [0..1] |
See the Complex Type: RemoveAccess
. |
<replace>ReplaceAccess</replace> [0..1] |
See the Complex Type: ReplaceAccess. |
</...> |
Complex Type: AddAccess
AddAccess adds a widget access restriction for the specified authority group.
|
Parent type |
None |
|
Sub-types |
None |
|
Abstract |
no |
XML Instance Representation
<...> |
|
<add>string</add> [0..1] |
Adds an access restriction for the specified authority group or several comma-separated authority groups. |
</...> |
Complex Type: AllSocketEvents
AllSocketEvents is a marker tag that allows you to use all the socket events defined for a given widget template in the specific context where you put this tag.
|
Parent type |
None |
|
Sub-types |
None |
|
Abstract |
no |
XML Instance Representation
</AllSocketEvents> |
Complex Type: CloseSettings
CloseSettings allows you to define closing settings of template instances.
|
Parent type |
None |
|
Sub-types |
None |
|
Abstract |
no |
XML Instance Representation
<...> |
|
<incoming-events>SocketEvents</incoming-events> [0..1] |
Lists incoming socket events that a template instance is closed for. See the Complex Type: SocketEvents. |
<all-incoming-events>AllSocketEvents</all-incoming-events> [0..1] |
Determines if a template instance is closed in the case of any incoming socket event. See the Complex Type: AllSocketEvents. |
<outgoing-events>SocketEvents</outgoing-events> [0..1] |
Lists outgoing socket events that the template instance is closed for. See the Complex Type: SocketEvents. |
<all-outgoing-events>AllSocketEvents</all-outgoing-events> [0..1] |
Determines if a template instance is closed in the case of any outgoing socket event. See the Complex Type: AllSocketEvents. |
</...> |
Complex Type: CreateSettings
CreateSettings allows you to define creation settings of template instances.
|
Parent type |
None |
|
Sub-types |
None |
|
Abstract |
no |
XML Instance Representation
<... |
|
onInit="boolean" |
Determines if to create a template instance automatically on template initialization. |
reuseExisting="boolean" |
Determines if to create a new template instance or rather reuse existing instance. |
> |
|
<incoming-events>SocketEvents</incoming-events> [0..1] |
Lists incoming socket events for which a new instance is created. See the Complex Type: SocketEvents. |
<all-incoming-events>AllSocketEvents</all-incoming-events> [0..1] |
Determines if an instance is created in case of any incoming socket event. See the Complex Type: AllSocketEvents. |
</...> |
Complex Type: Import
Import allows you to merge configuration from many files. You can specify a resource for importing application configuration defined in another XML file.
|
Parent type |
None |
|
Sub-types |
None |
|
Abstract |
no |
XML Instance Representation
<... |
|
resource="string" [required] |
Specifies a path to the file to import. |
moduleUrl="string" |
Property used during modules loading and sorting. |
attr1="string" attr2="string" … attrN="string" |
Additional parameters used in the imported files. The parameters that are required to create the correct widgets.xml file are listed in the required-parameters attribute in the Element: widgets. |
/> |
Complex Type: InstanceSettings
InstanceSettings allows you to define how template instances work.
|
Parent type |
None |
|
Sub-types |
None |
|
Abstract |
no |
XML Instance Representation
<... |
|
socketEventRoutingMode="SocketEventRoutingMode" |
Defines how socket events are forwarded to the template instances. See the Simple Type: SocketEventRoutingMode. |
> |
|
<create>CreateSettings</create> [0..1] |
Defines when a new template instance is created. See the Complex Type: CreateSettings. |
<close>CloseSettings</close> [0..1] |
Defines when new template instance is closed. See the Complex Type: CloseSettings. |
<select>SelectSettings</select> [0..1] |
Defines when new template instance is selected (shown). See the Complex Type: SelectSettings. |
</...> |
Complex Type: RemoveAccess
RemoveAccess removes a widget access restriction for the specified authority group.
|
Parent type |
None |
|
Sub-types |
None |
|
Abstract |
no |
XML Instance Representation
<...> |
|
<remove>string</remove> [0..1] |
Removes an access restriction for the specified authority group or several comma-separated authority groups. |
</...> |
Complex Type: ReplaceAccess
ReplaceAccess replaces the current access restrictions with the specified authority group.
|
Parent type |
None |
|
Sub-types |
None |
|
Abstract |
no |
XML Instance Representation
<...> |
|
<replace>string</replace> [0..1] |
Replaces an access restriction for the specified authority group or several comma-separated authority groups. |
</...> |
Complex Type: Requirement
Requirement allows you to specify the resource necessary to import the widgets.xml file.
|
Parent type |
None |
|
Sub-types |
None |
|
Abstract |
no |
XML Instance Representation
<... |
|
resource="string" [required] |
Resource required for proper interpretation of the widgets.xml file. You need to import the resource provided in the resource parameter earlier, otherwise the import fails. |
/> |
Complex Type: SelectSettings
SelectSettings allows you to define selection settings of template instances..
|
Parent type |
None |
|
Sub-types |
None |
|
Abstract |
no |
XML Instance Representation
<... |
|
onInit="boolean" |
Determines if a template instance is selected (shown) right after initialization. |
> |
|
<incoming-events>SocketEvents</incoming-events> [0..1] |
Lists incoming socket events for which a template instance is selected (shown). See the Complex Type: SocketEvents. |
<all-incoming-events>AllSocketEvents</all-incoming-events> [0..1] |
Determines if a template instance is selected in the case of any incoming socket event. See the Complex Type: AllSocketEvents. |
</...> |
Complex Type: Socket
Socket specifies a socket definition.
|
Parent type |
None |
|
Sub-types |
None |
|
Abstract |
no |
XML Instance Representation
<... |
|
id="string" [required] |
Specifies a socket id. |
multiplicity="SocketMultiplicity" |
See the Simple Type: SocketMultiplicity. |
type="string" |
Specifies a socket type. |
visibility="SocketVisibility" |
See the Simple Type: SocketVisibility. |
/> |
Complex Type: SocketEvent
SocketEvent allows you to define an event on a widget socket.
|
Parent type |
None |
|
Sub-types |
None |
|
Abstract |
no |
XML Instance Representation
<... |
id="string" [required] |
/> |
Complex Type: SocketEvents
SocketEvents allows you to group events on a particular socket.
|
Parent type |
None |
|
Sub-types |
None |
|
Abstract |
no |
XML Instance Representation
<...> |
|
<socket-event>SocketEvent</socket-event> [0..*] |
See the Complex Type: SocketEvent. |
</...> |
Complex Type: Widget
Widget allows you to configure a particular widget instance. You can nest other widgets within.
|
Parent type |
None |
|
Sub-types |
None |
|
Abstract |
no |
XML Instance Representation
<... |
|
|
|
Widget instance ID. |
widgetDefinitionId="string" [required] id="string" [required] |
Widget definition ID. |
slotId="string" |
Parent widget slot ID. |
title="string" |
Widget title. |
template="boolean" |
Determines if the widget is a template widget. You can use a template to create new widget instances based on it. |
lastFocusedChildIndex="integer" |
|
lastFocusedTemplateInstanceId="string" |
|
access="string" |
Access restriction. Contains comma separated set of authorities with granted access to the widget instance. |
> |
|
<widget>Widget</widget> [0..*] |
Widgets embedded in the slots of this widget. |
<instance-settings>InstanceSettings</instance-settings> [0..1] |
See the Complex Type: InstanceSettings. |
<setting>WidgetSetting</setting> [0..*] |
Custom setting of the widget instance. See the Complex Type: WidgetSetting. |
<virtual-sockets>...</virtual-sockets> [0..1] |
Set of virtual (dynamic) slots of widget instance. See the Element: virtual-sockets. |
</...> |
Complex Type: WidgetConnection
WidgetConnection allows you to connect widgets together to enable a communication channel between them, and asynchronous data transfer from source to target widget.
|
Parent type |
None |
|
Sub-types |
None |
|
Abstract |
no |
XML Instance Representation
<... |
|
name="string" |
Human readable name of the connection (optional). |
sourceWidgetId="string" [required] |
ID of the connection source widget . |
outputId="string" [required] |
Output socket ID of the source widget. |
targetWidgetId="string" [required] |
ID of the connection target widget. |
inputId="string" [required] |
Input socket ID of the target widget. |
moduleUrl="string" |
Property used during modules loading and sorting. |
/> |
Complex Type: WidgetConnectionRemove
WidgetConnectionRemove allows you to remove connections between widgets.
|
Parent type |
None |
|
Sub-types |
None |
|
Abstract |
no |
XML Instance Representation
<... |
|
name="string" |
Name of the connection you want to remove. |
sourceWidgetId="string" |
ID of the connection source widget. |
outputId="string" |
Output socket ID of the source widget, you must provide it with the sourceWidgetId. |
targetWidgetId="string" |
ID of the connection target widget. |
inputId="string" |
Input socket ID of the target widget, you must provide it with the targetWidgetID. |
/> |
Complex Type: WidgetExtension
WidgetExtension allows you to extend an existing widget and override its configuration. For example, you can add or remove child widgets.
|
Parent type |
None |
|
Sub-types |
None |
|
Abstract |
no |
XML Instance Representation
<... |
|
widgetId="string" [required] |
ID of existing widget that is the target for the extension. |
contextId="string" |
Property used during modules loading and sorting. |
> |
|
<move>WidgetMove</move> [0..1] |
Specifies widgets to be moved to the target widget. See the Complex Type: WidgetMove. |
<remove>WidgetRemoveEntry</remove> [0..*] |
Specifies widget you want to remove from the target widgets children. See the Complex Type: WidgetRemoveEntry. |
<remove-all>WidgetRemoveAllEntry</remove-all> [0..*] |
Allows you to remove all children widgets from the target widgets children. See the Complex Type: WidgetRemoveEntry. |
<widget>Widget</widget> [0..*] |
Allows you to add a child widget to the target widget. See the Complex Type: Widget. |
<instance-settings>InstanceSettings</instance-settings> [0..1] |
Allows you to modify template instance behavior settings of the target widget. See the Complex Type: InstanceSettings. |
<setting>WidgetSetting</setting> [0..*] |
Allows you to modify settings of the target widget instance. See the Complex Type: WidgetSetting. |
<access>AccessSettings</access> [0..*] |
Allows you to specify access restriction for a widget instance. See the Complex Type: AccessSettings. |
<virtual-sockets>...</virtual-sockets> [0..1] |
Allows you to define dynamic sockets for a widget instance. See the Element: virtual-sockets. |
</...> |
Complex Type: WidgetMove
WidgetMove specifies a widget you want to move to another widget as a child.
|
Parent type |
None |
|
Sub-types |
None |
|
Abstract |
no |
XML Instance Representation
<... |
|
widgetId="string" [required] |
ID of the current parent widget of the extended widget. |
targetWidgetId="string" [required] |
ID of the new parent widget of the extended widget. |
targetSlotId="string" [required] |
Slot ID of the new parent widget you want the selected widget be connected through. |
position="integer" |
Position in the slot (useful when slot is defined as widgetchildren) that you want the selected widget be located at. |
failOnError="boolean" |
If set to true, in case the configuration loading fails, the configuration processing stops. |
/> |
Complex Type: WidgetRemoveAllEntry
WidgetRemoveAllEntry indicates that all children widgets are removed as a result of the widget extension.
|
Parent type |
None |
|
Sub-types |
None |
|
Abstract |
no |
XML Instance Representation
<... |
|
contextId="string" |
Property used during modules loading and sorting. |
includeSettings="boolean" |
Indicates if settings of the target widget are cleared. |
/> |
Complex Type: WidgetRemoveEntry
WidgetRemoveEntry indicates ID of the widget you want to remove.
|
Parent type |
None |
|
Sub-types |
None |
|
Abstract |
no |
XML Instance Representation
<... |
|
widgetId="string" [required] |
ID of the widget you want to remove. |
/> |
Complex Type: WidgetSetting
WidgetSetting provides custom widget instance settings.
|
Parent type |
None |
|
Sub-types |
None |
|
Abstract |
no |
XML Instance Representation
<... |
|
key="string" [required] |
Setting key. |
value="string" |
Setting value. |
type="SettingType" |
Setting type (String, Boolean, Integer or Double). See the Simple Type: SettingType. |
/> |
Simple Type: SettingType
SettingType specifies the type of the setting.
|
Parent type |
String (derivation method: restriction) |
|
Sub-types |
None |
|
Content |
|
Simple Type: SocketEventRoutingMode
SocketEventRoutingMode provides possible modes of socket events propagation to widget template instances.
|
Parent type |
String (derivation method: restriction) |
|
Sub-types |
None |
|
Content |
|
Simple Type: SocketMultiplicity
SocketMultiplicity defines multiplicity of the socket.
|
Parent type |
String (derivation method: restriction) |
|
Sub-types |
None |
|
Content |
|
Simple Type: SocketVisibility
SocketVisibility specifies the socket visibility.
|
Parent type |
String (derivation method: restriction) |
|
Sub-types |
None |
|
Content |
|