Failed to find a 'RULE-OBJ-ACTIVITY' with the name 'OPENANDLOCKWORK' that applies to 'SC1-Div-Unit-MyApp1-Work-AssetReg'. There were 5 rules with this name in the rulebase, but none matched this request. The 5 rules named 'OPENANDLOCKWORK' defined in the rulebase are: 5 unrelated to applies-to class 'SC1-Div-Unit-MyApp1-Work-AssetReg', for example: 'Assign-'.
The documentation is correct. The key/handle of an assignment is different than the key/handle of a work object. You found the key to the assignment
The OpenWorkByURL lets you specify an activity or stream to call directly.
For example if you wanted to display a full end user portal in the gadget you would use:
The results of the call to the ShowDesktop activity become the contents of the gadget. (Also the proper way to display an end user portal with IAC, don't use PegaA="display", PegaA_harnessName="<Portal_Harness>")
Using harness like New and Perform would not be good with PegaA="display" because those are harness records tied to work object processing. So if you used PegaA="createNewWork " then those are the harness used as you progress through the flow.
What would be a good for "PegaA=display" .. How about the harness pyCMCases? (I hope this is a good example, my database is doing a backup and I may edit this post when its done) This harness contains the users work list. Same thing you would see on the "My Cases" tab of the pyCaseUser or pyCaseManager portals.