CDT Diff Utilities

Overview

This plugin contains two functions to track changes in CDT instances for audit requirements.

Key Features & Functionality

  • The cdtdifference() function takes two instances of the same CDT and returns an array of differences in the form: [attributeName, previousValue=, currentValue=]. The primary use case for this function is to take two rows from a database, read them into the same CDT type, pass them to the function and return the differences so as to support an audit requirement of what changed between versions of the data.
  • The cdtcomparison() function takes two instances of the same CDT and returns an array of ALL of the elements from the two CDTs with their previous and current values, along with a Boolean flag indicating if the values are different, in the form: [attributeName, isDifferent, previousValue=, currentValue=]. The primary use case is similar to that of the cdtdifference() function, but allows for a full side-by-side comparison of the data as opposed to just the differences.
Anonymous
Parents
  • Hi Can anybody tell me how to use any of the above function in my process model, In my process model start form I am filling values, then If I reject that form in the approval form then I have to fill former form details again, so How can I capture the previous form details and current form details(basically the 1st instance and 2nd instance values)in  cdtcomparison() function?

Comment
  • Hi Can anybody tell me how to use any of the above function in my process model, In my process model start form I am filling values, then If I reject that form in the approval form then I have to fill former form details again, so How can I capture the previous form details and current form details(basically the 1st instance and 2nd instance values)in  cdtcomparison() function?

Children
No Data