Page Properties | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||
Resources & Remarks Modification History
|
...
Column in yuuvis® client | Corresponding Counterpart in BPM Engine | Description |
---|---|---|
Description (not available anymore as of version 2021) | Process variable whatAbout | The description that was entered while creating the follow-up. |
as of 2021 Winter: Subject | Web-API Gateway parameter subject , represented as Flowable string variable subject | Set while creating the process. |
Created on | Process parameter startTime | The time the follow-up (process) was created. |
Follow-up date | Process variable expiryDateTime | The due date that was entered while creating the follow-up. |
Status | Derived from process parameters endTime and suspended | Possible values for Status are running , completed and suspended . |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "name": "twosteptest_proc:1st_task", "situation": "EDIT", "script": "", "elements": [ { "name": "core", "type": "o2mGroup", "elements": [ { "type": "o2mGroup", "layout": { "align": "row" }, "elements": [ { "type": "o2mGroup", "name": "xyzSimplefields", "layout": { "align": "column" }, "elements": [ { "name": xyzDatetime", "type": "datetime", "required": false, "cardinality": "single", "readonly": false }, { "name": "xyzDate", "type": "datetime", "required": false, "cardinality": "single", "readonly": false, "resolution": "date" }, { "name": "xyzInteger", "type": "integer", "required": false, "cardinality": "single", "readonly": false }, { "name": "xyzDecimal", "type": "decimal", "required": false, "cardinality": "single", "readonly": false }, { "name": "xyzString", "type": "string", "required": false, "rows": 1, "readonly": false }, { "name": "xyzStringmultirow", "type": "string", "required": false, "rows": 3, "readonly": false } ] }, { "type": "o2mGroup", "name": "xyzComplexfields", "layout": { "align": "column" }, "elements": [ { "name": "xyzEmail", "type": "string", "cardinality": "single", "readonly": false, "classifications": ["email"] }, { "name": "xyzUrl", "type": "string", "required": false, "readonly": false, "classifications": ["url"] }, { "name": "xyzPhone", "type": "string", "required": false, "readonly": false, "classifications": ["phone"] }, { "name": "xyzUser", "type": "string", "required": false, "cardinality": "single", "readonly": false, "classifications": ["id:organization"] }, { "name": "xyzReference", "type": "string", "required": false, "cardinality": "single", "readonly": false, "classifications": ["id:reference[]"], "label": "Reference" }, { "name": "xyzCatalogcustom", "type": "string", "required": false, "cardinality": "single", "readonly": false, "classifications": ["custom:catalog[/api-web/api/dms/catalogs/tenKolibri:processstatus]"], "label": "Catalog status" }, { "name": "xyzBroc:boolean", "type": "boolean", "required": false, "readonly": false, "label": "Boolean" } ] } ] }, { "name": "xyzTest_table", "type": "table", "required": false, "readonly": false, "label": "Notices", "description": "List of notices", "elements": [ { "name": "xyzColumn_string", "type": "string", "required": false, "cardinality": "single", "readonly": false, "label": "String" }, { "name": "xyzColumn_date", "type": "datetime", "required": false, "cardinality": "single", "readonly": false, "label": "Date" }, { "name": "xyzColumn_user", "type": "string", "required": false, "cardinality": "single", "classifications": ["id:organization"], "readonly": false, "label": "User" }, { "name": "xyzColumn_boolean", "type": "boolean", "required": false, "cardinality": "single", "readonly": false, "label": "Boolean" } ] } ] }, { "name": "data", "type": "o2mGroupStack", "elements": [], "layout": { "align": "column" }, "label": "Table group" } ] } |
This is The code clock below shows an example of for the Flowable representation of a yuuvis table property. Tables are only shown up in a form where the types of the column properties are added as seen above.
Code Block |
---|
{ "name": "twosteptest_proc:test_table", "type": "json", "value": [ { "twosteptest_proc:column_string": "abc", "twosteptest_proc:column_date": "2021-09-07T17:31Z", "twosteptest_proc:column_user": "2685df3a-1cf8-4da3-968c-0a4a10b48921", "twosteptest_proc:column_boolean": true } ], "scope": "global" }, |
Start
...
Forms for Starting Processes
As of version 2021 Winter Alpha 4 it is possible to start a process with a startform using a plugin action. The following example offers a startform , a plugin action is available that allows to a process via a start form as shown in the example screenshot. If all form fields are filled with valis values, the Start button is enabled. Both form fields User and Comment are required variables for starting a process.The code block below shows the corresponding configuration offering a start form with the name taskform
in the object action area after view (displayed after a click on the object action "Test process with role assignment" has been clicked).
The button Start
can be clicked if all form fields are correctly validated. Both form fields user
and comment
are given as start variables of the process.
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ "disabled": false, "actions": [ { "id": "yuv.custom.action.userGroupAssignment.multi.label", "label": "yuv.custom.action.userGroupAssignment.multi.label", "description": "yuv.custom.action.userGroupAssignment.multi.description", "priority": 1, "icon": "<svg height=\"24\" viewBox=\"0 0 24 24\" width=\"24\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M0 0h24v24H0V0z\" fill=\"none\"></path> <path d=\"M4 10h12v2H4zM4 6h12v2H4zM4 14h8v2H4zM14 14v6l5-3z\"></path> </svg>", "group": "further", "range": "MULTI_SELECT", "isExecutable": "(item) => item.id", "buttons": { "finish": "yuv.custom.action.userGroupAssignment.multi.start" }, "plugin": { "component": "yuv-object-form", "inputs": { "__initOptions": "this.http.get(`/resources/config/taskform`, 'api-web').then((res) => {component.cmp.options = {formModel: res.data.tenant, disabled: false}})", "__init": "() => parent.finished.subscribe((event) => { var selection = parent.selection; var cmp = component.cmp; this.http.post('/bpm/processes',{businessKey: selection[0].id,name: selection[0].title || selection[0].id,processDefinitionKey: 'userGroupAssignment',attachments: selection.map((s) => s.id),subject: selection[0].title,variables: [{ name: 'user', type: 'string', value: cmp.formData.user || '' },{ name: 'comment', type: 'string', value: cmp.formData.comment || '' },{ name: 'nextUserAssignee', type: 'string', value: 'fakeUserId' },{ name: 'nextGroupAssignee', type: 'string', value: 'YUUVIS_MANAGE_SETTINGS' }]},'api-web').then(() => this.util.notifier.success(this.util.translate('yuv.custom.action.userGroupAssignment.multi.success')))})" }, "outputs": { "statusChanged": "(status) => { parent.disabled = status.invalid; }" } } }, "*" ], "translations": { "en": { "yuv.custom.action.userGroupAssignment.multi.label": "Test process with role assignment", "yuv.custom.action.userGroupAssignment.multi.description": "Starts a process with two tasks. Second task assigned to YUUVIS_MANAGE_SETTINGS", "yuv.custom.action.userGroupAssignment.multi.success": "Process has started" } } } |
This is The following code block shows the form definition for the above plugin action example displayed above:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ "description": "This form is used during process start and both task of process userGroupAssignment", "name": "taskform", "situation": "EDIT", "elements": [ { "name": "core", "type": "o2mGroup", "elements": [ { "name": "user", "labelkey": "userGroupAssignment:user", "type": "string", "cardinality": "single", "required": true, "readonly": false, "classifications": ["id:organization"] }, { "name": "comment", "labelkey": "userGroupAssignment:comment", "type": "string", "required": true, "readonly": false, "rows": 3 } ], "layout": { "align": "column" } }, { "name": "data", "label": "data", "type": "o2mGroupStack", "elements": [] } ] } |
...