ビルダービューでPass状態を使用するには:
ビルダービューで、左側のペインからPass状態をサーキットにドラッグ&ドロップするか、サーキット内の必要なPass状態をクリックします。
[設定]タブで、共通の状態項目の属性を更新します。
ビルダービューページの右側にある[入力/出力]タブを選択し、パスを設定します。詳細については、入力/出力処理のセクションを参照してください。
渡された入力に新しいパラメーターを挿入するには、キー(形式:'$.fieldname')を[ResultPath]に、値を[Result]に入力します。
コードビューでは、状態内にパラメーターのresultPathとresultを直接追加できます。
状態へのJSONの入力は次のとおりです。
{ 'org_name': 'Global Solutions', 'employee_details': { 'name': 'Henry', 'date_of_birth': '15-03-1990', 'role': 'Business Analyst' } }
{ 'Get Employee Details': { 'start': true, 'type': 'pass', 'next': 'End', 'input_path': '$.employee_details', 'output_path': '$.employee_details', 'result_path': '$.location', 'result': 'New York' } }
{ 'org_name': 'Global Solutions', 'employee_details': { 'name': 'Henry', 'date of birth': '15-03-1990', 'role': 'Business Analyst', 'location': 'New York' } }