we have two AG's -AG1 and Ag2. The user should allowed to switch between the 2 applications seamlessly. The session attributes/operator profile is different for every application and this is handled in the applicationprofilesetup activity (written in both the application specific rulesets).
Issue: Multiple switch fails:
i.e. Switch from Application 1 to 2 -works .All the session attributes updated.
Again switch from 2 to 1- works
Again switch from 1-2 works
Now switch back from 2 to 1 -**fails- the operator profile is not update with the Application 1 attributes.
The activity RedirectAndRun is used to launch another thread. Under many conditions it blows away the thread you are leaving, making it impossible to successfully switch back to it at some later point.
It will also often clean the thread of the place it is jumping to.
You should trace this activity as you go from AG 1 ==> AG2, and so forth. At some point, is a thread being deleted?
There are options to control the deletion; some were added in hotfixes. You don't say what release you are on. If you find that this is the reason for the switchback failure, you will want to see if a hotfix for it exists.
One other point. If tracer forces "success", you may want to take a private checkout and add oLog.infoForced statements to the Java step that is cleaning the threads and run without the Tracer. Usually, if you check off the "abbreviate events" option, Tracer will stop "fixing" these type of issues.