Changes

Workflow Editor

929 bytes added, 07:05, 26 June 2013
The Worflow Editor is designed to display , run and edit [[Workflow|Workflows]] of a single {{UBIK}} object. Technically, it * either reads the [[SYSREL_WORKFLOW|Workflow]] relation of the context object, or * loads its instances if the context object is the [[WORKFLOW|System MetaClass Workflow]]* loads the context object itself if it is a Workflow object
{{ControlInfoBox
===Appearance===
The Workflow Editor basically features a [[Workflow Designer]] component that can be fed with {{UBIK}} Workflow objects.
 
When a context object was set, the Workflow Editor
* either reads the [[SYSREL_WORKFLOW|Workflow]] relation of the context object, or
* loads its instances if the context object is the [[WORKFLOW|System MetaClass Workflow]]
* loads the context object itself if it is a Workflow object
 
The result will be loaded into the Toolbar, where a Workflow object can be selected. Selecting one will load the Workflow into the designer surface.
====Design vs view====
Depending on the type of the context object, the Workflow Editor will either appear in design or in view mode. In the latter case the workflow is readonly and the activity toolbox is hidden. The Workflow Designer is in design mode, if
* The context object is the [[WORKFLOW|system MetaClass Workflow]]
* The context object is an [[instance|Instance]] of the system MetaClass Workflow
 
In all other cases the Workflow Editor will be in view mode.
 
===Drag & Drop===
The Workflow Editor control There is a target for currently no Drag&Drop operations, any object can be dropped on support other than the value field internal Drag&Drop of an editing control if the dragged object matches the data type of the respective propertyWorkflow Designer.
==Toolbar==
| View Style || Indicates or changes the [[#View Style|View Style]] of the control; changing it will result in reloading of the control
|- align="left"
| Navigate to context object || Attempts to [[Navigation|navigate]] to the current context MetaClass.object or the currently selected Workflow
|- align="left"
| Save || Saves the context object.
|- align="left"
| Select Workflow|| All possible Workflows for the current context object are listed here; selecting one will immediately load the Workflow into the designer
|- align="left"
| Run || Executes the currently selected Workflow in the main thread
|}