ProcessData widget - bluesoft-rnd/aperte-workflow-core GitHub Wiki
This widget allows user to submit new or edit existing process instance variable. Because those values can be evaluated as different types (date, text, selection), ProcessData widget requires more flexibility than standard widgets. That's why it aggregates smaller components, that we refer to as Form Elements, to render itself.
This widget is part of Base Widgets plugin.
Attribute name | Type | Required | Default value | Description |
---|---|---|---|---|
caption | String | False | Allows to set the widget caption text. | |
widgetsDefinition | String | True | Contains XML definition of form elements that will be used to render the ProcessData widget fields. Form elements are described in Available form elements section on this page. |
Permission name | Description |
---|---|
EDIT | Required to edit any form element inside this widget. Otherwise the form element is read only. |
See dedicated page ProcessData scripting.
See dedicated page ProcessData simple form elements.
See dedicated page ProcessData container form elements.
This example demonstrates usage of ProcessData widget. Please do note, that the screenshot below shows this widget nested inside parent VerticalLayout widget.
<config.ProcessStateWidget className="ProcessData" priority="15">
<permissions>
<config.ProcessStateWidgetPermission priviledgeName="EDIT" roleName=".*" />
</permissions>
<attributes>
<config.ProcessStateWidgetAttribute name="caption" value="Your details" />
<config.ProcessStateWidgetAttribute name="widgetsDefinition">
<value>
<![CDATA[
<widgetsDefinition>
<input caption="First name" bind="first_name" width="100%" required="true" prompt="Please enter Your first name"/>
<input caption="Last name" bind="last_name" width="100%" required="true"/>
<text caption="Few words about you" bind="info" width="100%" required="true"/>
</widgetsDefinition>
]]>
</value>
</config.ProcessStateWidgetAttribute>
</attributes>
</config.ProcessStateWidget>