In a Pre-Process BPM, is it possible to retrieve the value of a field from before the update processes? (I kind of thought that was the whole idea of Pre-Process BPMS).
I thought the data in the dsTable_Name.FieldName was the value prior to the update, and the value in ttTable_Name.FieldName was the new or updated value.
But both of these return the same value - the value the field is changed to.
I assumed that a Pre-Processing directiv is one that fires when a change needs to be made, but before the change is recorded. For exmaple, the order for a .Update Pre-Proc directive would be:
Record is retrieved (no BPM activity)
User edits value on form
User saves, or does another function (like switch row) that requires the edited record to be updated. (this triggers the BPM)
Pre-Proc BPM is entered. The table that requires updating has not yet been updated. The new values the original record will be updated, with are in ttTableName
BPM processing takes place. Changes can be made to values in ttTableName
BPM Exits
Record in table TableName is updated with values in ttTableName
And that a Post-Proc BPM is:
Record is retrieved (no BPM activity)
User edits value on form
User saves, or does another function (like switch row) that requires the edited record to be updated. (this triggers the BPM)
Record in table TableName is updated with values in ttTableName
Post-Proc BPM is entered. The original table that requires updating has already been updated.
BPM processing takes place. Changes made to values in ttTableName will not affect the original table.
BPM Exits
If the above are correct, I’d have to use a Pre-Proc to have access to the value before it is changed. Inside a Post-Proc BPM, the source table has already been updated.
I was sent this once… I think you have it pretty well but some of us do better with pictures, and this is why the Tracing is SO important… to see EXACTLY what method is called at what point.
Error CS1593: Delegate 'System.Func<Ice.Tables.ReportStyle,int,bool>' does not take 1 arguments [Update.Pre.Log_Report_(Pre).cs(144,3)]
Error CS1660: Cannot convert lambda expression to type 'string' because it is not a delegate type [Update.Pre.Log_Report_(Pre).cs(144,3)]
Error CS1061: 'Ice.Tablesets.ReportStyleTable' does not contain a definition for 'ReportID' and no extension method 'ReportID' accepting a first argument of type 'Ice.Tablesets.ReportStyleTable' could be found (are you missing a using directive or an assembly reference?) [Update.Pre.Log_Report_(Pre).cs(145,49)]
Error CS1061: 'Ice.Tablesets.ReportStyleTable' does not contain a definition for 'StyleNum' and no extension method 'StyleNum' accepting a first argument of type 'Ice.Tablesets.ReportStyleTable' could be found (are you missing a using directive or an assembly reference?) [Update.Pre.Log_Report_(Pre).cs(146,49)]