Package com.imc.iss.groovy.salesitem
Class PreSubmitCheckEngine
java.lang.Object
com.imc.iss.groovy.salesitem.PreSubmitCheckEngine
Presubmit check engine to execute the Presubmit Check via Groovy Script.
Currently the following will be supported. 1.
CONFIGURABLE_TO_CLASSIFIED_PRODUCTS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReplacableClassifiedProductToResults(SalesItemNode salesItemNode, Set<Product> products) booleanexecute()getClassifiedProductsFromConfiguration(List<SalesItemNode> salesItemNodes) Return the PresubmitCheck result to return to UI, especially for the case to display the UI Popup if more than one classified products are found for some of the sales itembooleanvoidreplaceConfigurableProduct(SalesItemNode salesItemNode, Product product)
-
Constructor Details
-
PreSubmitCheckEngine
-
-
Method Details
-
addReplacableClassifiedProductToResults
public void addReplacableClassifiedProductToResults(SalesItemNode salesItemNode, Set<Product> products) throws IMCException - Throws:
IMCException
-
execute
- Throws:
IMCException
-
getClassifiedProductsFromConfiguration
public Map<SalesItemNode,Set<Product>> getClassifiedProductsFromConfiguration(List<SalesItemNode> salesItemNodes) throws IMCException - Throws:
IMCException
-
getPresubmitCheckResults
Return the PresubmitCheck result to return to UI, especially for the case to display the UI Popup if more than one classified products are found for some of the sales item -
isReplacementDone
public boolean isReplacementDone() -
replaceConfigurableProduct
public void replaceConfigurableProduct(SalesItemNode salesItemNode, Product product) throws IMCException - Throws:
IMCException
-