|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.workflow.definer.WfTemplateVerification
Class that encapsulates the verification of a container template. It
is a transient class. To use it simply instantiate it and retrieve the
global verification report. Also access to individual attributes is
possible.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private Vector |
danglingActivities
|
private Vector |
danglingConnectors
|
private Vector |
dataFlowDefects
|
private Vector |
inaccessibleActivities
|
private Vector |
inaccessibleConnectors
|
private Vector |
invalidLinks
|
private boolean |
recurse
|
private static String |
RESOURCE
|
private WfContainerTemplate |
template
|
private Vector |
unmappedVariableDefects
|
private Vector |
unusedEventDefects
|
Constructor Summary | |
WfTemplateVerification(WfContainerTemplate template,
boolean recurse)
Constructor of the class. |
Method Summary | |
private void |
addDefects(WfTemplateVerification template_verification)
Adds defects found in a given template to the current ones. |
private Vector |
addVector(Vector to_add_to,
Vector to_add_from)
Adds one vector to the other. |
private Vector |
findDanglingActivities()
Returns all activities from which one can't access an END or GROUND node. |
private Vector |
findDanglingConnectors()
Returns all connectors from which one can't access an END or GROUND node. |
private Vector |
findDataFlowDefects()
Returns all data flow defects for a given process templaet. |
private Vector |
findInaccessibleActivities()
Returns all activities that can't be reached from the START node. |
private Vector |
findInaccessibleConnectors()
Returns all connectors that can't be reached from the START node. |
private Vector |
findInvalidLinks()
Returns all "invalid" links in the process template. |
private Vector |
findUnmappedVariableDefects()
Returns all INPUT/OUTPUT/INOUT variables that are not mapped. |
private Vector |
findUnusedEventDefects()
Returns all user events that are not used. |
protected Vector |
getAccessibleNodes(WfContainerTemplate template,
WfNodeTemplate start_template)
Returns all nodes (activities and connectors) that can be reached from the node passed as argument. |
Vector |
getDanglingActivities()
Gets the value of the attribute: danglingActivities; List of activities from which one can't reach an end node. |
Vector |
getDanglingConnectors()
Gets the value of the attribute: danglingConnectors; List of connectors from which one can't reach an end node. |
Vector |
getDataFlowDefects()
Gets the value of the attribute: dataFlowDefects; List of defects in the flow of data. |
private Enumeration |
getGroundConnectorTemplates()
Returns all ground connectors in the process template. |
Vector |
getInaccessibleActivities()
Gets the value of the attribute: inaccessibleActivities; List of activities that can't be reached from the start node. |
Vector |
getInaccessibleConnectors()
Gets the value of the attribute: inaccessibleConnectors; List of connectors that can't be reached from the start node. |
Vector |
getInvalidLinks()
Gets the value of the attribute: invalidLinks; List of links that don't have or have a bad event-action mapping. |
private Vector |
getNonDanglingNodes()
Returns all nodes (activities and connectors) from which one can reach an END or a GROUND node. |
String |
getReport()
Returns a defect report. |
WfContainerTemplate |
getTemplate()
Gets the value of the attribute: template; Container that is being verified. |
Vector |
getUnmappedVariableDefects()
Gets the value of the attribute: unmappedVariableDefects; List of variables whose type (INPUT or OUTPUT) is inconsistent with the variable mapping of the activity to which it belongs. |
Vector |
getUnusedEventDefects()
Gets the value of the attribute: unusedEventDefects; List of user defined events that are not used in any outgoing link. |
private Enumeration |
getValidPredecessors(WfNodeTemplate node)
Returns all valid predecessor nodes of a given node. |
private Enumeration |
getValidSuccessors(WfNodeTemplate node)
Returns all valid successor nodes of a given node. |
boolean |
isRecurse()
Gets the value of the attribute: recurse; Controls whether to recurse into contained blocks. |
private boolean |
isUsedByTemplate(Object event,
WfTemplateObject node)
Returns all data flow defects for a given process templaet. |
private String |
linkToString(NodeTemplateLink link)
Returns condensed readable identity of the link. |
private String |
nodeToString(WfNodeTemplate node)
Returns condensed readable identity of the node. |
void |
setDanglingActivities(Vector a_DanglingActivities)
Sets the value of the attribute: danglingActivities; List of activities from which one can't reach an end node. |
void |
setDanglingConnectors(Vector a_DanglingConnectors)
Sets the value of the attribute: danglingConnectors; List of connectors from which one can't reach an end node. |
void |
setDataFlowDefects(Vector a_DataFlowDefects)
Sets the value of the attribute: dataFlowDefects; List of defects in the flow of data. |
void |
setInaccessibleActivities(Vector a_InaccessibleActivities)
Sets the value of the attribute: inaccessibleActivities; List of activities that can't be reached from the start node. |
void |
setInaccessibleConnectors(Vector a_InaccessibleConnectors)
Sets the value of the attribute: inaccessibleConnectors; List of connectors that can't be reached from the start node. |
void |
setInvalidLinks(Vector a_InvalidLinks)
Sets the value of the attribute: invalidLinks; List of links that don't have or have a bad event-action mapping. |
protected void |
setRecurse(boolean a_Recurse)
Sets the value of the attribute: recurse; Controls whether to recurse into contained blocks. |
protected void |
setTemplate(WfContainerTemplate a_Template)
Sets the value of the attribute: template; Container that is being verified. |
void |
setUnmappedVariableDefects(Vector a_UnmappedVariableDefects)
Sets the value of the attribute: unmappedVariableDefects; List of variables whose type (INPUT or OUTPUT) is inconsistent with the variable mapping of the activity to which it belongs. |
void |
setUnusedEventDefects(Vector a_UnusedEventDefects)
Sets the value of the attribute: unusedEventDefects; List of user defined events that are not used in any outgoing link. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private WfContainerTemplate template
private boolean recurse
private Vector invalidLinks
private Vector inaccessibleActivities
private Vector danglingActivities
private Vector inaccessibleConnectors
private Vector danglingConnectors
private Vector dataFlowDefects
private Vector unusedEventDefects
private Vector unmappedVariableDefects
Constructor Detail |
public WfTemplateVerification(WfContainerTemplate template, boolean recurse) throws WTException
template
- recurse
-
WTException
Method Detail |
public WfContainerTemplate getTemplate()
protected void setTemplate(WfContainerTemplate a_Template) throws WTPropertyVetoException
a_Template
-
WTPropertyVetoException
public boolean isRecurse()
protected void setRecurse(boolean a_Recurse) throws WTPropertyVetoException
a_Recurse
-
WTPropertyVetoException
public Vector getInvalidLinks()
public void setInvalidLinks(Vector a_InvalidLinks) throws WTPropertyVetoException
a_InvalidLinks
-
WTPropertyVetoException
public Vector getInaccessibleActivities()
public void setInaccessibleActivities(Vector a_InaccessibleActivities) throws WTPropertyVetoException
a_InaccessibleActivities
-
WTPropertyVetoException
public Vector getDanglingActivities()
public void setDanglingActivities(Vector a_DanglingActivities) throws WTPropertyVetoException
a_DanglingActivities
-
WTPropertyVetoException
public Vector getInaccessibleConnectors()
public void setInaccessibleConnectors(Vector a_InaccessibleConnectors) throws WTPropertyVetoException
a_InaccessibleConnectors
-
WTPropertyVetoException
public Vector getDanglingConnectors()
public void setDanglingConnectors(Vector a_DanglingConnectors) throws WTPropertyVetoException
a_DanglingConnectors
-
WTPropertyVetoException
public Vector getDataFlowDefects()
public void setDataFlowDefects(Vector a_DataFlowDefects) throws WTPropertyVetoException
a_DataFlowDefects
-
WTPropertyVetoException
public Vector getUnusedEventDefects()
public void setUnusedEventDefects(Vector a_UnusedEventDefects) throws WTPropertyVetoException
a_UnusedEventDefects
-
WTPropertyVetoException
public Vector getUnmappedVariableDefects()
public void setUnmappedVariableDefects(Vector a_UnmappedVariableDefects) throws WTPropertyVetoException
a_UnmappedVariableDefects
-
WTPropertyVetoException
public String getReport()
private Vector findInvalidLinks() throws WTException
WTException
private Vector findInaccessibleActivities() throws WTException
WTException
private Vector findInaccessibleConnectors() throws WTException
WTException
private Enumeration getValidSuccessors(WfNodeTemplate node) throws WTException
node
- - node to be expanded
WTException
private Vector findDanglingActivities() throws WTException
WTException
private Vector findDanglingConnectors() throws WTException
WTException
private Vector getNonDanglingNodes() throws WTException
WTException
private Enumeration getGroundConnectorTemplates() throws WTException
WTException
private Enumeration getValidPredecessors(WfNodeTemplate node) throws WTException
node
- - node to be expanded
WTException
private Vector findDataFlowDefects() throws WTException
WTException
private Vector findUnusedEventDefects() throws WTException
WTException
private Vector findUnmappedVariableDefects() throws WTException
WTException
protected Vector getAccessibleNodes(WfContainerTemplate template, WfNodeTemplate start_template) throws WTException
template
- start_template
-
WTException
private void addDefects(WfTemplateVerification template_verification) throws WTException
template_verification
- - source of more defects
WTException
private Vector addVector(Vector to_add_to, Vector to_add_from)
to_add_to
- - Vector that receives new objects
private boolean isUsedByTemplate(Object event, WfTemplateObject node) throws WTException
WTException
private String nodeToString(WfNodeTemplate node)
node
- - WfNode to be printed outprivate String linkToString(NodeTemplateLink link)
link
- - WfLink to be printed out
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |