文書レコードのビジネス・ルールの構成
次の検証は、「文書レコード」ランディング・ページで作成できます。
- 「パスポート」文書タイプの場合、「発行日」は「開始日」以降にする必要があります。
- 「運転免許」文書タイプの場合、「日付: 至」がNULLの場合はユーザーに警告します。
例
パスポート文書タイプの発行日を「日付: 自」以降にする必要があることを検証します
拡張式
{
if (($objectContext.DocumentType.includes('GLB_PASSPORT')) && $fields.documentRecords.IssuedDate.$value() <= $fields.documentRecords.DateFrom.$value()) {
return true;
}
return false;
}
運転免許文書タイプの「終了日」がNULLの場合にユーザーに警告する検証
拡張式
{
if (($objectContext.DocumentType.includes('GLB_DRIVERS_LICENSE')) && $fields.documentRecords.DateTo.$value() == null) {
return true;
}
return false;
}