On This Page:
Current version of IWS doesn’t fully support MC2 workflows due to MC2 workflows use completely different file/data exchange model between tasks/processes. However, you can adopt classic MC workflows for MC2 EJM by adding a set of task parameters.
Each process in MC2 EJM has inbound and outbound parameters.
Inbound Parameters
DataFrom
The parameter tell EJM from where get files. EJM can get files from previous processes or data events.
- To get files from all prior processes we should pass “ALL” value. DataFrom=ALL
- To get files from current process(originating) we should pass “PROCESS” value. DataFrom=PROCESS. In this case internal param_InFiles will be used as incoming files.
- To get files from a certain process we should specify TASK_[process name]
For example, in my_process1 sub-process in the workflow, to get the sub-process result files specify:
DataFrom=TASK_my_process1
It is possible to specify a set of sub-processes by specifying them separated by comma:
DataFrom=TASK_my_process1,TASK_my_process3,TASK_my_process78
- To get files from data event we should specify EVENT_[event(process) name]
E.g. we have my_process1 sub-process with attached Data artifact in workflow, to get the event files we should specify
DataFrom=EVENT_my_process1
It is possible to get event and sub-process files.
E.g. DataFrom=TASK_my_process1,EVENT_my_process3
Moreover DataFrom value can be expression.
E.g. we would like to get current process files if they present, otherwise data event files
DataFrom=EXPR#iif(StringLength(:param_InFiles:) = 0,'EVENT_generic_load_unpacker','PROCESS').
By default the parameter has value “ALL”.
FileFilter.
The parameter gives ability to filter inbound files by mask. If we have Data artifact in workflow, we have to set this parameter with the same value as the data artifact FileMask field has.
E.g. we have the following data task with the artifact
FileFilter=mc2_mock6
Outgoing Parameters
ResultFrom
The parameter is used to control which files should be populated to result files parameter
Possible values:
ALL – EJM will collect outgoing files from all prior executed tasks in current process.
EVENT_[data event name] – EJM will get file from Data Event with given name
TASK_[process name] – EJM will get outgoing files from task/sub-process with given name.
It is possible to use a few values separated by comma.
E.g. we can pass files from 2 or more tasks like ResultFrom=TASK_task1,TASK_task2
The ResultFrom value can be expression as well.
By default the parameter has value “ALL”.