code: protected void parseAsynchronousContinuationForActivity(Element activityElement, ActivityImpl activity) {
      // can't use #getMultiInstanceScope here to determine whether the task is multi-instance,
      // since the property hasn't been set yet (cf parseActivity)
      ActivityImpl parentFlowScopeActivity = activity.getParentFlowScopeActivity();
      if (parentFlowScopeActivity != null && parentFlowScopeActivity.getActivityBehavior() instanceof MultiInstanceActivityBehavior
          && !activity.isCompensationHandler()) {
  
        parseAsynchronousContinuation(activityElement, parentFlowScopeActivity);
  
        Element miLoopCharacteristics = activityElement.element("multiInstanceLoopCharacteristics");
        parseAsynchronousContinuation(miLoopCharacteristics, activity);
  
      } else {
        parseAsynchronousContinuation(activityElement, activity);
      }
    }
docs: Parse async continuation of an activity and create async jobs for the activity.
  <br/> <br/>
  When the activity is marked as multi instance, then async jobs create instead for the multi instance body.
  When the wrapped activity has async characteristics in 'multiInstanceLoopCharacteristics' element,
  then async jobs create additionally for the wrapped activity.