无法从迭代形状中获取值 [英] Can't get values from Iteration Shape

查看:106
本文介绍了无法从迭代形状中获取值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我收到了一些EDI EDIFACT文件,我需要提取一些数据。

I receive some EDI EDIFACT files and I need to extract some data.

请考虑这部分内容文件:

Please consider this part of the file :

MEA + AAE + T + KGM:4200'¥b $ b MEA + AAE + VGM + KGM:26130'

MEA+AAE+T+KGM:4200'
MEA+AAE+VGM+KGM:26130'

对于MEA细分,我的地图如下:

My map is as follows, for the MEA segment :

前11个迭代形状的索引= 1,底部的索引= 2

The top 11 Iteration shapes have index = 1 and the bottom ones have index = 2

在业务流程中,我将值发送到事件查看器。

In the orchestration I send the values to the Event Viewer.

A< varName>变量正确地显示来自第一个MEA段的值。

The A<varName> variables correctly show the values from the first MEA segment.

对于第二个MEA段,只有BMEA01变量具有"AAE"。价值,所有其他都是空的。

For the second MEA segment only the BMEA01 variable has "AAE" value, all the others are empty.

起初我有一个循环形状,但同样的情况发生,只有第一个MEA会返回值。

At first I had a Looping shape but the same happened, only the first MEA would return values.

有什么想法吗?

谢谢。

Nelson

推荐答案

索引Functoid在需要具有指定深度级别层次结构的记录时很有用,其中Iteration functoid在需要显示的地方很有用源模式的索引号。

Index Functoid is useful when one want record with specified depth level hierarchy, where Iteration functoid will useful where the need to show index number of source schema.

索引:

使用索引functoid,用于检索源模式中指定索引处的记录或字段的值。第一个输入必须是源模式中记录或字段的链接。其余输入指定
源架构层次结构的每个级别的索引值。此functoid必须至少有一个输入参数。输入参数的最大数量受源模式中层次结构级别数的限制。

Use the Index functoid to retrieve the value of a record or a field at specified indices in the source schema. The first input has to be a link from a record or field in the source schema. The rest of the inputs specify the index value at each level of the source schema hierarchy. This functoid must have at least one input parameter. The maximum number of input parameters is limited by the number of hierarchy levels in the source schema.

迭代:

使用迭代functoid返回输出消息实例中循环记录的序列号。这个functoid需要一个输入参数。

Use the Iteration functoid to return the sequence number for a looping record in the output message instance. This functoid requires one input parameter.

取决于你的要求你可以选择你想要使用的functoid如果有多个源记录,两者都能正常工作。

Depends on your requirement you can choose the functoid you want to use, both will works well in case there is a multiple source records.

希望这有助于!!!

如果您满意,请标记为已回答

Please Mark As Answered if you satisfy with Reply.


这篇关于无法从迭代形状中获取值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆