I am trieing to get the active salesstage from an opportunity in a plugin.
I am doing this by using the RetrieveProcessInstancesResponse Class like you can see in the screenshot.
After retrieving the activeProcessInstance i am using the attribute "processstageid". But it seems that this is not updated when a business process flow of an opportunity is switched. It is updated when the salesstage in the new business process flow is changed but till then that attribute will show the uuid of the processstage item of the old business process flow. Is that the desired behaviour? How does the GUI manage to show the correct active salesstage when switching BPF? Where is that information stored and can i get the correct active processstage without the "delay", meaning the timespan till someone will switch the stage after switching the process.