0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ビジネスルールエンジンを使用した高度なルール

Last updated at Posted at 2023-11-21

Get Ready to Create Advanced Business Rules

特別な環境にサインアップして、メールがきたのでクリックしたけどなぁ...
エラーじゃん。365はではアカンみたいです。

image.png

ブロックされたなんちゃらをクリックして、検証ボタンを押すと機能しましたね。

Hands-On Orgsで登録して、環境を選択してから検証ボタンをクリックすると合格できました。

Create a Decision Matrix

とりあえず、何もせずに検証ボタンをクリックします。

We can’t find the ‘Applicant Age Based Subsidy’ decision matrix.

お題はこれだから、どうも説明部分は関係ないかもしれませんね。

image.png

この警告は保存していないから?

image.png

  1. [行の追加]をクリックします。
  2. 「ApplicantAge」列の最初の行にマウスを置き、 をクリックします編集フィールドのimage.png

どこ?

この右隅かな?

image.png

入力時は上にどんどん追加されて順番が降順でしたが、有効化をクリックすると昇順に並びました。

image.png

最終的にこれを作ったら合格でした

image.png

We can’t find the ‘Applicant Age Based Subsidy’ decision matrix.

image.png

V1が必要みたい

I deleted the matrix and added it again. I noticed the API name was adding V1 (as in version 1)? Anyway after doing this 3x it finally approved the task.

We can’t find the expected input and output data in the Applicant Age Based Subsidy decision matrix

Set Up an Expression Set

とりあえず、何もせずに検証ボタンをクリックします。

In the Insurance Payment V1 expression set version, we can’t find the ‘Applicant Age Based Subsidy’ lookup table element.

保険支払い V1 式セット バージョンでは、「申請者の年齢に基づく補助金」ルックアップ テーブル要素が見つかりません。

このお題を作ってないからだな。

image.png

image.png

式セットは、ビジネス ルール エンジン (BRE) の魔法を調整する方法です。ユニット 2 で決定マトリックスを作成した後、Jessica の次の仕事は式セットを作成することです。Zercovana は式セットを使用して、申請者が受け取る補助金の割合を計算します。

ジェシカは現在、Expression Set Builder を使用してExpression Sets(式セット)を構築したいと考えています。そのために、彼女はまず式セットのバージョンを作成します。

  1. [保険料計算式セット レコード] ページで、[関連]タブまたは[バージョン]タブをクリックします。

ないよ、関連とか...

image.png

説明とは画面が違う。

image.png

ビューになっているからか?

image.png

選択するとまた、この画面に戻るなぁ。

ページレイアウトを確認すると関連リストは設定されているけど...

image.png

プロファイルを見てもExpression Set Versionsにはアクセス権があるなぁ。何故?

色々クリックできるところをクリックしてみると.... もしやココかな?

image.png

何か、違う画面が出てきた

image.png

3. In the Expression Set Builder, open Resource Manager by clicking image.png

どこで名前を変える?

image.png

Lookup Tabeleをクリックするとは...
image.png

お題

Formula: Additional_Subsidy__Subsidy + Applicant_Age_Based_Subsidy__Subsidy

image.png

Applicant_Age_Based_Subsidy__Subsidy isn't a defined resource or field alias. Select a field alias that's available in the expression set or create a new resource from the Resource Manager.

Applicant_Age_Based_Subsidy__Subsidy は、定義されたリソースまたはフィールドのエイリアスではありません。式セットで使用可能なフィールド エイリアスを選択するか、リソース マネージャーから新しいリソースを作成します。

Applicant_Age_Based_Subsidy__Subsidyがない?

ルックアップテーブル要素が無かったからかな。

image.png

In the Insurance Payment V1 expression set version, we can’t find the ‘Applicant Age Based Subsidy’ lookup table element.

Applicant_Age_Based_Subsidy__Subsidy がないらしい。

image.png

Does a lookup table exist for this element?

image.png


image.png

image.png

Add a Branch and Test Expression Set

とりあえず、何もせずに検証ボタンをクリックします。

In the Insurance Payment V2 expression set version, we can’t find the condition element for the third branch path with the expected condition logic parameters.

image.png

このエラーとは微妙に違いますね。

image.png

4. [ブランチ] の横にある 3 つの点をクリックし 分岐要素、[パスの追加]を選択します。新しい条件付きパスがブランチに追加されます。

image.png

しかし、これで作ると名前がブランクになる。仕方ないので2つ目を複製して追加します

Simulate the Expression Set

3. Click Simulate.

image.png

あっれ、同じエラーになった。

In the Insurance Payment V2 expression set version, we can’t find the calculation element for the third branch path.

image.png

ムカつくから、本当に計算要素を消した見たけど、同じエラー。何をチェックしている?
image.png

Path 3 を完全に消すと

In the Insurance Payment V2 expression set version, we can’t find the condition element for the third branch path with the expected condition logic parameters.

要素名が無いってエラーになるな。

We couldn’t save '' as the element name. Enter a name that starts with a letter and has a maximum of 70 characters.

image.png

デフォルトの要素名だけ追加

image.png

In the Insurance Payment V2 expression set version, we can’t find the condition element for the third branch path with the expected condition logic parameters.

計算要素を追加したけど変わらん

image.png

名前も見ているのかなぁ。戻すとエラーが変わる

image.png

In the Insurance Payment V2 expression set version, we can’t find the calculation element for the third branch path.

シークレットモードでも変わらない。

名前を変えたら、エラーが変わった
image.png

In the Insurance Payment V2 expression set version, we can’t find the calculation element with the expected parameters for the default path.

この組み合わせにしたら合格しました。いつもながら検証ロジックはおかしいとしか思えません。

image.png

Ensure that the value of InsurancePremium.ApplicantBirthdate variable is in the yyyy-mm-dd format salesforce

未分類

image.png

未解決

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?