Replicate Creatework through activity
Hi everyone,
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!