Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Corrected links that should have been relative instead of absolute.

...

  1. When streaming is passed to child flow in File Mode:
    import com.adeptia.connect2.runtime.RuntimeUtils;
    RuntimeUtils.setChildContextForCustomFlow(inputStream, context, service.getLogger(), "<<ACTION_NAME>>");

    where,

    ACTION_NAME is the name of the call or spawn.

    for example,

    RuntimeUtils.setChildContextForCustomFlow(inputStream, context, service.getLogger(), "Action_Name");

    Info
    Ensure that you have provided the <<ACTION_NAME>> in double quotes (" "). Ensure that the source activity is File Source when streaming is passed in File Mode .
    In File mode, if Context Source is used in child flow, then eventContextEnable must be trueand eventContextEnable is true.

    Ensure that you have provided the <<ACTION_NAME>> in double quotes (" ").
  2. When streaming is passed to child flow in Memory Mode:

    import com.adeptia.connect2.runtime.RuntimeUtils;
    RuntimeUtils.setChildContextForCustomFlow(inputStream, context, service.getLogger(), "<<ACTION_NAME>>", true, "<<contextVarName>>");

    where,

    ACTION_NAME is the name of the call or spawn.       
    contextVarName is the name of the context variable that will be used as Key to put stream data on context.

    Info
    titleNote

    In Memory mode, if it is mandatory to use Context Source is used in child flow, then and eventContextEnable must be false.

    Ensure that you have provided the values <<ACTION_NAME>> and contextVarName in double quotes (" ").

  3. When no Stream is passed to child flow:

    import com.adeptia.connect2.runtime.RuntimeUtils;
    RuntimeUtils.setChildContextForCustomFlow(context, service.getLogger(), "<<ACTION_NAME>>");

    where,

    ACTION_NAME is the name of the call or spawn.

    Info
    Ensure that you have provided the values <<ACTION_NAME>> in double quotes (" ").


JavaScript to check if child flow is Aborted or not:

...