Class CheckForQuoteAutoApprovalAction
- java.lang.Object
-
- de.hybris.platform.processengine.action.AbstractAction<T>
-
- de.hybris.platform.processengine.action.AbstractSimpleDecisionAction<QuoteProcessModel>
-
- de.hybris.platform.yacceleratorcore.actions.quote.CheckForQuoteAutoApprovalAction
-
- All Implemented Interfaces:
Action<QuoteProcessModel>
public class CheckForQuoteAutoApprovalAction extends AbstractSimpleDecisionAction<QuoteProcessModel>
This action class will be used by business process to determine, whether the quote requires manual approval from seller approver.
If manual approval is not required, a new quote snapshot with status SELLERAPPROVER_APPROVED is created.
Otherwise, a new quote snapshot with status SELLERAPPROVER_PENDING is created.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.processengine.action.AbstractSimpleDecisionAction
AbstractSimpleDecisionAction.Transition
-
-
Field Summary
-
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 CheckForQuoteAutoApprovalAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractSimpleDecisionAction.Transition
executeAction(QuoteProcessModel process)
Executes thisAction
's business logic working on the givenBusinessProcessModel
.protected CommerceQuoteService
getCommerceQuoteService()
protected QuoteService
getQuoteService()
void
setCommerceQuoteService(CommerceQuoteService commerceQuoteService)
void
setQuoteService(QuoteService quoteService)
-
Methods inherited from class de.hybris.platform.processengine.action.AbstractSimpleDecisionAction
execute, getTransitions
-
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 AbstractSimpleDecisionAction.Transition executeAction(QuoteProcessModel process) throws RetryLaterException, java.lang.Exception
Description copied from class:AbstractSimpleDecisionAction
Executes thisAction
's business logic working on the givenBusinessProcessModel
.- Specified by:
executeAction
in classAbstractSimpleDecisionAction<QuoteProcessModel>
- Parameters:
process
- The process context to work on.- Returns:
- OK; NOK
- Throws:
RetryLaterException
java.lang.Exception
-
getQuoteService
protected QuoteService getQuoteService()
-
setQuoteService
public void setQuoteService(QuoteService quoteService)
-
getCommerceQuoteService
protected CommerceQuoteService getCommerceQuoteService()
-
setCommerceQuoteService
public void setCommerceQuoteService(CommerceQuoteService commerceQuoteService)
-
-