Group Approval X User Approval on Activity Log (Approval History)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2013 08:25 AM
Hi All,
I have a Change Management process were there are some Approval Workflows set as default.
Whenever one creates a change, it automatically fires 2 group approvals and 1 user approval.
If someone from a group approval approves that change, it creates a comment on the approval_history field and it gets displayed on the Activity Log (I have personalized the activity log to display that entry).
However, when the user from the User Approval approves it. No comment gets displayed on the activity log. I already updated the System Property "glide.workflow.user_approval_history" to true, and in fact, it stores the information on the activity_history field, but it does not show up on the Activity Log. Any guess how to show that user approval on the Activity Log?
Thank you,
Bruno
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2013 11:32 AM
As far as I looked, the Group Approvals history are somehow also stored in the sys_history and sys_audit table, referencing the approval history field. That may be the reason the history does not get displayed in the Activity Log. But is there an automatic way to also place the history on those tables?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2013 12:09 PM
I got it!
The Approval Events (Task) Business Rule sets the workflow to false before adding a approval history journal. That makes the journal to be added to the approval_history column but nothing more.
I updated the if(isWorflow) to if(isWorkflow && current.state!='approved') and it worked. So now when the approval state is approved, it runs the workflow and places the approval history on the activity log!
Tks guys,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2013 09:31 AM
I tried your fix and it worked partially for me, I am still not able to get the Approval History in activity log but when I add Approval History journal field it does record all entries correctly..any idea why I cant get it in Activity log.. I am on calgary if that makes any difference..