Process.PluginResult クラスの使用
Process.PluginResult クラスは、インターフェースを実装するクラスからフローに出力パラメータを返します。
次のいずれかの形式を使用して、Process.PluginResult クラスをインスタンス化できます。
- Process.PluginResult (Map<String,Object>)
- Process.PluginResult (String, Object)
複数の結果が返される場合、または返される結果の件数が不明な場合は、対応付けを使用します。
次に、Process.PluginResult クラスのインスタンス化の例を示します。
1string url = 'https://docs.google.com/document/edit?id=abc';
2 String status = 'Success';
3 Map<String,Object> result = new Map<String,Object>();
4 result.put('url', url);
5 result.put('status',status);
6 new Process.PluginResult(result);