|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.oberon.ooql.sdk.OBBase com.oberon.ooql.sdk.AdminComponent com.oberon.ooql.sdk.Transition
public class Transition
Represents a Workflow
Step transition.
Field Summary | |
---|---|
static int |
REQUIRED_OPTION
The Required flag index inside the Option Set |
Fields inherited from class com.oberon.ooql.sdk.AdminComponent |
---|
bsOptions |
Constructor Summary | |
---|---|
Transition()
|
|
Transition(java.lang.String name)
|
Method Summary | |
---|---|
java.lang.String |
compareUpdate(Transition refTransition,
boolean checkImage,
Framework framework)
Return the OOQL command to update this Step -Transition object and let it become
equals to another reference object. |
boolean |
equals(Transition transition)
Check if this Transition is equal to another |
void |
fromXML(org.jdom.Element rootElement)
Load the Transition object from XML element tree |
java.lang.String |
getActionTrigger()
Get the Transition action trigger |
java.lang.String |
getChangeCommand()
Return the OOQL command to update this Workflow -Step -Transition with the settled properties |
java.lang.String |
getCheckTrigger()
Get the Transition check trigger |
java.lang.String |
getCreateCommand(boolean force)
[Inherited but not used] |
java.lang.String |
getCreateCommand(java.lang.String operator)
Return the OOQL command to add this Transition with the settled properties to a Workflow -Step |
java.lang.String |
getProperty(java.lang.String propertyName,
java.util.Vector<java.lang.Object> filterArgs,
java.lang.String token,
Framework framework)
Get a property for this Workflow -Step -Transition object by its OOQL identifier |
java.lang.String |
getSaveCommand(boolean force)
[Inherited but not used] |
Step |
getStep()
Get the from Workflow Step |
java.lang.String |
getStepFork()
Get the final destination Step |
java.util.Vector<?> |
getTargetNames(java.lang.String composedName,
java.util.Vector<java.lang.Object> filterArgs,
Framework framework)
Return a Vector of administrative object names extracted by using an OOQL selector |
boolean |
isRequired()
Check if the transition is required for and-join minimal completion |
void |
setActionTrigger(java.lang.String programName)
Set the Transition action trigger |
void |
setCheckTrigger(java.lang.String programName)
Set the Transition check trigger |
void |
setRequired(boolean required)
Set the transition as required for and-join minimal completion |
void |
setStep(Step step)
Link the Transition with the from Workflow Step |
void |
setStepFork(java.lang.String stepName)
Set the final destination Step assigned when the Transition is satisfied |
java.lang.String |
toString()
Return the Transition object properties as a single String |
java.lang.String |
toString(java.lang.String indent)
Return the Transition object properties as a single String |
org.jdom.Element |
toXML(boolean getImage,
boolean fullDump,
Framework framework)
Return the Transition properties as XML element tree |
org.jdom.Element |
toXML(Framework framework)
Return the Transition properties as XML element tree |
Methods inherited from class com.oberon.ooql.sdk.AdminComponent |
---|
checkChangeName, getAdminType, getCommonProperty, getCommonTargetNames, getCrtDate, getDescription, getEditBasicCommand, getImage, getImageData, getImageFile, getModDate, getModUser, getName, getOldName, hasImage, setCrtDate, setDescription, setImage, setImageData, setImageFile, setModDate, setModUser, setName, toCommonXML, toXML |
Methods inherited from class com.oberon.ooql.sdk.OBBase |
---|
addChange, addUniqueChange, ChangesFromXML, ChangesToXML, getChanges, getChangesAsString, getId, isLinked, removeChange, resetChanges, setId, setLinked |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int REQUIRED_OPTION
Constructor Detail |
---|
public Transition()
public Transition(java.lang.String name) throws OberonException
name
- the name of the administrative object
OberonException
- if the name contains invalid charactersMethod Detail |
---|
public void setStep(Step step)
Workflow
Step
public Step getStep()
Workflow
Step
public void setStepFork(java.lang.String stepName)
Step
assigned when the Transition is satisfied
public java.lang.String getStepFork()
Step
public void setRequired(boolean required)
public boolean isRequired()
setRequired(boolean)
public void setCheckTrigger(java.lang.String programName)
programName
- the Program
namepublic java.lang.String getCheckTrigger()
Program
namepublic void setActionTrigger(java.lang.String programName)
programName
- the Program
namepublic java.lang.String getActionTrigger()
Program
namepublic boolean equals(Transition transition)
transition
- the Transition to compare with this Transitionpublic java.lang.String getProperty(java.lang.String propertyName, java.util.Vector<java.lang.Object> filterArgs, java.lang.String token, Framework framework)
Workflow
-Step
-Transition object by its OOQL identifier
getProperty
in class OBBase
propertyName
- OOQL property identifier/name (example: stepfork , validate ...)filterArgs
- extra arguments used to compute propertiestoken
- separator token for complex propertiesframework
- the current framework
public java.util.Vector<?> getTargetNames(java.lang.String composedName, java.util.Vector<java.lang.Object> filterArgs, Framework framework)
getTargetNames
in class OBBase
composedName
- OOQL property identifier/namefilterArgs
- extra arguments used to compute propertiesframework
- the current framework
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.lang.String indent)
indent
- set the row indent charspublic org.jdom.Element toXML(Framework framework)
framework
- the current frameworkpublic org.jdom.Element toXML(boolean getImage, boolean fullDump, Framework framework)
fullDump
- true to include detailed informationframework
- the current frameworkpublic void fromXML(org.jdom.Element rootElement)
fromXML
in class AdminComponent
public java.lang.String getCreateCommand(boolean force)
public java.lang.String getSaveCommand(boolean force)
public java.lang.String getCreateCommand(java.lang.String operator)
Workflow
-Step
operator
- OOQL operator (example: "add" (update Step) , or empty (add new Step) )public java.lang.String getChangeCommand()
Workflow
-Step
-Transition with the settled properties
public java.lang.String compareUpdate(Transition refTransition, boolean checkImage, Framework framework) throws OberonException
Step
-Transition object and let it become
equals to another reference object.
refTransition
- the reference Transition objectframework
- the current framework
OberonException
fromXML(Element)
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |