Class FraudCheckOrderAction
- 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<OrderProcessModel>
-
- de.hybris.platform.yacceleratorordermanagement.actions.order.fraudcheck.FraudCheckOrderAction
-
- All Implemented Interfaces:
Action<OrderProcessModel>
public class FraudCheckOrderAction extends AbstractFraudCheckAction<OrderProcessModel>
Check for fraudulent order.
If a fraud is detected, the process transitions to FRAUD and the order will be cancelled.
If no fraud is detected, the process transitions to OK and the order will be sourced.
If the order is deemed potentially fraudulent, the process transitions to POTENTIAL and the order must be approved/declined by a customer support agent.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.yacceleratorordermanagement.actions.order.fraudcheck.AbstractFraudCheckAction
AbstractFraudCheckAction.Transition
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.yacceleratorordermanagement.actions.order.AbstractOrderAction
timeService
-
Fields inherited from class de.hybris.platform.processengine.action.AbstractAction
modelService, processParameterHelper
-
Fields inherited from interface de.hybris.platform.processengine.spring.Action
ERROR_RETURN_CODE, RETRY_RETURN_CODE
-
-
Constructor Summary
Constructors Constructor Description FraudCheckOrderAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractFraudCheckAction.Transition
executeAction(OrderProcessModel process)
Executes thisAction
's business logic working on the givenBusinessProcessModel
.java.lang.Double
getConfig(java.lang.String property)
protected FraudService
getFraudService()
protected java.lang.String
getProviderName()
protected java.lang.Double
getScoreLimit()
protected java.lang.Double
getScoreTolerance()
void
setFraudService(FraudService fraudService)
void
setProviderName(java.lang.String providerName)
void
setScoreLimit(java.lang.Double scoreLimit)
void
setScoreTolerance(java.lang.Double scoreTolerance)
-
Methods inherited from class de.hybris.platform.yacceleratorordermanagement.actions.order.fraudcheck.AbstractFraudCheckAction
createFraudReport, createHistoryLog, execute, getTransitions
-
Methods inherited from class de.hybris.platform.yacceleratorordermanagement.actions.order.AbstractOrderAction
createHistoryLog, getTimeService, setTimeService
-
Methods inherited from class de.hybris.platform.processengine.action.AbstractAction
createTransitions, getModelService, getProcessParameterHelper, getProcessParameterValue, refresh, save, setModelService, setOrderStatus, setProcessParameterHelper
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.processengine.spring.Action
getCurrentActionDefinitionContext
-
-
-
-
Method Detail
-
executeAction
public AbstractFraudCheckAction.Transition executeAction(OrderProcessModel process)
Description copied from class:AbstractFraudCheckAction
Executes thisAction
's business logic working on the givenBusinessProcessModel
.- Specified by:
executeAction
in classAbstractFraudCheckAction<OrderProcessModel>
- Parameters:
process
- - the process context to work on.- Returns:
- OK; FRAUD; POTENTIAL
-
getConfig
public java.lang.Double getConfig(java.lang.String property)
-
getFraudService
protected FraudService getFraudService()
-
setFraudService
public void setFraudService(FraudService fraudService)
-
getProviderName
protected java.lang.String getProviderName()
-
setProviderName
public void setProviderName(java.lang.String providerName)
-
getScoreLimit
protected java.lang.Double getScoreLimit()
-
setScoreLimit
public void setScoreLimit(java.lang.Double scoreLimit)
-
getScoreTolerance
protected java.lang.Double getScoreTolerance()
-
setScoreTolerance
public void setScoreTolerance(java.lang.Double scoreTolerance)
-
-