Action codes are part of the activity and will be destroyed after the activity finishes. Therefore you should translate the action codes to a routing (process) variable (with appropriate scope) in the beforeendactivity-event of the respective Activity and use this one for your discissions.