Question
IP Australia
AU
Last activity: 16 Oct 2018 12:03 EDT
How to get current flow name of a parent case(pyworkcover) from child case
Hi ,
How to get current flow name of a parent case(pyworkcover) from child case. I need to pass assignment key in open assignment action from child case.
open assignment is not accepting "pyWorkCover.pxFlow(pyWorkCover.pxStageHistory(<LAST>) .pxProcesses(<LAST>).pxProcessName).pxAssignmentKey" as key.
Please suggest any solution.
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
IP Australia
AU
Have a data page of requestor scope, which is loaded with an activity . added a step in activity to set "pyWorkCover(pyWorkCover.pxFlow(pyWorkCover.pxStageHistory(<LAST>) .pxProcesses(<LAST>).pxProcessName).pxAssignmentKey)" to a property and referred that property in open assignment key.\
so my property will have latest assignment key on every time user login.
Pegasystems Inc.
IN
hi Mohammed,
Can you tell where exactly you are calling from in the child case? and be more clear on the requirement
As per my understating if the requirement we can call pyworkpage.pxstagehistory(<LAST>).pxprocess(<LAST>).pxProcessName).pxAssignmentKey in the parameters of the open assignment connector by assigning to a variable.
Kindly share your thoughts
Thanks
Prasanth
-
Tyler Stubbs
IP Australia
AU
Hi Prasanth,
Yes, I am trying to open parent case in perform mode using "Open Assignment" action from Child Case. if we use pyworkpage, it will get the child assignment which is not I am looking for.
I am tried to set the value "pyWorkCover.pxstagehistory(<LAST>).pxprocess(<LAST>).pxProcessName).pxAssignmentKey" to a property in a data transform in pre flow action processing. it is working from online mode.
But, I have same requirement from Offline Mobile also. As, data transforms are not supported in Offline Mobile, this will not work. I need to form this in open assignment key only.
Thanks,
Mohammad Gouse
Tetco
SA
Hi Mohammed,
Why don't you try directly as "pyWorkCover.pxStageHistory(<LAST>) .pxProcesses(<LAST>).pxProcessName" i believe it should work, please let me know your thoughts.
IP Australia
AU
Hi Shoaib,
'pyWorkCover.pxStageHistory(<LAST>) .pxProcesses(<LAST>).pxProcessName' will work. But if I try to put it in pyWorkCover.pxFlow, as mentioned below, it is throwing error.
pyWorkCover.pxFlow(pyWorkCover.pxStageHistory(<LAST>) .pxProcesses(<LAST>).pxProcessName).pxAssignmentKey
Thanks,
Mohammad Gouse
Tetco
SA
Hi Mohammad,
You are directly trying assign value like pyWorkCover.pxFlow(pyWorkCover.pxStageHistory(<LAST>) .pxProcesses(<LAST>).pxProcessName).pxAssignmentKey
Have you tried like below
a= pyWorkCover.pxStageHistory(<LAST>) .pxProcesses(<LAST>).pxProcessName;
pyWorkCover.pxFlow(a).pxAssignmentKey
IP Australia
AU
Hi Shoaib,
yes, I tried to use set-value first to a property and used that in "pyWorkCover.pxFlow(Propertyreference).pxAssignmentKey" . But, it is still saying invalid page or property reference.
Thanks,
Mohammad Gouse.
Pegasystems Inc.
IN
Hi Mohammad,
Can you let me know why you are trying use pyWorkCover.pxFlow ?
Thanks
Prasanth
Tetco
SA
Prasanth,
I believe Mohammed is trying to retrieve the pxAssignmentKey of the last flow from the Parent Case
IP Australia
AU
Prasanth,
I am trying to get parent assignment key from child case.
Pegasystems Inc.
IN
I believe what ever you written logic to get the assignment key has to set to one property in Data Transform rule and mention that source property in openAssignment function
IP Australia
AU
it wont work for my requirement, data transforms are not supported in mobile offline 7.2.1.
Pegasystems Inc.
IN
you can add the values in the connector as input properties and set the value
Kindly let me if it works for you
Regards
Prasanth
IP Australia
AU
I am using this section in many local actions and sections, if I follow that approach I need to make changes to all the local actions and connectors before loading the section.
I am still unable to find why this is not accepting from open assignment key only
Pegasystems Inc.
IN
If data transform does support you can use the declare expression and fulfill the requirement
Kindly let me know if that works?
IP Australia
AU
Hi,
Can you please let me know how can a declare expression help us here?
Thanks,
Mohammad Gouse
Tetco
SA
Hi Mohammed,
Instead of directly taking value from pyWorkCover(pyWorkCover.pxFlow(pyWorkCover.pxStageHistory(<LAST>) .pxProcesses(<LAST>).pxProcessName).pxAssignmentKey) can you once try opening the parent case using Obj-Open-By-Handle and try to take value from the opened object page.
Just for a try
Accepted Solution
IP Australia
AU
Have a data page of requestor scope, which is loaded with an activity . added a step in activity to set "pyWorkCover(pyWorkCover.pxFlow(pyWorkCover.pxStageHistory(<LAST>) .pxProcesses(<LAST>).pxProcessName).pxAssignmentKey)" to a property and referred that property in open assignment key.\
so my property will have latest assignment key on every time user login.