Question
4
Replies
1269
Views
Posted: July 24, 2015
Last activity: August 3, 2015
Closed
Question
Question
Question
Question
Discussion
Question
Question
Question
Question
Question
Below is the activity....
Here in step 4, looping through a page list and calling activity which have multiple activity calls.
But after looping through pages, in step 5 'WorkPage' not having the all properties and values like pzInsKey etc,
It causing save to happen in BLOB, not for the record opened in step 2 by 'Obj-Open-By-Handle'.
Hi Denny, Good Morning!
... would it be convincing to test the iteration & desired behavior by commenting method 'Obj-Refresh-And-Lock' applied on work page (step 3.3)
Please share your thoughts/comments, Thank you!
psahukaru
Some questions and comments:
1) Make sure you use something like a "StepStatusFail" test as a post-condition on each obj-open-by-whatever so you don't continue with code that assumes the page has been populated when it may not have been.
2) I don't understand why you would want an obj-refresh-and-lock right after an obj-open-by-handle. Wouldn't the obj-open-by-handle already have refreshed and locked ?
3) If your commit is only to commit what was just obj-save'd, can you remove it and use the "write now" checkmark on the obj-save ? See if that makes a difference even though it's not exactly clear why it should, but it's in general safer since the "write now" checkmark will commit only what you wrote with obj-save rather than committing other stuff not even involved with your local activity at all.
/Eric
Pega Collaboration Center has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.
Hello Denny,
It is difficult to answer your question without more context. What version of PRPC/Pega are you using? If possible, a stack trace and screen image of the activites in question may allow someone to determine the cause of the NPE.