project BLF > class BWorkObject > method AdditionalUpdates

Description

This method is part of the SetPublicTables flow.
When executed, data in the input class tables (prefix t_s) is validated and found correct, and copied into the class tables (prefix t_o).
This method can be extended to do updates that do not require a validation or that involve running business methods of other business classes. These classes should be started with ADD-TO-TRANSACTION = 'true'. Also make sure to add these classes in method StopExternalInstances.


Parameters


oiReturnStatusoutputinteger


Internal usage


BLF
method BWorkObject.CreateOrUpdateWorkObject
method BWorkObject.DeleteWorkObjectScopeHolders
method BWorkObject.UpdateWorkobjectStatus


program code (program/bworkobject.p)

<ANCESTOR-CODE>

/* Provide a GUID for an external object referencing this workobject -
   Use for the AppShell work inbox implementation */
for each tWorkObject where tWorkObject.tc_Status = 'N':U:
    vaMyUuid = GENERATE-UUID. 
    tWorkObject.WorkObjectExternalRef = GUID(vaMyUuid).
end.