Notifications

1098 views

Description

The Approval history added to a record via a Workflow is not audited, resulting in the Approval history journal entries not reflecting the correct created timestamp.

Steps to Reproduce

 

  1. Navigate to System Properties > All Properties and set the glide.workflow.user_approval_history property to true. 

  2. Create a Workflow named Test Approval History and add an Approval - User activity between Begin and End.

    For more information, see the documentation topic Create a workflow.

  3. Create an item Test Approval History and attach it to the created workflow. 

  4. Submit a request for the created item. 

  5. Go to the request and add the Approval History to the form.

    1. Click the Activity Filter icon (Toggle activity filter icon) next to the Activity log.
    2. Click Configure available fields.
    3. Move Approval history from the Available list to the Selected list.
    4. Click Save.

     At first, only the "Fred Luddy requested to approve task" item is displayed in the activity log. 

  6. Right-click in the header and choose History > List.

  7. Click Delete.

    Note that the date/time timestamps of the two logs have the creation date and time of the RITM rather than the date/time timestamps of the Approval History message matching the date and time of the approval record. 

 

Workaround

In the Approval Events (Task) and the Approval Events (Non-Task) business rules on sysapproval_approver table change the following lines:

if (isWorkflow)
record.setWorkflow(false); 

to

if (isWorkflow)
task.setRunEngines(false);


Related Problem: PRB868619

Seen In

Geneva Patch 5

Fixed In

Jakarta

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-07-09 06:30:47
Published:2018-03-02