Class OrderProcessingWorkflow.CreditBureau
java.lang.Object
com.example.workflows.OrderProcessingWorkflow.CreditBureau
- Enclosing class:
OrderProcessingWorkflow
A mock credit bureau whose check runs as a step of the workflow.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreditCheck(ToolContext toolContext, String customerId, int orderTotalUsd) Checks whether the customer's credit limit covers the order total.
-
Constructor Details
-
CreditBureau
public CreditBureau()
-
-
Method Details
-
creditCheck
public com.google.common.collect.ImmutableMap<String,Object> creditCheck(ToolContext toolContext, String customerId, int orderTotalUsd) Checks whether the customer's credit limit covers the order total.
-