Package org.openbravo.costing
Interface CostAdjusmentProcessCheck
-
public interface CostAdjusmentProcessCheck
Define needed checks for Cost Adjustment process. Note that classes implementing this interface should be annotated as@RequestScoped
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
doCheck(CostAdjustment costAdjustment, org.codehaus.jettison.json.JSONObject message)
This method executes the needed checks to the cost adjustment when the process starts.void
doPostProcessCheck(CostAdjustment costAdjustment, org.codehaus.jettison.json.JSONObject message)
This method executes the needed checks to the cost adjustment when the process endss.
-
-
-
Method Detail
-
doCheck
void doCheck(CostAdjustment costAdjustment, org.codehaus.jettison.json.JSONObject message) throws OBException
This method executes the needed checks to the cost adjustment when the process starts.- Parameters:
costAdjustment
- the cost adjustment being processed.message
- a JSONObject with the message that is returned to the user.- Throws:
OBException
- when any check fails ant the process is required to stop.
-
doPostProcessCheck
void doPostProcessCheck(CostAdjustment costAdjustment, org.codehaus.jettison.json.JSONObject message) throws OBException
This method executes the needed checks to the cost adjustment when the process endss.- Parameters:
costAdjustment
- the cost adjustment being processed.message
- a JSONObject with the message that is returned to the user.- Throws:
OBException
- when any check fails ant the process is required to stop.
-
-