Question
Mphasis
IN
Last activity: 19 Feb 2019 6:22 EST
Pega OOTB ReopenWorkObject activity giving issue
Hi,
As per our requirement, I need to re-open the closed bulk cases programmatically. I have used the Pega OOTB activity Work-Cover-.reopenWorkObject to reopen the closed ones.
But I could see an error message "Flow_NullWorkPage " which is a Page-Set-Messages @ step # 4 of Work-.reopenWorkObject activity and it again rollsback to closed status.
However the same activity which is being called from the Menu options (By selecting Reopen) from the screen works fine and it reopens the case successfully.
Any idea why this reopenWorkObject doesn't work when called directly from the other activity. I could see that there no required parameters to pass as well.
Any early response is highly appreciated.
Thanks
Nagi
***Edited by Moderator: Pallavi to update platform capability tags***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Mphasis
IN
Hi,
The issue has been resolved.
OOTB reopen activity has been called instead of reopenWorkObject and passed the parameters Work cover class and case handle.
Thanks for the suggestions.
Pegasystems Inc.
FR
Hello,
Have you tried to compare both executions with the tracer? Can you clarify your product version please.
Mphasis
IN
Yes, I have traced both the executions and could see differences.
Also while running with reopenWorkObject activity, it shows the error pxResults:The work object not in a resolved state.
However the same workobject is getting re-opened successfully by selecting Menu option from Actions i.e.Reopen.
We are using PRPC V7.4.
I have attached the screen-shot of the tracer where getting the error message.
Pegasystems Inc.
FR
Well I would think the problem is coming from your step page when calling Work-Cover-.reopenWorkObject.
How do you actually call this activity?
Mphasis
IN
I am calling this activity a standalone and passing Case handle before this step.
Step page has been defined as well.
Pegasystems Inc.
FR
Can you share the tracer output please.
Mphasis
IN
Hi,
Tracer has been attached.
Please let me know if you find something.
Pegasystems Inc.
US
Hello,
I could see the below information in the rule usage field in the History tab,
"The activity updates some properties on the work object , opens it, and starts the flow again. The caller must create a primary page by acquiring (locking) the work object and use the primary page to call this routine. Additionally the caller can supply the name of a flow to launch while reopening the work object. "
Hope this information might help you.
Regards,
Mahesh M
Mphasis
IN
Hi,
Thanks for your response.
I have already given the PrimaryPage and applied lock on it. Also flow name passed as parameter to this OOTB activity (reopenWorkObject). Still I am getting the same error.
Any inputs please.
Accepted Solution
Mphasis
IN
Hi,
The issue has been resolved.
OOTB reopen activity has been called instead of reopenWorkObject and passed the parameters Work cover class and case handle.
Thanks for the suggestions.