Package com.opensymphony.workflow.loader
Class StepDescriptor
java.lang.Object
com.opensymphony.workflow.loader.AbstractDescriptor
com.opensymphony.workflow.loader.StepDescriptor
- All Implemented Interfaces:
Validatable,XMLizable,Serializable
- Direct Known Subclasses:
MockStepDescriptor
- Author:
- Pat Lightbody
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetAction(int id) Get a List ofActionDescriptors for this stepGet a list of common actions.getName()Get a List ofPermissionDescriptors for this stepprotected voidvoidRemove all common and regular actions for this step.booleanresultsInJoin(int join) voidsetMetaAttributes(Map metaAttributes) voidvoidsetPostFunctions(List postFunctions) voidsetPreFunctions(List preFunctions) voidvalidate()Validate this element, and propagate validation to all contained sub-elements.voidwriteXML(PrintWriter out, int indent) Methods inherited from class com.opensymphony.workflow.loader.AbstractDescriptor
asXML, getEntityId, getId, getParent, hasId, setEntityId, setId, setParent
-
Field Details
-
actions
-
commonActions
this list maintained internally to allow for proper xml serialization. All common-action elements in the XML file are expanded into ActionDescriptors and are available via getActions() -
permissions
-
postFunctions
-
preFunctions
-
metaAttributes
-
name
-
hasActions
protected boolean hasActions
-
-
Method Details
-
getAction
-
getActions
Get a List ofActionDescriptors for this step -
getCommonActions
Get a list of common actions.- Returns:
- a List of Integer action id's.
-
setMetaAttributes
-
getMetaAttributes
-
setName
-
getName
-
getPermissions
Get a List ofPermissionDescriptors for this step -
setPostFunctions
-
getPostFunctions
-
setPreFunctions
-
getPreFunctions
-
removeActions
public void removeActions()Remove all common and regular actions for this step. -
resultsInJoin
public boolean resultsInJoin(int join) -
validate
Description copied from interface:ValidatableValidate this element, and propagate validation to all contained sub-elements. Should throw an InvalidWorkflowDescriptorException with details in message if the element is invalid. Validity checks should be checks that cannot be encapsulated in the DTD. Validation has to be called explicitly on writting, a writeXML() does not validate implicitly; it *IS* thus possible to write invalid descriptor files. This could be useful for e.g. a graphical workflow definition editor which would like to write incomplete definitions. Validation *IS* performed on loading a workflow definition.- Specified by:
validatein interfaceValidatable- Throws:
InvalidWorkflowDescriptorException- See Also:
-
writeXML
-
init
-