跳转至

Author and run a rule(编写并运行规则)

The following steps will guide you through the process of authoring and running a rule in a Workshop application.

  1. Find the Workshop Rule application: From the workflow configuration screen, select the folder and choose the Workshop application.

    Screenshot of path shown in the workshop configuration page

    Screenshot of Workshop application

  2. Author a rule: Within the Workshop application created in the previous step, click the Create New button to begin creating a rule.

  3. (a) Fill out the form at the top of the rule with a name, description, and other information.
  4. (b) Author logic that you want the rule to execute. For example, this could be a simple filter.
  5. (c) Click Submit changes to create a proposal for this new rule.

    Authoring a Foundry rule

  6. Approve the proposal: Within the Proposals tab of the Workshop application, select the newly created proposal on the left side.

  7. Select Approve to activate it as a rule.

    Approving a Foundry rule proposal

  8. Build the rule writeback and rules output datasets: Navigate to the output dataset that was created while configuring the workflow.

  9. Choose Actions, then Explore data lineage to view the input datasets.

    Navigate to Data Lineage for output dataset

  10. Select both the rules writeback dataset (d) and the output dataset (e).

  11. Right-click with both datasets selected and choose Build.

    Build the rules writeback and Foundry rules output datasets

  12. Once the build has completed, the output dataset will contain the results of your new rule. In the future, these two datasets can be placed on a schedule to keep the outputs up to date.


中文翻译


编写并运行规则

以下步骤将指导您在 Workshop 应用中完成规则的编写与运行流程。

  1. 找到 Workshop 规则应用: 在工作流配置界面中,选择对应文件夹并点击 Workshop 应用。

    工作流配置页面路径截图

    Workshop 应用截图

  2. 编写规则: 在上一步骤创建的 Workshop 应用中,点击 创建新规则 按钮开始创建规则。

  3. (a) 在规则顶部的表单中填写名称、描述及其他信息。
  4. (b) 编写您希望规则执行的逻辑。例如,可以是一个简单的筛选条件。
  5. (c) 点击 提交更改 为该新规则创建提案。

    编写 Foundry 规则

  6. 批准提案: 在 Workshop 应用的 提案 选项卡中,选择左侧新创建的提案。

  7. 点击 批准 将其激活为正式规则。

    批准 Foundry 规则提案

  8. 构建规则回写数据集与规则输出数据集: 导航至配置工作流时创建的输出数据集。

  9. 选择 操作,然后点击 探索数据沿袭 查看输入数据集。

    导航至输出数据集的数据沿袭

  10. 同时选中规则回写数据集 (d) 和输出数据集 (e)。

  11. 右键点击已选中的两个数据集,选择 构建

    构建规则回写数据集与 Foundry 规则输出数据集

  12. 构建完成后,输出数据集将包含新规则的执行结果。后续可将这两个数据集添加到调度计划中,以保持输出数据的实时更新。