Structure of the workflow XML
The elements underneath the “workflow” root node can occur in any order and number.
Element | Description | Namespace | Number |
---|---|---|---|
serverActivity | Configuration section for an activity for calling a server-side Javascript functionality | http://onion.net/modulesystem/workflow | 0..* |
widgetActivity | Configuration section for an activity for displaying a widget | http://onion.net/modulesystem/workflow | 0..* |
dialogActivity | Configuration section for an activity for displaying a dialogue | http://onion.net/modulesystem/workflow | 0..* |
uiActivity | Configuration section for an activity for calling a Javascript functionality | http://onion.net/modulesystem/workflow | 0..* |
Attribute | Description | Only for one widget | Optional |
---|---|---|---|
defaultHeight | Default height of a widget | Yes | Yes |
defaultWidth | Default width of a widget | Yes | Yes |
maxHeight | Maximum height of a widget | Yes | Yes |
maxWidth | Maximum height of a widget | Yes | Yes |
minHeight | Minimum height of a widget | Yes | Yes |
minWidth | Minimum height of a widget | Yes | Yes |
icon-20 | Icon in the size 20x20 | No | Yes |
icon-32 | Icon in the size 32x32 | No | Yes |
skin | Appearance of a widget | Yes | Yes |
start | Starting activity | No | No |
<workflow xmlns="http://onion.net/modulesystem/workflow" xmlns:result="http://onion.net/workflow/activityresult" xmlns:onion="http://onionworks.net/2004/data" defaultHeight="2" defaultWidth="2" icon-20="onion://data/objects/100" icon-32="onion://data/objects/101" maxHeight="20" maxWidth="20" minHeight="0" minWidth="0" skin="default" start="prepare" onion:schema="Onion:http://onion.net/2010/editor/modulesystem/workflows/widget">
<serverActivity id="prepare" result:success="display" />
<widgetActivity definition="onion://data/objects/430" id="display" result:success="dialog" />
<dialogActivity id="dialog" result:success="client">
<components>
</dialogActivity><component match="set" definition="global:///sys/modules/2568F269-D701-4953-9245-5C4E76FC9B20/components/onion-workflowdialog/root-component.xml" />
<component match=".sample" definition="onion://data/objects/432" />
</components><uiActivity id="client" result:success="prepare">
</workflow><script>
alert('test');
</script>
</uiActivity>