java.lang.Object
de.hybris.platform.processengine.action.AbstractAction<T>
de.hybris.platform.yacceleratorordermanagement.actions.order.AbstractOrderAction<T>
de.hybris.platform.yacceleratorordermanagement.actions.order.fraudcheck.AbstractFraudCheckAction<T>
All Implemented Interfaces:
Action<T>
Direct Known Subclasses:
FraudCheckOrderAction

public abstract class AbstractFraudCheckAction<T extends OrderProcessModel> extends AbstractOrderAction<T>
Abstract action for fraud check action which define 3 possible transitions (OK,POTENTIAL,FRAUD) and some supplementary methods
  • Constructor Details

    • AbstractFraudCheckAction

      public AbstractFraudCheckAction()
  • Method Details

    • createFraudReport

      protected FraudReportModel createFraudReport(String providerName, FraudServiceResponse response, OrderModel order, FraudStatus status)
      Create a fraud report
      Parameters:
      providerName - - the provider name
      response - - the fraud service response
      order - - the order model
      status - - the fraud status
      Returns:
      a fraud report model
    • createHistoryLog

      protected OrderHistoryEntryModel createHistoryLog(String providerName, OrderModel order, FraudStatus status, String code)
    • getTransitions

      public Set<String> getTransitions()
      Description copied from interface: Action
      Accesses all possible return codes of this Action. This method is used by the process engine to validate a process definition. Furthermore it can be used by (graphical) editors to access all return codes which have to mapped in transitions.
      Returns:
      all possible return codes of this Action
    • execute

      public final String execute(T process)
      Description copied from interface: Action
      Executes this Action's business logic working on the given BusinessProcessModel.
      Parameters:
      process - The process context to work on.
      Returns:
      the return code as stated in the process definition. This code is used by the process engine to determine the next actions.
    • executeAction

      public abstract AbstractFraudCheckAction.Transition executeAction(T process)
      Executes this Action's business logic working on the given BusinessProcessModel.
      Parameters:
      process - - the process context to work on.
      Returns:
      OK; FRAUD; POTENTIAL
      Throws:
      RetryLaterException
      Exception