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.
是否有任何函数可以在 Mule 4 应用程序中将字符串 ex: "iamhuman" 转换为驼峰式 "iAmHuman"。
camelize您可以在 dataweave 中使用一个函数。但它不适用于您的示例,因为它不知道单词中断在哪里。如果您有另一个分隔符,例如下划线或连字符,那么这将起作用:
camelize
%dw 2.0 import * from dw::core::Strings output application/json --- { "camelize" : camelize("i_am_human") }