|
OBEROn SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.oberon.ooql.sdk.OBBase
com.oberon.ooql.sdk.AdminBase
com.oberon.ooql.sdk.Workflow
public class Workflow
Workflow Admin Object: defines a workflow.
| Field Summary |
|---|
| Fields inherited from class com.oberon.ooql.sdk.AdminBase |
|---|
bsOptions, HIDDEN_OPTION |
| Constructor Summary | |
|---|---|
Workflow()
|
|
Workflow(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
addExecuteAccess(java.lang.String actorType,
java.lang.String actorName)
Add access right to execute this Workflow to an actor |
void |
addStep(Step step)
Appends a new Step to the Workflow |
void |
clearParameters()
Remove all Workflow global Parameters. |
java.lang.String |
compareUpdate(Workflow refWorkflow,
boolean checkImage,
boolean overwrite,
boolean force,
Framework framework)
Return/apply the OOQL command to update this Workflow object and let it become equals to another reference object. |
static java.lang.String |
covertActorFormat(java.lang.String actor)
Convert the actor string format from actortype|actorname to OOQL format |
void |
create(boolean force,
Framework framework)
Create a new Workflow object on the database |
void |
create(Framework framework)
Create a new Workflow object on the database |
void |
destroy(Framework framework)
Remove the Workflow object from the database. |
void |
fromXML(org.jdom.Element rootElement)
Load the Workflow object and Step properties from XML element tree |
void |
fromXML(org.jdom.Element rootElement,
boolean loadSteps)
Load the Workflow object properties from XML element tree |
java.lang.String |
getCreateCommand(boolean force)
Return the OOQL command to create this Workflow object with the settled properties |
java.util.Vector<java.lang.String> |
getExecuteAccess()
Return the list of execute access rights for this Workflow. |
java.util.Hashtable<java.lang.String,java.lang.String> |
getParameters()
Get the Workflow global Parameters. |
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 object by its OOQL identifier |
java.lang.String |
getSaveCommand(boolean force)
Return the OOQL command to update this Workflow object with the modified properties. |
Step |
getStartStep()
Get the Workflow start Step |
Step |
getStep(java.lang.String stepName)
Get a Workflow Step with the given name |
Step |
getStepAt(int index)
Get a Workflow Step at given position index |
Step |
getStepFromId(int stepId)
Get a Workflow Step with the given internal id |
java.util.Vector<java.lang.String> |
getStepIDs()
Get all Workflow Step internal ids |
java.util.Vector<java.lang.String> |
getStepNames()
Get all Workflow Step names |
int |
getStepPos(java.lang.String stepName)
Get the Step position index in the Workflow step sequence |
java.util.Vector<Step> |
getSteps()
Get all workflow Steps |
java.lang.String |
getStepsAsString(java.lang.String delim)
Get all Workflow Step names as a single string |
java.util.Hashtable<java.lang.String,org.jdom.Element> |
getStepXML()
Get the Step properties loaded from the XML element tree |
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 |
hasAccess(Framework framework)
Check if the framework user has access to execute this Workflow |
void |
link(Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
Open the Workflow object: connect the memory instance with the database instance |
static Workflow |
open(java.lang.String name,
Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
Open an administrative object and read properties from the database or retrieve them from memory |
void |
removeExecuteAccess(java.lang.String actorType,
java.lang.String actorName)
Remove the actor access right to execute this Workflow |
void |
removeParameter(java.lang.String parameter)
Remove a parameter from the Workflow global Parameters. |
void |
removeStep(Step step)
Remove a Step from the Workflow |
void |
removeStep(java.lang.String stepName)
Remove a Step from the Workflow identified by its name |
void |
setParameter(java.lang.String parameter,
java.lang.String value)
Set a Workflow global Parameter. |
void |
setParameters(java.util.Hashtable<java.lang.String,java.lang.String> parameters)
Set the Workflow global Parameters. |
void |
setSteps(java.util.Vector<Step> steps)
Set all Workflow Steps |
java.lang.String |
toString()
Return the Workflow object basic properties as a single String |
java.lang.String |
toString(Framework framework)
Return the Workflow object extended properties as a single String |
org.jdom.Element |
toXML(boolean getImage,
boolean fullDump,
Framework framework)
Return the Workflow object properties as XML element tree |
org.jdom.Element |
toXML(Framework framework)
Return the Workflow object properties as XML element tree |
void |
unlink(Framework framework)
Close the object: disconnect the memory instance from the database instance |
void |
updateExecuteAccess(java.util.Vector<java.lang.String> accesses)
Update the execute access on the basis of a given list |
void |
updateParameters(java.util.Hashtable<java.lang.String,java.lang.String> parameters)
Update the parameters on the basis of a given map |
void |
updateSteps(java.util.Vector<Step> steps)
Update the steps on the basis of a given list |
void |
validate(Framework framework)
Validate this Workflow |
void |
write(boolean force,
Framework framework)
Update the Workflow object to the database The operation is allowed only if there is no Process instances for this Workflow. |
void |
write(Framework framework)
Update the Workflow object to the database The operation is allowed only if there is no Process instances for this Workflow. |
| 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 |
| Constructor Detail |
|---|
public Workflow()
public Workflow(java.lang.String name)
throws OberonException
name - the name of the administrative object
OberonException - if the name contains invalid characters| Method Detail |
|---|
public static Workflow open(java.lang.String name,
Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
throws OberonException
name - the object nameframework - the current frameworkcounters - administrative object synch counters (if null read them from database)
OberonException - usually due to DB SQL exceptions
public void link(Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
throws OberonException
link in class AdminBaseframework - the current frameworkcounters - administrative object synch counters (if null read them from database)
OberonException - usually due to DB SQL exceptions
public void create(Framework framework)
throws OberonException
create in class AdminBaseframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public void create(boolean force,
Framework framework)
throws OberonException
force - if true ignores optional featuresframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public void write(Framework framework)
throws OberonException
Process instances for this Workflow.
write in class AdminBaseframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public void write(boolean force,
Framework framework)
throws OberonException
Process instances for this Workflow.
force - if true ignores optional featuresframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public void unlink(Framework framework)
throws OberonException
unlink in class AdminBaseframework - the current framework
OberonException - usually due to DB SQL exceptions
public void validate(Framework framework)
throws OberonException
framework - the current framework
OberonException - usually due to DB SQL exceptions
public void destroy(Framework framework)
throws OberonException
Process instances for this Workflow.
destroy in class AdminBaseframework - the current framework
OberonException - usually due to DB SQL exceptions or to limited user access rights
public void addExecuteAccess(java.lang.String actorType,
java.lang.String actorName)
actorType - the actor type: can be ActorAccess.USER , ActorAccess.TEAM , ActorAccess.ASSIGNMENTactorName - the actor name
public void removeExecuteAccess(java.lang.String actorType,
java.lang.String actorName)
actorType - the actor type: can be ActorAccess.USER , ActorAccess.TEAM , ActorAccess.ASSIGNMENTactorName - the actor namepublic void updateExecuteAccess(java.util.Vector<java.lang.String> accesses)
accesses - list of accesses formatted as actorType|actorNamepublic java.util.Vector<java.lang.String> getExecuteAccess()
addExecuteAccess(String, String)public void setParameters(java.util.Hashtable<java.lang.String,java.lang.String> parameters)
parameters - set of parameters to put/change into the parameter table
public void setParameter(java.lang.String parameter,
java.lang.String value)
parameter - the parameter to setvalue - the parameter valuepublic void removeParameter(java.lang.String parameter)
parameter - the parameter to removepublic void updateParameters(java.util.Hashtable<java.lang.String,java.lang.String> parameters)
parameters - map of parameter valuespublic void clearParameters()
public java.util.Hashtable<java.lang.String,java.lang.String> getParameters()
public void addStep(Step step)
throws OberonException
OberonExceptionpublic void removeStep(Step step)
Step from the Workflow
public void removeStep(java.lang.String stepName)
Step from the Workflow identified by its name
public void updateSteps(java.util.Vector<Step> steps)
throws OberonException
steps - list of Steps
OberonExceptionpublic void setSteps(java.util.Vector<Step> steps)
steps - a Vector of Stepspublic int getStepPos(java.lang.String stepName)
Step position index in the Workflow step sequence
public java.util.Vector<Step> getSteps()
Stepspublic Step getStepAt(int index)
public Step getStep(java.lang.String stepName)
public Step getStartStep()
public Step getStepFromId(int stepId)
public java.util.Vector<java.lang.String> getStepNames()
Step namespublic java.util.Vector<java.lang.String> getStepIDs()
public java.lang.String getStepsAsString(java.lang.String delim)
delim - the Step name separatorpublic boolean hasAccess(Framework framework)
public static java.lang.String covertActorFormat(java.lang.String actor)
actor - actor string formatted as actortype|actorname ( User|MyName )
public java.lang.String getProperty(java.lang.String propertyName,
java.util.Vector<java.lang.Object> filterArgs,
java.lang.String token,
Framework framework)
getProperty in class OBBasepropertyName - OOQL property identifier/name (example: defaultfiletype , revisionrule ...)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 OBBasecomposedName - OOQL property identifier/name (example: step, .. )filterArgs - extra arguments used to compute propertiesframework - the current framework
public java.lang.String toString()
toString in class AdminBasepublic java.lang.String toString(Framework framework)
toString in class AdminBaseframework - the current frameworkpublic org.jdom.Element toXML(Framework framework)
toXML in class AdminBaseframework - the current framework
public org.jdom.Element toXML(boolean getImage,
boolean fullDump,
Framework framework)
toXML in class AdminBasegetImage - true to include "imagedata" element with the base64 encoded image datafullDump - true to include detailed informationframework - the current frameworkpublic void fromXML(org.jdom.Element rootElement)
Step properties from XML element tree
fromXML in class AdminBase
public void fromXML(org.jdom.Element rootElement,
boolean loadSteps)
loadSteps - if true to load also Step propertiespublic java.util.Hashtable<java.lang.String,org.jdom.Element> getStepXML()
Steps associated to their namesfromXML(Element, boolean)public java.lang.String getCreateCommand(boolean force)
getCreateCommand in class AdminBaseforce - if true append the "force" options at the endpublic java.lang.String getSaveCommand(boolean force)
getSaveCommand in class AdminBaseforce - if true append the "force" options at the end
public java.lang.String compareUpdate(Workflow refWorkflow,
boolean checkImage,
boolean overwrite,
boolean force,
Framework framework)
throws OberonException
refWorkflow - the reference Workflow objectcheckImage - if true compare also the image iconoverwrite - if true update the database object instanceforce - if true ignores optional propertiesframework - the current framework
OberonExceptionfromXML(Element)
|
OBEROn SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||