39
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

はじめに

CAIプロセスのスローステップを利用すると、CAIプロセスを任意のタイミングで、任意のメッセージを指定してエラーを発生させることができます。
この記事ではスローステップの利用方法を確認します。

なお、この記事は次の記事の内容を理解していることを前提としています。

スローステップの使用手順

次の手順ではスローステップを利用する手順を確認しています。

  1. CAIプロセスを次の設定で作成します。

    • 名前を recipe-pca-stepThrow とする
    • 匿名アクセス を許可する
    • クラウドサーバー にデプロイする
  2. スローステップ を追加して フォルトタブ にて次のように指定します。
    image.png

以下、curlコマンドを例とした動作確認結果です。スローステップで指定したメッセージが結果として得られる動作を確認できます。

curlコマンドと実行結果
// curl コマンド
curl https://<IICS・CAIサーバー>/active-bpel/public/rt/<Org ID>/recipe-pca-stepThrow

// 実行結果
{
  "error": {
    "code": 500,
    "detail": {
      "reason": "test reason",
      "code": "test code",
      "details": "test detail"
    },
    "message": "test reason"
  }
}

参照

39
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
39
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?