Question

bitsinglass
bitsinglass
CA
bitsinglass
Posted: Jul 24, 2015
Last activity: Aug 3, 2015
Last activity: 3 Aug 2015 19:28 EDT
This content is closed to future replies and is no longer being maintained or updated.
Links may no longer function. If you have a similar request, please write a new post.
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.
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
Question
Question
Question Solved
Question
Question
Discussion
Question
Question
Question Solved
Question Solved
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.