I have added "Get Next Work" Action event for button click event, And modify "GetNextWork" activity in work pool level. But some times in production environment its getting call Work-.GetNextWork activity.
Root cause is..
Ideally when user click the button, It should call "doUIAction" activity and from that activity its call "GetNextWork" activity top of the work pool class. But in this scenario, Its directly call "GetNextWork" activity. And my section is in "Data-Portal" level. Because of that, its getting call Work- level activity.
This issue reprodusable only in Prod environment and its will not happens for every time.
Ya m sure about it, I traced that scenario at one time and its directly called "GetNextWork" activity..
We save as "GetNextWork" activity to "Organization-abc-def-Work" (Our work pool class structure) level. As i mentioned, this issue is not occurred in lower environments, And some times in Prod environment. can it be because of function that u called? Because I saw there is 2 function in same name (didn't remember the exact name on that function) and one is call "doUIAction" activity and one is not.