Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 mulesoft 的新手,试图通过 mulesoft 中的 json 将数据库提取到平面文件中。请帮助编写将 json 有效负载转换为平面文件的 dataweave 表达式。
我的平面文件架构是:
有了上面我得到的例外是:
它期待一个映射而不是一个数组(dataweave 中的映射返回一个数组)如果你想输出一个数组,你需要修改你的 FFD 模式,以便它知道它是一个数组,使用:
- { idRef: 'PersonalInfo', count: '>1' } - { idRef: 'CourseDetails', count: '>1' }
这将修复您的转换。