# ルールファイルの手動による変更およびサバイバーの作成に使用する条件のコーディング

このシナリオは、Talend Data Management Platform、Talend Big Data Platform、Talend Real-Time Big Data Platform、Talend Data Services Platform、Talend Data Fabricにのみ適用されます。

ジョブのtRuleSurvivorshipコンポーネントでは、コンポーネントの[Basic settings] (基本設定)ビューの[Rule table] (ルールテーブル)で定義した条件に基づいて、サバイバーシップルールパッケージが生成されます。

より詳細な条件に基づくルールでレコードを存続させるようにするには、Drools言語を使用してルールの条件を手動でコーディングする必要があります。

このシナリオのジョブでは、コンポーネントによって生成されたルールのコードを変更し、特定の条件を使用してサバイバーを作成する方法のサンプルを示しています。その後、このサバイバーを使ってデータのマスターコピー作成したりできます。

![](https://help.qlik.com/talend/ja-JP/components/8.0/Resources/images/use_case-trulesurvivorship_modify_rule.png)

このジョブで使用されるコンポーネントは、以下のとおりです:

* tFixedFlowInput: このジョブによって処理される入力データを提供します。

* tRuleSurvivorship: ルールでコーディングした条件に基づいて、サバイバーの検証フローが作成されます。このコンポーネントにより、それぞれの重複グループの中から最も良く表現されているデータが1つ選択されます。

* tLogRow: ジョブ実行の結果を表示します。

### このセクション内

* [コンポーネントのドロップおよび相互リンク](https://help.qlik.com/talend/ja-JP/components/8.0/deduplication/modifying-rule-file-manually-to-code-the-conditions-dropping-components-and-linking-them-together)
* [入力レコードのセットアップ](https://help.qlik.com/talend/ja-JP/components/8.0/deduplication/modifying-rule-file-manually-to-code-the-conditions-setting-up-input-records)
* [サバイバー検証フローの定義](https://help.qlik.com/talend/ja-JP/components/8.0/deduplication/modifying-rule-file-manually-to-code-the-conditions-defining-survivor-validation-flow)
* [ジョブを実行](https://help.qlik.com/talend/ja-JP/components/8.0/deduplication/modifying-rule-file-manually-to-code-the-conditions-executing-job)