# Parameter Mapping from Parent Process to Subprocess

**URL:** <https://discuss.workflowgen.com/t/parameter-mapping-from-parent-process-to-subprocess/738>\
**Category:** Process Design\
**Created:** [March 23, 2017, 3:26pm UTC](https://discuss.workflowgen.com/t/parameter-mapping-from-parent-process-to-subprocess/738 "2017-03-23T15:26:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Smith](https://avatars.discourse-cdn.com/v4/letter/s/f04885/32.png) [@Smith](https://discuss.workflowgen.com/u/Smith)\
**Post date:** [March 23, 2017, 3:26pm UTC](https://discuss.workflowgen.com/t/parameter-mapping-from-parent-process-to-subprocess/738/1 "2017-03-23T15:26:38Z")

</div>

I am using direct process data mapping for passing data from a parent process to a subprocess. (Not using GETPROCESSDATA) I continually get a warning in my parent process that the direction of my parameter that is passed to the subprocess does not match the direction of that parameter in the subprocess. However, I have used this direct parameter mapping to send and receive process data with another subprocess without this issue.

- The parameter in my parent process is I\_T\_M. It has no direction defined in the parameters list for the parent process.
- The parameter in my subprocess is T\_M. T\_M is defined in the parameter list as INOUT. It is defined as INOUT in the first action of the subprocess and INOUT from the last action of the subprocess.
- In the action that calls the subprocess, T\_M is defined as an INOUT parameter and I\_T\_M is the parameter from which the T\_M is filled and into which T\_M is sent.

So, why am I getting the warning that the OUT direction of T\_M in the parent process action that calls the subprocess does not correspond to the INOUT direction of the data in the subprocess?

---

<div class="post-metadata">

**Author:** ![eddy.daouk](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/eddy.daouk/32/672_2.png) [@eddy.daouk](https://discuss.workflowgen.com/u/eddy.daouk)\
**Post date:** [May 24, 2017, 6:29pm UTC](https://discuss.workflowgen.com/t/parameter-mapping-from-parent-process-to-subprocess/738/2 "2017-05-24T18:29:37Z")

</div>

For future clients bumping into this issue, here is an article that explains the reason of this issue:

> [@Workflow Design: Subprocess versioning management](https://discuss.workflowgen.com/t/workflow-design-subprocess-versioning-management/395):
>
> Default By default, the WorkflowGen engine automatically uses the last active sub-process version or, if there is no active version, the last “in test” version. This is a flexible solution because when you modify or update a sub-process, you know that all parent processes will call the new version. Incompatible sub-process parameters If your new sub-process version is no longer compatible with the parent processes (for example, due to parameter changes), one solution is to create a new sub-proc…
