|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RuleService
A service which provides data access and functions for the KEW Rules engine.
RuleBaseValues
,
RuleResponsibility
Method Summary | |
---|---|
void |
delete(Long ruleBaseValuesId)
|
void |
deleteRuleResponsibilityById(Long ruleResponsibilityId)
|
List |
fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateName,
String documentType)
|
List |
fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateName,
String documentType,
boolean ignoreCache)
|
List |
fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateName,
String documentType,
Timestamp effectiveDate)
|
List |
fetchAllRules(boolean currentRules)
|
List |
findByRouteHeaderId(Long routeHeaderId)
|
RuleResponsibility |
findByRuleResponsibilityId(Long ruleResponsibilityId)
|
RuleBaseValues |
findDefaultRuleByRuleTemplateId(Long ruleTemplateId)
|
Long |
findResponsibilityIdForRule(String ruleName,
String ruleResponsibilityName,
String ruleResponsibilityType)
|
RuleBaseValues |
findRuleBaseValuesById(Long ruleBaseValuesId)
|
List |
findRuleBaseValuesByResponsibilityReviewer(String reviewerName,
String type)
|
List |
findRuleBaseValuesByResponsibilityReviewerTemplateDoc(String ruleTemplateName,
String documentType,
String reviewerName,
String type)
|
RuleResponsibility |
findRuleResponsibility(Long responsibilityId)
|
void |
flushRuleCache()
|
Long |
getDuplicateRuleId(RuleBaseValues rule)
Checks if the Rule with the given value is a duplicate of an existing rule in the system. |
RuleBaseValues |
getParentRule(Long ruleBaseValuesId)
|
RuleBaseValues |
getRuleByName(String name)
Returns a Rule based on unique name. |
String |
getRuleDocmentTypeName(List rules)
Returns the name of the document type definition that should be used to route the given List of rules. |
Long |
isLockedForRouting(Long currentRuleBaseValuesId)
|
void |
makeCurrent(Long routeHeaderId)
|
void |
makeCurrent(RuleBaseValues rule,
boolean isRetroactiveUpdatePermitted)
|
void |
makeCurrent(RuleDelegation ruleDelegation,
boolean isRetroactiveUpdatePermitted)
|
void |
notifyCacheOfDocumentTypeChange(DocumentType documentType)
Notifies the Rule system that the given DocumentType has been changed. |
void |
notifyCacheOfRuleChange(RuleBaseValues rule,
DocumentType documentType)
|
void |
removeRuleInvolvement(Id entityToBeRemoved,
List<Long> ruleIds,
Long documentId)
Removes entities who have responsibilities on the given set of rules. |
void |
replaceRuleInvolvement(Id entityToBeReplaced,
Id newEntity,
List<Long> ruleIds,
Long documentId)
Replaces entities who have responsibilities on the given set of rules with the specified new entity. |
Long |
route2(Long routeHeaderId,
MyRules2 myRules,
KimPrincipal principal,
String annotation,
boolean blanketApprove)
|
Long |
routeRuleWithDelegate(Long routeHeaderId,
RuleBaseValues parentRule,
RuleBaseValues delegateRule,
KimPrincipal principal,
String annotation,
boolean blanketApprove)
|
void |
save2(RuleBaseValues ruleBaseValues)
|
RuleBaseValues |
saveRule(RuleBaseValues rule,
boolean isRetroactiveUpdatePermitted)
|
RuleDelegation |
saveRuleDelegation(RuleDelegation ruleDelegation,
boolean isRetroactiveUpdatePermitted)
|
List<RuleDelegation> |
saveRuleDelegations(List<RuleDelegation> ruleDelegationsToSave,
boolean isRetroactiveUpdatePermitted)
|
List<RuleBaseValues> |
saveRules(List<RuleBaseValues> rulesToSave,
boolean isRetroactiveUpdatePermitted)
|
List |
search(String docTypeName,
Long ruleId,
Long ruleTemplateId,
String ruleDescription,
String groupId,
String principalId,
Boolean delegateRule,
Boolean activeInd,
Map extensionValues,
String workflowIdDirective)
|
List |
search(String docTypeName,
String ruleTemplateName,
String ruleDescription,
String groupId,
String principalId,
Boolean workgroupMember,
Boolean delegateRule,
Boolean activeInd,
Map extensionValues,
Collection<String> actionRequestCodes)
|
void |
validate2(RuleBaseValues ruleBaseValues,
RuleDelegation ruleDelegation,
List errors)
|
Methods inherited from interface org.kuali.rice.kew.xml.XmlLoader |
---|
loadXml |
Methods inherited from interface org.kuali.rice.kew.xml.export.XmlExporter |
---|
export |
Method Detail |
---|
RuleBaseValues getRuleByName(String name)
name
- the rule name
Long route2(Long routeHeaderId, MyRules2 myRules, KimPrincipal principal, String annotation, boolean blanketApprove) throws Exception
Exception
Long routeRuleWithDelegate(Long routeHeaderId, RuleBaseValues parentRule, RuleBaseValues delegateRule, KimPrincipal principal, String annotation, boolean blanketApprove) throws Exception
Exception
void save2(RuleBaseValues ruleBaseValues) throws Exception
Exception
void validate2(RuleBaseValues ruleBaseValues, RuleDelegation ruleDelegation, List errors) throws Exception
Exception
void delete(Long ruleBaseValuesId)
RuleBaseValues findRuleBaseValuesById(Long ruleBaseValuesId)
List search(String docTypeName, Long ruleId, Long ruleTemplateId, String ruleDescription, String groupId, String principalId, Boolean delegateRule, Boolean activeInd, Map extensionValues, String workflowIdDirective)
List search(String docTypeName, String ruleTemplateName, String ruleDescription, String groupId, String principalId, Boolean workgroupMember, Boolean delegateRule, Boolean activeInd, Map extensionValues, Collection<String> actionRequestCodes)
RuleResponsibility findRuleResponsibility(Long responsibilityId)
void deleteRuleResponsibilityById(Long ruleResponsibilityId)
RuleResponsibility findByRuleResponsibilityId(Long ruleResponsibilityId)
List fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateName, String documentType)
List fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateName, String documentType, boolean ignoreCache)
List fetchAllCurrentRulesForTemplateDocCombination(String ruleTemplateName, String documentType, Timestamp effectiveDate)
List findByRouteHeaderId(Long routeHeaderId)
void makeCurrent(Long routeHeaderId)
void makeCurrent(RuleBaseValues rule, boolean isRetroactiveUpdatePermitted)
void makeCurrent(RuleDelegation ruleDelegation, boolean isRetroactiveUpdatePermitted)
List findRuleBaseValuesByResponsibilityReviewer(String reviewerName, String type)
List findRuleBaseValuesByResponsibilityReviewerTemplateDoc(String ruleTemplateName, String documentType, String reviewerName, String type)
Long isLockedForRouting(Long currentRuleBaseValuesId)
List fetchAllRules(boolean currentRules)
RuleBaseValues findDefaultRuleByRuleTemplateId(Long ruleTemplateId)
void notifyCacheOfRuleChange(RuleBaseValues rule, DocumentType documentType)
RuleBaseValues getParentRule(Long ruleBaseValuesId)
void notifyCacheOfDocumentTypeChange(DocumentType documentType)
void flushRuleCache()
String getRuleDocmentTypeName(List rules)
void replaceRuleInvolvement(Id entityToBeReplaced, Id newEntity, List<Long> ruleIds, Long documentId) throws WorkflowException
This method should handle any versioning of the rules that is required.
WorkflowException
void removeRuleInvolvement(Id entityToBeRemoved, List<Long> ruleIds, Long documentId) throws WorkflowException
This method should handle any versioning of the rules that is required.
WorkflowException
Long getDuplicateRuleId(RuleBaseValues rule)
RuleBaseValues saveRule(RuleBaseValues rule, boolean isRetroactiveUpdatePermitted)
List<RuleBaseValues> saveRules(List<RuleBaseValues> rulesToSave, boolean isRetroactiveUpdatePermitted)
RuleDelegation saveRuleDelegation(RuleDelegation ruleDelegation, boolean isRetroactiveUpdatePermitted)
List<RuleDelegation> saveRuleDelegations(List<RuleDelegation> ruleDelegationsToSave, boolean isRetroactiveUpdatePermitted)
Long findResponsibilityIdForRule(String ruleName, String ruleResponsibilityName, String ruleResponsibilityType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |