Class OrderProcessingWorkflow.CreditBureau

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

public static final class OrderProcessingWorkflow.CreditBureau extends Object
A mock credit bureau whose check runs as a step of the workflow.
  • 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.