Class WorkflowParams

java.lang.Object
com.broadleafcommerce.orchestration.client.WorkflowParams

public class WorkflowParams extends Object
Utility for understanding parameter map key names for calls to SimpleWorkflow.start(Map). This can be used by callers to start, as well as SimpleActivity instances wishing to retrieve parameters in a predictable way.
  • Constructor Details

    • WorkflowParams

      public WorkflowParams()
  • Method Details

    • getKey

      public static String getKey(Class<?> clazz, String fieldName)
      Get a parameter key name based on a POJO class and field name. This is useful when identifying field values are passed in workflow context (e.g. primary key of an entity)
      Parameters:
      clazz - The POJO class
      fieldName - The name of the field on the POJO class
      Returns:
      A predictable key name based on the class (simple name) and field names