@Service @Transactional(readOnly=true) public class WorkFlowMatrixService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ADDITIONAL_RULE |
static String |
ADDITIONALRULE |
static String |
DEFAULT |
static String |
DEPARTMENT |
static String |
DEPARTMENTS |
static String |
FROM_DATE |
static String |
FROM_QTY |
static String |
FROMAMOUNT |
static String |
FROMDATE |
static String |
MODIFYDATE |
static String |
OBJECT_TYPE |
static String |
OBJECTTYPE |
static String |
REJECTED |
static String |
TO_DATE |
static String |
TO_QTY |
static String |
TOAMOUNT |
static String |
TODATE |
| Constructor and Description |
|---|
WorkFlowMatrixService() |
| Modifier and Type | Method and Description |
|---|---|
List |
checkIfMatrixExists(Map workflowheaderparams)
This method checks if there are any workflow matrix details for the parameters from,todate,from and to quantity,objecttype,department
|
Date |
checkLegacyMatrix(Map workflowheaderparams)
This method is used to check if any matrix exists for the ones which are being created for the dates lesser than the current date
|
void |
deleteWorkFlowforObject(Map workflowsearchparams)
This method is used to delete the workflow matrix details
|
List |
getAdditionalRulesforObject(Long objectTypeid) |
List<Department> |
getdepartmentList() |
List<Designation> |
getdesignationList() |
Map<String,List> |
getDetailsforObject(Long workFlowObjectId)
This method returns a map consisting the state ,status from egw_status and buttons defined in the additionalrule table for a given objecttype
|
WorkflowTypes |
getobjectTypebyId(Long objectTypeId) |
WorkflowTypes |
getobjectTypebyName(String objectTypeName) |
List<WorkflowTypes> |
getobjectTypeList() |
List |
getWorkFlowforObjectforModify(Map workflowsearchparams)
This method is used to get the workflow matrix details
|
List<WorkFlowMatrixDetails> |
getWorkFlowMatrixObjectForView(Map workFlowObjectMap)
This method gets the workflowdetails grouped by objecttype,additionalrule,from and todate,from qty and toqty
|
WorkFlowMatrix |
getWorkFlowObjectbyId(Long matrixid) |
List |
prepareWorkFlowMatrixDetailsList(List<WorkFlowMatrix> workFlowdet,
List<WorkFlowMatrixDetails> detailsList,
Boolean isReject) |
void |
save(List<WorkFlowMatrix> actualWorkFlowMatrixDetails,
String[] departments)
This method saves the workflow matrix details for every department selected
|
Boolean |
updateWorkFlowforObject(Map workflowparams)
This method is used to update the existing workflow matrix details for which modification has been done,only the todate is set
|
public static final String OBJECTTYPE
public static final String ADDITIONALRULE
public static final String FROMDATE
public static final String TODATE
public static final String FROMAMOUNT
public static final String TOAMOUNT
public static final String DEPARTMENTS
public static final String MODIFYDATE
public static final String DEFAULT
public static final String REJECTED
public static final String TO_DATE
public static final String TO_QTY
public static final String FROM_QTY
public static final String FROM_DATE
public static final String ADDITIONAL_RULE
public static final String DEPARTMENT
public static final String OBJECT_TYPE
public List<Department> getdepartmentList()
public List<WorkflowTypes> getobjectTypeList()
public WorkflowTypes getobjectTypebyId(Long objectTypeId)
public WorkflowTypes getobjectTypebyName(String objectTypeName)
public List<Designation> getdesignationList()
public Map<String,List> getDetailsforObject(Long workFlowObjectId)
@Transactional public void save(List<WorkFlowMatrix> actualWorkFlowMatrixDetails, String[] departments)
public List<WorkFlowMatrixDetails> getWorkFlowMatrixObjectForView(Map workFlowObjectMap)
public List prepareWorkFlowMatrixDetailsList(List<WorkFlowMatrix> workFlowdet, List<WorkFlowMatrixDetails> detailsList, Boolean isReject)
public List checkIfMatrixExists(Map workflowheaderparams)
@Transactional public void deleteWorkFlowforObject(Map workflowsearchparams)
public List getWorkFlowforObjectforModify(Map workflowsearchparams)
@Transactional public Boolean updateWorkFlowforObject(Map workflowparams)
public Date checkLegacyMatrix(Map workflowheaderparams)
public WorkFlowMatrix getWorkFlowObjectbyId(Long matrixid)
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.