Dynamic Flow and using object type

Liz Abraham
Tera Contributor

Hello,

 

I have an action that parses xml and the action is used in a step in the main flow. Once the xml is parsed , there is a step to create an order record producer. In this step is where the variables are mapped using the data from the parsed xml. All this works when we use a specific record producer. 

 

I now have 3 record producers and instead of using an if condition and mapping the variables 3 times in the main flow, i want to use dynamic flow. So i created a template subflow and 3 other subflows for the 3 different record producers. the input for the subflows have an object type to pass the data in the object. 

 

But when using it in the dynamic flow, the object type input variable does not show up with its individual elements. How can i use a dynamic flow to pass the parsed xml data to the subflow and use it to map the variables in the subflow?

1 REPLY 1

Liz Abraham
Tera Contributor

Here is a screenshot of what i have in my pdi. I have a subflow with an input as object type. 

LizAbraham_0-1729204424834.png

I created a flow that uses a dynamic flow ( flow logic) in the actions section and I used the above subflow as a template. As you can see, the Object shows up from the inputs of the subflow.

LizAbraham_1-1729204552907.png

 

If I use the flow directly as opposed to a dynamic flow, the objects is displayed with the individual elements within the object.

 

LizAbraham_3-1729204740714.png

 

In the above i can map the individual elements using the data pill from a parsed xml and then use it in the subflow actions , but when using the dynamic flow , I am not able to access the data from the individual elements within the object in the subflow . 

 

Is this by design? is there a way i can access the information in the data elements within the object in the subflow when using dynamic flow and passing them as object type for inputs?

 

Hope this helps !