message: normalizing mapper input mappings import for v0.9.0 and v5.8.0
diff: import { isUndefined, isArray, isPlainObject } from 'lodash';
  -import { EXPR_PREFIX, CONTRIB_REFS } from '@flogo-web/core';
  +import { EXPR_PREFIX, CONTRIB_REFS, ResourceActionModel } from '@flogo-web/core';
  import {
  FLOGO_TASK_TYPE,
  TASK_TYPE,
  EXPRESSION_TYPE,
  parseResourceIdFromResourceUri,
  } from '@flogo-web/server/core';
  -import { isOutputMapperField } from '@flogo-web/plugins/flow-core';
  +import { isMapperActivity, isOutputMapperField } from '@flogo-web/plugins/flow-core';
  import { normalizeIteratorValue } from './normalize-iterator-value';
  +const isLegacyActivity = (
  + a: ResourceActionModel.Activity
  +): a is ResourceActionModel.LegacyActivity =>
  + !!(<ResourceActionModel.LegacyActivity>a).mappings;
  +
  export class TaskConverter {
  private resourceTask;
  private activitySchema;
  @@ -53,7 +58,7 @@ export class TaskConverter {
  if (this.isSubflowTask()) {
  type = FLOGO_TASK_TYPE.TASK_SUB_PROC;
  settings.flowPath = this.extractSubflowPath();
  - } else {
  + } else if (!isMapperActivity(this.activitySchema)) {
  activitySettings = this.resourceTask.activity.settings;
  }
  if (this.isIteratorTask()) {
  @@ -76,6 +81,7 @@ export class TaskConverter {
  }
  prepareInputMappings() {
  + if (isLegacyActivity(this.resourceTask.activity)) {
  const inputMappings = this.convertAttributes();
  return this.safeGetMappings().reduce((inputs, mapping) => {
  let value = mapping.value;
  @@ -87,6 +93,15 @@ export class TaskConverter {
  inputs[mapping.mapTo] = value;
  return inputs;
  }, inputMappings);
  + } else {
  + let mappings = {};
  + if (isMapperActivity(this.activitySchema)) {
  + mappings = this.resourceTask.activity.settings.mappings || {};
  + } else {
  + mappings = this.resourceTask.activity.input || {};
  + }
  + return mappings;
  + }
  }
  safeGetMappings() {
  