如果源实例中不存在节点元素,如何在目标中放置默认值 [英] How to put defualt value in the target if the node element is not exist in the source instance

查看:93
本文介绍了如果源实例中不存在节点元素,如何在目标中放置默认值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


当源节点不存在时,我试图将默认数据放置在目标中.
我使用了逻辑函数,但是当节点不存在时,逻辑函数不存在.我使用了逻辑functoid连接到逻辑Not functoid来捕获错误条件,但是它也不起作用.

任何帮助将不胜感激.

Hi,
I am trying to put defualt data in the target when source node is not present.
I used logical functoid but logicla existanse functoid does not reutrn when the node is not present. I used Logical functoid connect to logical Not functoid to catch the false condition but it did not work either.

Any help will be appreciated.

推荐答案

一种做到这一点的方法是使用记录计数",逻辑相等"和值映射"功能. 以下是函子的参数.

记录数:
1.源节点

逻辑相等
1.记录数
2. 0

值映射
1.逻辑相等
2.(目标的默认值)

对于目标"节点,您需要映射值映射"函数和源节点的结果,因此目标节点将有两个映射.

希望这会有所帮助.
One way on how to do this is by using Record Count, Logical Equal, and Value Mapping functoids.
Below are the parameters for the functoids.

Record Count:
1. Source Node

Logical Equal
1. Record Count
2. 0

Value Mapping
1. Logical Equal
2. (default value for destination)

For the Destination node, you need to map the result from the Value Mapping functoid and the source node, so there will be two mappings for the destination node.

Hope this helps.


这篇关于如果源实例中不存在节点元素,如何在目标中放置默认值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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