ProcessComments widget - bluesoft-rnd/aperte-workflow-core GitHub Wiki

ProcessComments widget allows user to submit their comments to pending BPM processes in form of short textual messages. If enabled, comments editor supports advanced text formatting with Vaadin RichTextArea component.

This widget is part of Base Widgets plugin.

Attributes

Attribute name Type Required Default value Description
table Boolean False False If set to true, the content will be displayed using Table component and the comment text will be visible after clicking on entries. Otherwise multiple Label components will be used to display everything at once.
mustAddComment Boolean False False If set to true, user must enter the comment in the current process step.

Permissions

Permission name Description
ADD Required to add new comments. Allows to view comment list.
EDIT Required to edit own comments. Allows to view comment list.
EDIT_ALL Required to edit all comments. Allows to view comment list.
VIEW Allows to view comment list.

Examples

This example demonstrates usage of ProcessComments widget. Please do note, that the screenshot below shows this widget nested inside parent VerticalLayout widget.

<config.ProcessStateWidget className="ProcessComments" priority="99">
    <permissions>
        <config.ProcessStateWidgetPermission priviledgeName="ADD" roleName=".*"/>
    </permissions>
    <attributes>
        <config.ProcessStateWidgetAttribute name="caption" value="Comments"/>
        <config.ProcessStateWidgetAttribute name="comment" value="If you have any comments about this 
                process, please enter them here."/>
        </config.ProcessStateWidgetAttribute>
    </attributes>
</config.ProcessStateWidget>

⚠️ **GitHub.com Fallback** ⚠️