Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new tab

For information on migrating to InterSystems IRISOpens in a new tab, see Why Migrate to InterSystems IRIS?

<request>

<call> 要素内で要求を準備します。

Synopsis

<call name="Call" target="MyApp.MyOperation" async="1">   <request type="MyApp.Request">     ...   </request>   <response type="MyApp.Response">     ...   </response> </call>

詳細

属性または要素 説明
type 属性 必須項目。要求メッセージ・クラスの名前。 1 文字以上の文字列。
name 属性 オプション。<request> 要素の名前。 0 ~ 255 文字の文字列。
その他の要素 オプション。<request> には、<assign><empty><milestone>、および <trace> をゼロ個以上、自由に組み合わせて使用できます。  

説明

<request> 要素は、<call> に必須の子要素です。<call> コンテキスト内で、<request> 要素は、送信する要求のタイプ (クラス名) を指定します。<request> 要素には、1 つ以上の <assign> 要素を含めることもできます。これの各要素は、ビジネス・プロセスの実行コンテキストのオブジェクトで使用するプロパティに値を割り当てます。以下に例を示します。

<call name="FindSalary" target="MyApp.PayrollApp" async="1">
  <request type="MyApp.SalaryRequest">
    <assign property="callrequest.Name" value="request.Name" />
    <assign property="callrequest.SSN" value="request.SSN" />
  </request>
  <response type="MyApp.SalaryResponse">
    <assign property="context.Salary" value="callresponse.Salary" />
  </response>
</call>

通常、<request> 要素内の <assign> 要素は、callrequest オブジェクトのプロパティに値を割り当てるために使用します。このオブジェクトは、ビジネス・プロセスの実行コンテキストのメンバであり、呼び出しに使用される要求オブジェクトのプロパティを収容するコンテナとして機能します。ただし、context オブジェクト、request オブジェクト、response オブジェクトのプロパティも、<request> 内の <assign> 要素で設定や追加などを行えます。

ビジネス・プロセスの実行コンテキストの詳細は、<call> および <assign> の説明を参照してください。

関連項目

<process><reply>

FeedbackOpens in a new tab