类名:OrderProcessingWorkflow.CreditBureau
java.lang.Object
com.example.workflows.OrderProcessingWorkflow.CreditBureau
- Enclosing class:
OrderProcessingWorkflow
这是一个模拟的信用报告机构(mock credit bureau);其生成的“信用报告”(check)被作为工作流程中的一个步骤(step of the workflow)来使用。
-
构造函数概述
Constructors -
方法概述
Modifier and TypeMethodDescriptioncreditCheck(ToolContext toolContext, String customerId, int orderTotalUsd) 检查客户的信用额度是否足以覆盖订单的总金额。
-
构造函数详细信息
-
CreditBureau
public CreditBureau()
-
-
方法详细信息(Method Details)
-
creditCheck
public com.google.common.collect.ImmutableMap<String,Object> creditCheck(ToolContext toolContext, String customerId, int orderTotalUsd) 检查客户的信用额度是否足以覆盖订单的总金额。
-