org.kuali.rice.kew.dto
Class WorkflowAttributeDefinitionDTO

java.lang.Object
  extended by org.kuali.rice.kew.dto.WorkflowAttributeDefinitionDTO
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RuleRoutingDefinition

public class WorkflowAttributeDefinitionDTO
extends Object
implements Serializable

Defines a remote WorkflowAttribute and how to construct it. This is to be used when the attributes are being hosted remotely inside the Workflow runtime. The attribute definition must be constructed with the fully qualified class name of the target attribute. It can be constructed one of two ways, through the constructor of the attribute or by setting java bean properties. If both are specified, then the attribute will be constructed using both the constructor and properties. If no constructor parameters are specified the target attribute must have a no-argument public constructor. The "properties" represented by the PropertyDefinitionVOs will be set as bean properties (setters) on the target attribute class. The standard KSB resource/object-definition loading mechanism implements this functionality. If the attribute is a GenericXMLRuleAttribute or GenerixXMLSearchableAttribute, then the properties will also be set explicitly in the paramMap by the workflow server.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Field Summary
private  String attributeName
           
private  List<String> constructorParameters
           
private  Map<String,PropertyDefinitionDTO> properties
           
(package private) static long serialVersionUID
           
 
Constructor Summary
WorkflowAttributeDefinitionDTO()
           
WorkflowAttributeDefinitionDTO(String attributeName)
           
 
Method Summary
 void addConstructorParameter(String parameter)
           
 void addProperty(PropertyDefinitionDTO property)
           
 void addProperty(String name, String value)
           
 String getAttributeName()
           
 String[] getConstructorParameters()
           
 PropertyDefinitionDTO[] getProperties()
           
 PropertyDefinitionDTO getProperty(String name)
           
 void removeConstructorParameter(String parameter)
           
 void setAttributeName(String attributeName)
           
 void setConstructorParameters(String[] parameters)
           
 void setProperties(PropertyDefinitionDTO[] properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

attributeName

private String attributeName

constructorParameters

private List<String> constructorParameters

properties

private Map<String,PropertyDefinitionDTO> properties
Constructor Detail

WorkflowAttributeDefinitionDTO

public WorkflowAttributeDefinitionDTO()

WorkflowAttributeDefinitionDTO

public WorkflowAttributeDefinitionDTO(String attributeName)
Method Detail

getAttributeName

public String getAttributeName()

setAttributeName

public void setAttributeName(String attributeName)

addConstructorParameter

public void addConstructorParameter(String parameter)

removeConstructorParameter

public void removeConstructorParameter(String parameter)

setConstructorParameters

public void setConstructorParameters(String[] parameters)

getConstructorParameters

public String[] getConstructorParameters()

addProperty

public void addProperty(PropertyDefinitionDTO property)

getProperty

public PropertyDefinitionDTO getProperty(String name)

getProperties

public PropertyDefinitionDTO[] getProperties()

setProperties

public void setProperties(PropertyDefinitionDTO[] properties)

addProperty

public void addProperty(String name,
                        String value)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.