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.
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, processParameterHelperFields inherited from interface de.hybris.platform.processengine.spring.Action
ERROR_RETURN_CODE, RETRY_RETURN_CODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteAction(QuoteProcessModel process) Executes thisAction's business logic working on the givenBusinessProcessModel.protected CommerceQuoteServiceprotected QuoteServicevoidsetCommerceQuoteService(CommerceQuoteService commerceQuoteService) voidsetQuoteService(QuoteService quoteService) Methods inherited from class de.hybris.platform.processengine.action.AbstractSimpleDecisionAction
execute, getTransitionsMethods inherited from class de.hybris.platform.processengine.action.AbstractAction
createTransitions, getModelService, getProcessParameterHelper, getProcessParameterValue, refresh, save, setModelService, setOrderStatus, setProcessParameterHelperMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.processengine.spring.Action
getCurrentActionDefinitionContext
-
Constructor Details
-
CheckForQuoteAutoApprovalAction
public CheckForQuoteAutoApprovalAction()
-
-
Method Details
-
executeAction
public AbstractSimpleDecisionAction.Transition executeAction(QuoteProcessModel process) throws RetryLaterException, Exception Description copied from class:AbstractSimpleDecisionActionExecutes thisAction's business logic working on the givenBusinessProcessModel.- Specified by:
executeActionin classAbstractSimpleDecisionAction<QuoteProcessModel>- Parameters:
process- The process context to work on.- Returns:
- OK; NOK
- Throws:
RetryLaterExceptionException
-
getQuoteService
-
setQuoteService
-
getCommerceQuoteService
-
setCommerceQuoteService
-