T - the generic typepublic interface WorkflowService<T extends StateAware>
| Modifier and Type | Method and Description |
|---|---|
List<WorkflowAction> |
getValidActions(T stateAware)
Returns a set of valid actions that can be executed on the stateAware.
|
WorkFlowMatrix |
getWfMatrix(String type,
String department,
BigDecimal amountRule,
String additionalRule,
String currentState,
String pendingAction)
Returns WorkFlowMatrix for following combination of arguments
|
WorkFlowMatrix |
getWfMatrix(String type,
String department,
BigDecimal amountRule,
String additionalRule,
String currentState,
String pendingAction,
Date date)
Returns WorkFlowMatrix for following combination of arguments
|
WorkFlowMatrix |
getWfMatrix(String type,
String department,
BigDecimal amountRule,
String additionalRule,
String currentState,
String pendingAction,
Date date,
String designation)
Returns WorkFlowMatrix for following combination of arguments
|
T |
transition(String actionName,
T stateAware,
String comment)
Moves the stateAware from the current state to the next state.
|
T |
transition(WorkflowAction workflowAction,
T stateAware,
String comment)
Moves the stateAware from the current state to the next state.
|
T transition(WorkflowAction workflowAction, T stateAware, String comment)
workflowAction - the actionstateAware - the state aware stateAwarecomment - the commentT transition(String actionName, T stateAware, String comment)
actionName - the action namestateAware - the state aware stateAwarecomment - the commentList<WorkflowAction> getValidActions(T stateAware)
stateAware - the state awareWorkFlowMatrix getWfMatrix(String type, String department, BigDecimal amountRule, String additionalRule, String currentState, String pendingAction)
type - the Object type of objectdepartment - Name of the departmentamountRule - the amountadditionalRule - the additional rule defined for the objecttypecurrentState - the current state of the objectpendingAction - the pendingActions for the objecttypeWorkFlowMatrix getWfMatrix(String type, String department, BigDecimal amountRule, String additionalRule, String currentState, String pendingAction, Date date)
type - the Object type of objectdepartment - Name of the departmentamountRule - the amountadditionalRule - the additional rule defined for the objecttypecurrentState - the current state of the objectpendingAction - the pendingActions for the objecttypeWorkFlowMatrix getWfMatrix(String type, String department, BigDecimal amountRule, String additionalRule, String currentState, String pendingAction, Date date, String designation)
type - the Object type of objectdepartment - Name of the departmentamountRule - the amountadditionalRule - the additional rule defined for the objecttypecurrentState - the current state of the objectpendingAction - the pendingActions for the objecttypedate - designation - of userCopyright © 2015–2017 eGovernments Foundation. All rights reserved.