I have a requirement to replicate the behavior of the "Create Work" action, using an activity. I have an activity and on the Click of a button, the below actions should take place through the activity:
Create a new case.
Display the case details in the current tab.
I traced the Create Work action and it calls @baseclass.doUIAction activity with the action parameter set to ccreateNewWork and other parameters. Replicated that, setting the same parameters required, it creates a new case but does not open the created case.
While tracing, i found that from doUiaction after the case creation, "Show-Harness" is called and here the step page is somehow getting changed to a different class(instead of the work page) even though my activity calls doUiaction with the work- page as the steppage.(the only difference i see comparing with the action create New Work directly from a button is in the class of the steppage (pyWorkPage) of Show-Harness)
Can someone help here on how it could be fixed?
I cannot use the Create Work action as per my requirement. I need to create a new case and display it using an activity.
Thanks in advance!
***Edited by Moderator Marije to add Capability tags***
@Anoop Krishna Thanks for the response! I tried pxCreateTopCase as well and the same problem appeared here as well. After the case creation , ReloadSection activity is called and there the class(of PyDisplayHarness) is getting changes to portal- class
Posted: 3 months ago
Posted: 23 May 2023 4:04 EDT
Anoop Krishna (Anoop Krishna)
Bits in Glass
Senior Software Engineer
Bits in Glass
Hi @Anoop Krishna , I tried the approaches you suggested , the page context till the end of show-harness remains as the work- class but still the harness does not show up . In the logs, the below message is shown :
Failed to show Harness action running on "Steppage name" page