|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kns.workflow.attribute.QualifierResolverBase
org.kuali.rice.kns.workflow.attribute.DataDictionaryQualifierResolver
public class DataDictionaryQualifierResolver
QualifierResolver which uses Data Dictionary defined workflow attributes to gather a collection
of qualifiers to use to determine the responsibility for a document at a given workflow route node.
WorkflowAttributes can be defined in the data dictionary like so (this has been abbreviated):
| Field Summary |
|---|
| Fields inherited from class org.kuali.rice.kns.workflow.attribute.QualifierResolverBase |
|---|
KIM_ATTRIBUTE_DOCUMENT_NUMBER, KIM_ATTRIBUTE_DOCUMENT_TYPE_NAME, KIM_ATTRIBUTE_ROUTE_LEVEL_NAME |
| Constructor Summary | |
|---|---|
DataDictionaryQualifierResolver()
|
|
| Method Summary | |
|---|---|
protected void |
addCommonQualifiersToAttributeSet(AttributeSet qualifier,
Document document,
DocumentEntry documentEntry,
String routeLevel)
Adds common qualifiers to a given AttributeSet |
protected void |
decorateWithCommonQualifiers(List<AttributeSet> qualifiers,
Document document,
DocumentEntry documentEntry,
String routeLevel)
Add common qualifiers to every AttributeSet in the given List of AttributeSet |
protected DocumentEntry |
getDocumentEntry(RouteContext context)
Retrieves the data dictionary entry for the document being operated on by the given route context |
protected RoutingTypeDefinition |
getWorkflowAttributeDefintion(DocumentEntry documentEntry,
String routeLevelName)
Retrieves the proper List of WorkflowAttributes for the given route level from the data dictionary document entry |
List<AttributeSet> |
resolve(RouteContext context)
Given the RouteContext, determines the document type of the document being routed and the current route nodes; generates a List of qualifier AttributeSets based on the the contents of the document. |
| Methods inherited from class org.kuali.rice.kns.workflow.attribute.QualifierResolverBase |
|---|
addCommonQualifiersToAttributeSet, decorateWithCommonQualifiers, getDocument, getDocumentId, getDocumentService |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataDictionaryQualifierResolver()
| Method Detail |
|---|
public List<AttributeSet> resolve(RouteContext context)
QualifierResolver.resolve(org.kuali.rice.kew.engine.RouteContext)protected DocumentEntry getDocumentEntry(RouteContext context)
context - the current route context
protected RoutingTypeDefinition getWorkflowAttributeDefintion(DocumentEntry documentEntry,
String routeLevelName)
documentEntry - the data dictionary document entry for the currently routed documentrouteLevelName - the name of the route level
protected void decorateWithCommonQualifiers(List<AttributeSet> qualifiers,
Document document,
DocumentEntry documentEntry,
String routeLevel)
qualifiers - a List of AttributeSets to add common qualifiers todocument - the document currently being routeddocumentEntry - the data dictionary entry of the type of document currently being routedrouteLevel - the document's current route level
protected void addCommonQualifiersToAttributeSet(AttributeSet qualifier,
Document document,
DocumentEntry documentEntry,
String routeLevel)
qualifier - an AttributeSet to add common qualifiers todocument - the document currently being routeddocumentEntry - the data dictionary entry of the type of document currently being routedrouteLevel - the document's current route level
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||