public abstract class GenericWorkFlowAction extends SearchFormAction
| Modifier and Type | Field and Description |
|---|---|
protected String |
approverComments |
protected CustomizedWorkFlowService |
customizedWorkFlowService |
protected String |
workFlowAction |
searchResultdropdownData, EDIT, INDEX, NEW, ordering, parameters, persistenceService, relations, request, TRANSACTIONSUCCESS, VIEW| Constructor and Description |
|---|
GenericWorkFlowAction() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getAdditionalRule()
Implementations must override this method to get additional rule for workflow.
|
protected BigDecimal |
getAmountRule()
Implementations must override this method based on their object's value that needs to be used in workflow
|
String |
getApproverComments() |
abstract StateAware |
getModel() |
String |
getNextAction()
Used to get next action If the nextAction value is END then approval Information won't be shown on the UI.
|
protected String |
getPendingActions()
This parameter is used to get matrix object Implementations must override this method to get pendingActions
|
List<String> |
getValidActions()
Used to get valid actions that needs to be performed Based on these value workflow buttons will be rendered
|
protected String |
getWorkFlowDepartment()
Implementations must override this method to achieve department wise workflow.
|
void |
prepare() |
SearchQuery |
prepareQuery(String sortField,
String sortOrder) |
void |
setApproverComments(String approverComments) |
void |
setCustomizedWorkFlowService(CustomizedWorkFlowService customizedWorkFlowService) |
void |
setWorkFlowAction(String workFlowAction)
Used to Set actionValue that will be used to call workflow script.
|
getDir, getPage, getPageSize, getSearchResult, getSort, getSortDir, search, setDir, setPage, setPageSize, setSort, setSortDir, setTableIdacceptableParameterName, addDropdownData, addRelatedEntity, addRelatedEntity, getDropdownData, getOrdering, getPersistenceService, getRelationships, getSession, session, setParameters, setPersistenceService, setRequest, setSession, setupDropdownDataExcluding, setValue, tokenNameaddActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, getActionErrors, getActionMessages, getFieldErrors, getFormatted, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validateprotected CustomizedWorkFlowService customizedWorkFlowService
protected String workFlowAction
protected String approverComments
public abstract StateAware getModel()
public SearchQuery prepareQuery(String sortField, String sortOrder)
prepareQuery in class SearchFormActionsortField - the field on which data is to be sorted.
This will be same as the value of "property" attribute in display:column
tag (when sortable=true and user clicks on the column to sort it).
In case no sorting is required, this parameter will be passed as null.sortOrder - the sort order (asc/desc)public void prepare()
prepare in interface com.opensymphony.xwork2.Preparableprepare in class BaseFormActionprotected BigDecimal getAmountRule()
protected String getAdditionalRule()
protected String getWorkFlowDepartment()
public List<String> getValidActions()
public String getNextAction()
public void setCustomizedWorkFlowService(CustomizedWorkFlowService customizedWorkFlowService)
public void setWorkFlowAction(String workFlowAction)
workFlowAction - protected String getPendingActions()
public String getApproverComments()
public void setApproverComments(String approverComments)
Copyright © 2015–2016 eGovernments Foundation. All rights reserved.