Project

General

Profile

Actions

Feature #2801

open

Add readonly request description for subprocess tasks - approving by guarantee

Added by Ondřej Kopr over 3 years ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
Vít Švanda
Category:
Workflow
Target version:
-
Start date:
05/11/2021
Due date:
% Done:

0%

Estimated time:
Owner:

Description

Please add read only description of whole role request into subprocess tasks.

For example task detail for approving by guarantee will contain request's description.


Files

approval_task.png (47.5 KB) approval_task.png Alena Peterová, 09/22/2023 10:39 AM
Actions #1

Updated by Alena Peterová over 1 year ago

One way to do this is to add a new formProperty - applicantDescription - to the userTask in the approval workflows, see below:

    <userTask id="approveByRoleGuaranteeA" name="Approve by role authorizer" activiti:candidateUsers="#{candidatesApproveGuarantee}" activiti:formKey="dynamicTaskRoleConceptDetail" activiti:skipExpression="#{skipApproving}">
      <documentation>${processInstanceName}</documentation>
      <extensionElements>
          <activiti:formProperty id="applicantDescription" type="textArea" writable="false"></activiti:formProperty>
        <activiti:formProperty id="disapprove" type="decision"></activiti:formProperty>
        <activiti:formProperty id="approve" type="decision"></activiti:formProperty>
      </extensionElements>
    </userTask>

This will render the requester's note.

However, since version 12 (or 11?), the note is visible only for waiting tasks. When you display a task that was already solved, this new element is not displayed. In 10.8, such elements were visible always (at least those formProperties that we use in our custom workflow).

Actions

Also available in: Atom PDF