Question
Accenture
IN
Last activity: 14 Oct 2016 0:54 EDT
Flow on clicking of link in Harness
Hi
I am displaying a harness on launch of a portal. I have a link in that Harness. On click of the link, I have to create a new workobject(Case). I used OOTB Action items on link to do so. The case is getting created, but in a new Window.
My requirement is to create the case in the same window. The harness screen should be replaced with the flow assignments. That is, when i click on link, next screen should be the assignment screen that I defined in the case. Can someone help me on achieving this?
***Updated by Moderator: Marissa. Removed user added #helpme and Ask the Expert group tags. Apologies for confusion, shouldn't have been an end-user option; updated categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Incessant Technologies
GB
Have you used OpenWorkItem Event in the actions Tab.That should work.
Accenture
IN
Hi Srijith,
OpenWorkItem will take an id as a parameter.
In my requirement, work object will be created after i click on the link. So it will not have any id upfront to refer.
C3i
IN
Hi Pavan,
If you use creatework event on click of the link it would crete new case and display it in new window. If you want to display new work case in same window try creating case with addwork and then open the assignment using openworkitem.
Thanks,
Harsha A.
Accenture
IN
Hi Harsha,
I will be creating case on click of that link. untill that moment, I dont have an assignment id or case id created.
Areteans Technologies
AU
You can use an activity to call CreateWork or CreateWork action set this takes class name and flow name to create.
Incessant Technologies
GB
Call a activity prior to calling open work item.
1)In the first step ,call ootb activity . Example: pxCreateTopCase
2)Commit the changes
3)There will be a top level page created as part of ootb activity.In that page you will have pyid property.
4)set that value to a property or a parameter on your pyworkpage.
5) In the next step on actions tab,you can enter that property on your pyworkpage as a parameter for openworkitem.
Accenture
IN
Hi Srijith,
Thanks for your reply.
I created an activity in Data-Portal with the following steps.
1) Page-New(Work is the page name I gave in pages and classes) of my WorkClass type. I called pxCreateTopCase and copied that id into my workpage(Work)
2) Did OBJ-SAVE on my work page
Referred this activity in the link actions tab.
Referred the Open Work Item and passed Work.pyID as ID.
Ran the portal. I got an error "empty work handle". I felt its not taking that Work.pyID. Instead, I hardcoded the pyID value and tested. I got the same error again. Please let me know if my approach is correct.
Thanks
Incessant Technologies
GB
Hi Pavan,
When you are calling pxCreateTopCase you need to select commit option, and in the next step do a obj-refresh and lock step in the activity and let me know if that works.Please note for Obj-refresh and lock do select ReleaseOnCommit.
Thank You,
Srijith.