I have following scenario: Consider a classgroup A-B-C mapped to pc_work table. I am having subclass which belong to classgroup A-B-C. Now I am having 2 flows defined in A-B-C-D class which are FlowA and FlowB.
FlowA is having an Worklist/Workbasket Assignment and 3 Flow Actions originating from this assignment.
FlowB is also having an Worklist/Workbasket Assignment and 3 Flow Actions originating from this assignment.
Work Items are created whenever I am triggering FlowA or FlowB. However the only difference that I am observing between the flow processing of FlowA and FlowB is as follows:
I wrote an Activity which is doing following:
Obj-Open-By-Handle on the WorkObject, Obj-Open-By-Handle on Assignment and show page of the AssignmentPage.
I am noticing that while opening the assignment which looks like ASSIGN-WORKBASKET A-B-C pyID!FlowA, I am getting pyAssignActions (Embed-Pega-Actions) which is listed all the 3 flow actions originating from assignment of FlowA
However when I am opening the assignment ASSIGN-WORKBASKET A-B-C pyID!FlowB, I am not getting pyAssignActions populated for the same.
I have also noticed that if I call this utility function in my activity for flowB, pyAssignActions are populating correctly.
We can perform this change, but my question is what is the criteria for population of pyAssignActions i.e. the Flow Actions originating from an assignment for a particular flow as in my scenario, it seems to be working for FlowA but not for FlowB.
Why do pyAssignActions gets populated without even calling any activity like pyCMGetFlowActionsList or pega_procom_pegaprocomutilities.populateFlowActions(tools.findPage("AssignmentPage"),tools.findPage("WorkPage"), tools);
It is possible that in your first case the OOTB rule is getting executed and in second case it is not. Can you pls do a private checkout that OOTB rule and investigate further. Ideally your approach should work and there no special trick needed.