Issue with createWorkPage final activity in new version
Error occurs on creating a child case using the parent case data when employing the createWorkPage final and AddCoveredWork activities.
Trying to save an invalid page: .pxInsName: Keys of Instance Value must be specified Trying to save an invalid page: page is not valid
Steps to Reproduce
- Open the parent case.
- Call the createWorkPage activity to create a workpage for the child case by passing all the Cover case details and InsClass of the child case (which must be created).
- Call the AddCoveredWork activity to create the child case.
- Save the changes and commit.
The case was not created beacuse, the parent case work page was passed as the parameter to the Close activity in the createWorkPage activity's Step 7. This work page was removed in the WorkUnlock activity which was invoked in the Close activity.
Since the page was removed when the RecalculateAndSave was called in the AddCoveredWork, it failed to find the pxInsName and the error occurred.
Perform the following local-change:
Use the AddCoveredWork activity (instead of the CreateWorkPage activity) by passing a page containing all the property values that are required for child case creation as the Step page to the AddCoveredWork activity.