类名:OrderProcessingWorkflow.CreditBureau

java.lang.Object
com.example.workflows.OrderProcessingWorkflow.CreditBureau
Enclosing class:
OrderProcessingWorkflow

public static final class OrderProcessingWorkflow.CreditBureau extends Object
这是一个模拟的信用报告机构(mock credit bureau);其生成的“信用报告”(check)被作为工作流程中的一个步骤(step of the workflow)来使用。
  • 构造函数详细信息

    • CreditBureau

      public CreditBureau()
  • 方法详细信息(Method Details)

    • creditCheck

      public com.google.common.collect.ImmutableMap<String,Object> creditCheck(ToolContext toolContext, String customerId, int orderTotalUsd)
      检查客户的信用额度是否足以覆盖订单的总金额。