public class OutcomeDescriptor extends ElementDescriptor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION |
Constructor and Description |
---|
OutcomeDescriptor(TaskDescriptor pTask,
java.lang.String pOutcomeElementId,
java.lang.String pName)
Constructs an OutcomeDescriptor with the given task, outcome
element id, and name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Determines equality with another OutcomeDescriptor.
|
java.lang.String |
getFormURI()
Returns the URI of a form which can be used in the UI to solicit
outcome-specific data, prior to firing this outcome.
|
java.lang.String |
getOutcomeElementId()
Returns the process element id of the outcome element in the
workflow, as it appears in the workflow definition file.
|
java.lang.String |
getResourceBundleName()
If resourceBundleName is null will return the workflow descriptors
resourceBundleName.
|
TaskDescriptor |
getTask()
Returns the TaskDescriptor for the task to which this outcome
belongs.
|
int |
hashCode()
Computes the hash code for this OutcomeDescriptor.
|
void |
setFormURI(java.lang.String pFormURI)
Sets the URI of a form which can be used in the UI to solicit
outcome-specific data, prior to firing this outcome.
|
void |
setOutcomeElementId(java.lang.String pOutcomeElementId)
Sets the process element id of the outcome element in the
workflow.
|
java.lang.String |
toString()
Returns a String representation of this OutcomeDescriptor.
|
addDescription, addDisplayName, compareTo, getDescription, getDescription, getDescriptionResource, getDisplayName, getDisplayName, getDisplayNameResource, getName, getPresentationOrdinal, getResourceBundle, setDescription, setDescriptionResource, setDisplayName, setDisplayNameResource, setName, setPresentationOrdinal, setResourceBundleName
public OutcomeDescriptor(TaskDescriptor pTask, java.lang.String pOutcomeElementId, java.lang.String pName)
pTask
- the TaskDescriptor for the task to which this
outcome belongspOutcomeElementId
- process element id of the outcome
element, as it appears in the workflow definition filepName
- the logical name of this elementpublic TaskDescriptor getTask()
public java.lang.String getOutcomeElementId()
public void setOutcomeElementId(java.lang.String pOutcomeElementId)
public java.lang.String getFormURI()
As an example, in a workflow where an approver may choose to reject a particular transaction, one might want him or her to supply some additional information along with clicking the "Reject" button, such as a reason for the rejection. This information could be supplied via a separate JSP form.
public void setFormURI(java.lang.String pFormURI)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getResourceBundleName()
getResourceBundleName
in class ElementDescriptor