BZ-1123789 - On Entry/Exit action script is not executed in multi-instance sub process

(cherry picked from commit 0da5f159460954d9dd97b50b32ee0fef89c613c7)