public static void repairMultiInstanceAsyncJob ( ExecutionEntity execution ) { ActivityImpl activity = execution . getActivity ( ) ; if ( ! isAsync ( activity ) && isActivityWrappedInMultiInstanceBody ( activity ) ) { execution . setActivity ( ( ActivityImpl ) activity . getFlowScope ( ) ) ; } }
When executing an async job for an activity wrapped in an miBody set the execution to the miBody except the wrapped activity is marked as async .