prop(String): String | Null 指定された名前のプロパティの値を返すか、プロパティが定義されていない場合は null を返します。 パラメーター 名前 説明 propertyName 取得するプロパティ。 例 次の例では、user.timezone プロパティを取得します。 ソース %dw 2.0 import * from dw::Runtime output application/dw --- { "props" : prop("user.timezone") } 出力 { props: "America/Los_Angeles" as String {class: "java.lang.String"} }
prop(String): String | Null 指定された名前のプロパティの値を返すか、プロパティが定義されていない場合は null を返します。 パラメーター 名前 説明 propertyName 取得するプロパティ。 例 次の例では、user.timezone プロパティを取得します。 ソース %dw 2.0 import * from dw::Runtime output application/dw --- { "props" : prop("user.timezone") } 出力 { props: "America/Los_Angeles" as String {class: "java.lang.String"} }