Workflow-XML
Die Elemente unterhalb des "workflow"-Wurzelknotens können in beliebiger Reihenfolge und Anzahl vorkommen.
| Element | Beschreibung | Namensraum | Anzahl |
|---|---|---|---|
| serverActivity | Konfigurationsabschnitt für eine Aktivität zum Aufruf einer serverseitigen Javascript-Funktionalität | http://onion.net/modulesystem/workflow | 0..* |
| widgetActivity | Konfigurationsabschnitt für eine Aktivtät zur Anzeige eines Widgets | http://onion.net/modulesystem/workflow | 0..* |
| dialogActivity | Konfigurationsabschnitt für eine Aktivtät zur Anzeige eines Dialoges | http://onion.net/modulesystem/workflow | 0..* |
| uiActivity | Konfigurationsabschnitt für eine Aktivtät zum Aufruf einer Javascript-Funktionalität | http://onion.net/modulesystem/workflow | 0..* |
| Attribut | Beschreibung | Nur für ein Widget | Optional |
|---|---|---|---|
| defaultHeight | Standardhöhe eines Widgets | Ja | Ja |
| defaultWidth | Standardbreite eines Widgets | Ja | Ja |
| maxHeight | Maximal Höhe eines Widgets | Ja | Ja |
| maxWidth | Maximal Höhe eines Widgets | Ja | Ja |
| minHeight | Minimale Höhe eines Widgets | Ja | Ja |
| minWidth | Minimale Höhe eines Widgets | Ja | Ja |
| icon-20 | Icon in der Größe 20x20 | Nein | Ja |
| icon-32 | Icon in der Größe 32x32 | Nein | Ja |
| skin | Aussehen eines Widgets | Ja | Ja |
| start | Startaktivität | Nein | Nein |
<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>