In our application we have a Parent Case from which a Child Case is created to perform some additional processing. When the Child Case is getting created, we have to connect to a SOAP service and pass some information from our case to retrieve some data from external system. The retrieved data is then used to update the case. Also, later in the lifecycle of the case, the user has ability to re-trigger calling the same SOAP service to get fresh data in order to update the case.
The second scenario is pretty straightforward because the name of the work page is pyWorkPage. But when the Child Case is getting created from the Parent Case, the pyWorkPage refers to the Parent Case and the work page name for the Child Case is different.
Is there a way to dynamically refer the work page in the request data transform so that I can use the same code in both scenarios?
You can refer to the newAssignPage.pxRefObjectClass and if it is a parent case class then you can use pyWorkpage otherwise use pyWorkCover as your workpage.Please let me know if you are facing any issue while implementing this approach.