Question

6
Replies
6633
Views
yelas1 Member since 2014 75 posts
PEGA
Posted: 3 years ago
Last activity: 3 years 2 months ago
Closed
Solved

Obj-Save with deferred write, check if success

We have an activity of type Utility that creates a new page (TargetPage) and does obj-save. 'WriteNow' is unchecked (the Help doc recommends to leave this unchecked for activities of type utility)

psuedo-code:

1. Page-New -> TargetPage
2. Apply DT on TargetPage
3. Obj-Save -> TargetPage
(WriteNow, withErrors, OnlyIfNew are all Unchecked)
If stepStatusFail then go to LogError else PageRemove step

4. LogSuccess (and go to PageRemove step) -> hardcoded 'Success' message, for debugging
5. LogError -> hardcoded 'Failure' message, for debugging
6. Page-Remove -> TargetPage

Now, we have cases where the obj-save didn't throw any StepStatusFail but no data was committed to the target table. It logged success (step4) and removed the target page. This 'false success' happens only in few instances.

For deferred write operations, does the StepStatusFail in the obj-save step hold any value to check if the write succeed? I mean, it's deferred write and if the write isn't committed yet the StepStatusFail in this step will not have any info on how the write happened.

In the last step we are doing Page-Remove, what happens if the deferred write is not yet commited by this time? If the page is removed the deferred write can still succeed later?

How to check status if the deferred write has committed successfully (whenever it happens eventually)?

Data Integration Java and Activities
Moderation Team has archived post
Share this page LinkedIn