Flex Gateway新着情報
Governance新着情報
Monitoring API Manager指定された URL のスクリプトを評価します。
実験的: この関数は実験的機能であり、DataWeave の将来のバージョンで変更または削除される場合があります。
| 名前 | 説明 | 
|---|---|
  | 
ファイル実行の名前。  | 
  | 
読み取って実行にバインドする入力。  | 
  | 
実行に直接バインドする入力。  | 
  | 
ランタイム設定。  | 
次の例では、さまざまな入力での evalUrl の動作を示します。
%dw 2.0
import * from dw::Runtime
var jsonValue = {
  value: '{"name": "Mariano"}' as Binary {encoding: "UTF-8"},
  encoding: "UTF-8",
  properties: {},
  mimeType: "application/json"
}
var Utils = "fun sum(a,b) = a +b"
output application/json
---
{
  "execute_ok" : evalUrl("classpath://org/mule/weave/v2/engine/runtime_evalUrl/example.dwl", {"payload": jsonValue }),
  "execute_ok_withValue" : evalUrl("classpath://org/mule/weave/v2/engine/runtime_evalUrl/example.dwl", {}, {"payload": {name: "Mariano"}})
}