|
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.Step
public class Step
Represents a Workflow
step.
Field Summary | |
---|---|
static int |
COMPLETE_ALL
All actors in the access list must complete the step |
static int |
COMPLETE_ANY
Any actor in the access list can complete the step |
static int |
COMPLETE_MIN
A minimum number of actors in the access list must complete the step |
static int |
COMPLETION_OPTION
The Completion flag index inside the Option Set |
static int |
DECISION_MULTI
Each actor can select multiple transitions |
static int |
DECISION_OPTION
The Completion flag index inside the Option Set |
static int |
DECISION_SINGLE
Each actor can select only one transition |
static int |
EXPIREOTHERS_OPTION
The 'Expire residual' flag index inside the Option Set |
static int |
HOLDER_OPTION
The Holder Execute flag index inside the Option Set |
static int |
NOTIFY_OPTION
The notify option flag index inside the Option Set |
static int |
OPERATE_IGNORE
Perform Ignore operation |
static int |
OPERATE_length
|
static int |
OPERATE_PROGRESS
Perform Progress operation |
static int |
OPERATE_REFUSE
Perform Refuse operation |
static int |
OPERATE_REGRESS
Perform Regress operation |
static int |
OPERATE_SETSTAGE
Perform Set Stage operation |
static int |
OPERATE_VALIDATE
Perform Validate operation |
static int |
OPERATION_OPTION
The operation option flag index inside the Option Set |
static int |
STEPTYPE_ACTION
Action element |
static int |
STEPTYPE_AND_JOIN
AND-Join element |
static int |
STEPTYPE_DECISION
Decision element |
static int |
STEPTYPE_length
|
static int |
STEPTYPE_LIFECYCLE_ACTION
Licecycle Action element |
static int |
STEPTYPE_NOTIFICATION
Notification element |
static int |
STEPTYPE_OR_JOIN
OR-Join element |
static int |
STEPTYPE_SPLIT
Split element |
static int |
STEPTYPE_START
Start element |
static int |
STEPTYPE_STOP
Stop element |
static int |
STEPTYPE_SYSTEM
System Action element |
static int |
STOPOTHERS_OPTION
The 'Stop residual' flag index inside the Option Set |
Fields inherited from class com.oberon.ooql.sdk.AdminComponent |
---|
bsOptions |
Constructor Summary | |
---|---|
Step()
|
|
Step(java.lang.String name)
|
Method Summary | |
---|---|
void |
addExecuteAccess(java.lang.String actorType,
java.lang.String actorName)
Add access right to execute this Step to an actor |
void |
addRecipient(java.lang.String type,
java.lang.String actorType,
java.lang.String actorName)
Add a User/Team/Assignment to the recipient list |
void |
addTransition(Transition transition)
Add a Transition to this Step |
void |
clearParameters()
Remove all Step Parameters. |
java.lang.String |
compareUpdate(Step refStep,
boolean checkImage,
Framework framework)
Return the OOQL command to update this Workflow -Step object and let it become
equals to another reference object. |
org.jdom.Element |
destToXML(java.lang.String sToCc)
Return the Notification object addresses as XML element tree |
boolean |
equals(Step step)
Check if this Step is equal to another |
void |
fromXML(org.jdom.Element rootElement)
Load the Step object from XML element tree |
java.lang.String |
getActionProgram()
Get the method to run automatically by System |
java.lang.String |
getApplication()
Get the application Menu name. |
java.lang.String |
getChangeCommand()
Return the OOQL command to update this Workflow -Step with the settled properties |
java.lang.String |
getChangeStateTrigger()
Get the Step change-state trigger |
java.lang.String |
getCompleteTrigger()
Get the Step complete trigger |
int |
getCompletionType()
Get the Step completion type option. |
java.lang.String |
getCompletionTypeAsString(int complete)
Convert the completion type to OOQL string |
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 Step with the settled properties to a Workflow |
int |
getDecisionType()
Get the Step decision type option. |
java.lang.String |
getDecisionTypeAsString(int decision)
Convert the decision type to OOQL string |
long |
getDurationTime()
Get the Step Maximum Duration Time. |
java.lang.String |
getExecutable()
Get the server-side executable to run in a System step |
java.util.Vector<java.lang.String> |
getExecuteAccess()
Return the list of execute access rights for this Step. |
double |
getHPos()
Get the Step Horizontal Position. |
java.lang.String |
getHRef()
Get the web page link |
java.util.Vector<Transition> |
getInputTransitions()
Return the input transitions |
java.lang.String |
getLabel()
Get the Command label. |
java.lang.String |
getLifecycleOperationTypeAsString(int operation)
Convert the operation type to OOQL string |
java.lang.String |
getMailBody()
Get the mail body for notification / action / decision steps |
java.lang.String |
getMailBodyForm()
Get the form used to compile the mail body in notification steps |
java.lang.String |
getMailLanguage()
Get the mail language for notification steps |
java.lang.String |
getMailSubject()
Get the mail subject for notification steps |
int |
getMaxInputTransitions()
Returns the maximum input transitions on the base of the step type |
int |
getMaxOutputTransitions()
Returns the maximum output transitions on the base of the step type |
java.lang.String |
getOperationOption()
Get the operation option for lifecycle-operations |
int |
getOperationType()
Get the Step operation type option. |
java.util.Hashtable<java.lang.String,java.lang.String[]> |
getParameters()
Get the Step 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 -Step object by its OOQL identifier |
java.util.Vector<java.lang.String> |
getRecipients()
Return the recipient list |
java.lang.String |
getRecipientToString(java.lang.String type,
java.lang.String token)
Return the recipient list as a string |
java.lang.String |
getSaveCommand(boolean force)
[Inherited but not used] |
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 |
int |
getThreshold()
Get the step Threshold |
Transition |
getTransition(java.lang.String transitionName)
Get a Transition for this Step |
java.util.Vector<java.lang.String> |
getTransitionIDs()
Get Transition internal ids for this Step |
java.util.Vector<java.lang.String> |
getTransitionNames()
Get Transition names for this Step |
int |
getTransitionPos(Transition transition)
Return the Transition position into the Step-Transition list |
java.util.Vector<Transition> |
getTransitions()
Get Transitions for this Step |
java.lang.String |
getTransitionsAsString(java.lang.String delim)
Get Transition names for this Step as String |
int |
getType()
Get the Step type |
java.lang.String |
getTypeAsString()
Get the Step type in OOQL format |
static java.lang.String |
getTypeAsString(int type)
Convert the Step type in OOQL format |
static int |
getTypeFromString(java.lang.String stepType)
Convert Step type from OOQL format |
double |
getVPos()
Get the Step Vertical Position. |
Workflow |
getWorkflow()
Get the related Workflow |
boolean |
hasExecuteAccess(User user,
java.lang.String holderName,
Framework framework)
Check if a User has access to execute this Step. |
boolean |
isExpireOthers()
Check if the expireOthers option is active for this Step |
boolean |
isHolderExecute()
Check if the holderExecute option is active for this Step |
boolean |
isImageChanged()
Check if Step image was updated |
boolean |
isNotify()
Check if the notify option is active for this Step |
boolean |
isStopOthers()
Check if the stopOthers option is active for this Step |
void |
removeExecuteAccess(java.lang.String actorType,
java.lang.String actorName)
Remove the actor access right to execute this Step |
void |
removeParameter(java.lang.String parameter)
Remove a parameter from the Step Parameters. |
void |
removeRecipient(java.lang.String type,
java.lang.String actorType,
java.lang.String actorName)
Remove a User/Team/Assignment from the recipient list |
void |
removeTransition(Transition transition)
Remove a Transition from this Step |
void |
setActionProgram(java.lang.String programName)
Set the method to run automatically by System |
void |
setChangeStateTrigger(java.lang.String programName)
Set the Step change-state trigger It runs any time the step status changes |
void |
setCompleteTrigger(java.lang.String programName)
Set the Step complete trigger It runs when each single actor complete the action task |
void |
setCompletionType(int complete)
Set the Step completion type option. |
void |
setCompletionType(java.lang.String complete)
Set the Step completion type option. |
void |
setDecisionType(int decision)
Set the Step decision type option. |
void |
setDecisionType(java.lang.String decision)
Set the Step decision type option. |
void |
setDurationTime(long seconds)
Set the Step Maximum Duration Time. |
void |
setExecutable(java.lang.String executePath)
Set the server-side executable to run in a System step |
void |
setExpireOthers(boolean expireOthers)
Set the expire others flag for join elements When expireOthers is true the incomplete step at join inputs will be expired automatically |
void |
setHolderExecute(boolean holderExecute)
Set the holder execute option. |
void |
setHPos(double hpos)
Set the Step Horizontal Position. |
void |
setHRef(java.lang.String url)
Set the web page link for this Command. |
void |
setLabel(java.lang.String label)
Set the Command label. |
void |
setLifecycleOperationType(java.lang.String operation,
java.lang.String option)
Set the Step operation type option. |
void |
setMailBody(java.lang.String body)
Set the mail body for notification / action / decision steps |
void |
setMailBodyForm(java.lang.String formName)
Set the form used to compile the mail body in notification steps |
void |
setMailLanguage(java.lang.String language)
Set the mail language for notification steps |
void |
setMailSubject(java.lang.String subject)
Set the mail subject for notification steps |
void |
setNotify(boolean notify)
Set the notify option for action / decision steps When this flag is true a notification is sent to action users as soon as the step becomes active |
void |
setOperationType(int operation,
java.lang.String option)
Set the Step operation type option. |
void |
setParameter(java.lang.String parameter,
java.lang.String[] value)
Set a Step Parameter. |
void |
setParameters(java.util.Hashtable<java.lang.String,java.lang.String[]> parameters)
Set the Step Parameters. |
void |
setStopOthers(boolean stopOthers)
Set the stop others flag for join elements When stopOthers is true the incomplete step at join inputs will be stopped automatically |
void |
setThreshold(int threshold)
Set the step Threshold. |
void |
setTransitions(java.util.Vector<Transition> transitions)
Set Transitions for this Step |
void |
setType(int type)
Set the Step type |
void |
setVPos(double vpos)
Set the Step Vertical Position. |
void |
setWorkflow(Workflow workflow)
Link the Step with the related Workflow |
java.lang.String |
toString()
Return the Step object basic properties as a single String |
org.jdom.Element |
toXML(boolean getImage,
boolean fullDump,
Framework framework)
Return the Step properties as XML element tree |
org.jdom.Element |
toXML(Framework framework)
Return the Step properties as XML element tree |
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 |
updateRecipients(java.util.Vector<java.lang.String> recipients)
Update the recipients on the basis of a given list |
void |
updateTransitions(java.util.Vector<Transition> transitions)
Update the transitions on the basis of a given list |
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 HOLDER_OPTION
public static final int STOPOTHERS_OPTION
public static final int COMPLETION_OPTION
public static final int DECISION_OPTION
public static final int EXPIREOTHERS_OPTION
public static final int NOTIFY_OPTION
public static final int OPERATION_OPTION
public static final int STEPTYPE_START
public static final int STEPTYPE_STOP
public static final int STEPTYPE_ACTION
public static final int STEPTYPE_SPLIT
public static final int STEPTYPE_OR_JOIN
public static final int STEPTYPE_AND_JOIN
public static final int STEPTYPE_SYSTEM
public static final int STEPTYPE_DECISION
public static final int STEPTYPE_NOTIFICATION
public static final int STEPTYPE_LIFECYCLE_ACTION
public static final int STEPTYPE_length
public static final int COMPLETE_ANY
public static final int COMPLETE_ALL
public static final int COMPLETE_MIN
public static final int DECISION_SINGLE
public static final int DECISION_MULTI
public static final int OPERATE_PROGRESS
public static final int OPERATE_REGRESS
public static final int OPERATE_SETSTAGE
public static final int OPERATE_VALIDATE
public static final int OPERATE_IGNORE
public static final int OPERATE_REFUSE
public static final int OPERATE_length
Constructor Detail |
---|
public Step()
public Step(java.lang.String name) throws OberonException
name
- the name of the administrative object
OberonException
- if the name contains invalid charactersMethod Detail |
---|
public boolean isImageChanged()
public void setWorkflow(Workflow workflow)
Workflow
public Workflow getWorkflow()
Workflow
public java.lang.String getApplication()
Menu
name.
public void setType(int type)
type
- the Step typepublic int getType()
public static java.lang.String getTypeAsString(int type)
public java.lang.String getTypeAsString()
public static int getTypeFromString(java.lang.String stepType)
public void setHPos(double hpos)
hpos
- the horizontal position in the workflow graphpublic double getHPos()
public void setVPos(double vpos)
vpos
- the vertical position in the workflow graphpublic double getVPos()
public void setDurationTime(long seconds)
seconds
- the duration time in secondspublic long getDurationTime()
public void setHolderExecute(boolean holderExecute)
ObjectObj
's holder is added to the user list
for execution of this step
public boolean isHolderExecute()
public void addExecuteAccess(java.lang.String actorType, java.lang.String actorName)
actorType
- the actor type: can be ActorAccess.USER
, ActorAccess.TEAM
, ActorAccess.ASSIGNMENT
actorName
- the actor namepublic void removeExecuteAccess(java.lang.String actorType, java.lang.String actorName)
actorType
- the actor type: can be ActorAccess.USER
, ActorAccess.TEAM
, ActorAccess.ASSIGNMENT
actorName
- 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 boolean hasExecuteAccess(User user, java.lang.String holderName, Framework framework)
User
has access to execute this Step.
public void addRecipient(java.lang.String type, java.lang.String actorType, java.lang.String actorName)
type
- the recipient type ( Mail.TO , Mail.CC , Mail.BCC )actorType
- the actor type: can be ActorAccess.USER
, ActorAccess.TEAM
, ActorAccess.ASSIGNMENT
actorName
- the actor namepublic void removeRecipient(java.lang.String type, java.lang.String actorType, java.lang.String actorName)
type
- the recipient type ( Mail.TO , Mail.CC , Mail.BCC )actorType
- the actor type: can be ActorAccess.USER
, ActorAccess.TEAM
, ActorAccess.ASSIGNMENT
actorName
- the actor namepublic void updateRecipients(java.util.Vector<java.lang.String> recipients)
recipients
- list of recipients formatted as recipientType|actorType|actorNamepublic java.util.Vector<java.lang.String> getRecipients()
addRecipient(String, String, String)
public java.lang.String getRecipientToString(java.lang.String type, java.lang.String token)
type
- the recipient type ( Mail.TO , Mail.CC , Mail.BCC )token
- the separator tokenpublic void setCompletionType(int complete)
complete
- the completion type constant ( COMPLETE_ALL
/ COMPLETE_ANY
/ COMPLETE_MIN
)public int getCompletionType()
setCompletionType(int)
public java.lang.String getCompletionTypeAsString(int complete)
public void setCompletionType(java.lang.String complete)
complete
- the OOQL completion type string ( all / any / min )public void setDecisionType(int decision)
decision
- the decision type constant ( DECISION_SINGLE
/ DECISION_MULTI
)public int getDecisionType()
setDecisionType(int)
public java.lang.String getDecisionTypeAsString(int decision)
public void setDecisionType(java.lang.String decision)
decision
- the OOQL decision type string ( single / multiple )public void setOperationType(int operation, java.lang.String option)
operation
- the operation type constant ( OPERATE_PROGRESS
/ OPERATE_REGRESS
/ OPERATE_SETSTAGE
/ OPERATE_VALIDATE
/ OPERATE_IGNORE
/ OPERATE_REFUSE
)option
- the operation option ( Stage
/ Validation
name )public int getOperationType()
setOperationType(int,String)
public java.lang.String getOperationOption()
Validation
name or the Stage
namepublic java.lang.String getLifecycleOperationTypeAsString(int operation)
public void setLifecycleOperationType(java.lang.String operation, java.lang.String option)
operation
- the OOQL operation type string ( progress / regress / setstage / validate / ignore / refuse )option
- the operation option ( Stage
/ Validation
name )public void setThreshold(int threshold)
public int getThreshold()
public void setStopOthers(boolean stopOthers)
public boolean isStopOthers()
setStopOthers(boolean)
public void setExpireOthers(boolean expireOthers)
public boolean isExpireOthers()
setExpireOthers(boolean)
public void setNotify(boolean notify)
public boolean isNotify()
setNotify(boolean)
public void setLabel(java.lang.String label)
label
- the label valuepublic java.lang.String getLabel()
public void setHRef(java.lang.String url)
Feature
s
url
- the http url (example: /myfolder/mypage.jsp)public java.lang.String getHRef()
public void setMailLanguage(java.lang.String language)
language
- the languagepublic java.lang.String getMailLanguage()
public void setMailSubject(java.lang.String subject)
subject
- the subject text (you can use here substitution or dictionary keywords )public java.lang.String getMailSubject()
public void setMailBody(java.lang.String body)
body
- the body text (you can use here substitution or dictionary keywords )public java.lang.String getMailBody()
public void setMailBodyForm(java.lang.String formName)
formName
- the Form
namepublic java.lang.String getMailBodyForm()
Form
namepublic void setActionProgram(java.lang.String programName)
programName
- the Program
namepublic java.lang.String getActionProgram()
Program
namepublic void setExecutable(java.lang.String executePath)
executePath
- the path of executable filepublic java.lang.String getExecutable()
Program
namepublic void setCompleteTrigger(java.lang.String programName)
programName
- the Program
namepublic java.lang.String getCompleteTrigger()
Program
namepublic void setChangeStateTrigger(java.lang.String programName)
programName
- the Program
namepublic java.lang.String getChangeStateTrigger()
Program
namepublic void setParameters(java.util.Hashtable<java.lang.String,java.lang.String[]> parameters)
parameters
- set of parameters to put/change into the parameter tablepublic void setParameter(java.lang.String parameter, java.lang.String[] value)
parameter
- the parameter to setvalue
- array of 3 elements: the default value [0], the workflow source parameter [1],the workflow parameter to update [2]public 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 addTransition(Transition transition)
Transition
to this Step
public void removeTransition(Transition transition)
Transition
from this Step
public void setTransitions(java.util.Vector<Transition> transitions)
transitions
- vector of Transition
spublic void updateTransitions(java.util.Vector<Transition> transitions) throws OberonException
transitions
- list of Transition
s
OberonException
public java.util.Vector<Transition> getTransitions()
Transition
spublic Transition getTransition(java.lang.String transitionName)
transitionName
- the Transition name
public java.util.Vector<java.lang.String> getTransitionNames()
Transition
namespublic java.util.Vector<java.lang.String> getTransitionIDs()
Transition
idspublic java.lang.String getTransitionsAsString(java.lang.String delim)
Transition
names for this Step as String
delim
- the name separatorpublic int getTransitionPos(Transition transition)
Transition
position into the Step-Transition list
public java.util.Vector<Transition> getInputTransitions()
public int getMaxInputTransitions()
public int getMaxOutputTransitions()
public boolean equals(Step step)
step
- the Step to compare with this Steppublic java.lang.String getProperty(java.lang.String propertyName, java.util.Vector<java.lang.Object> filterArgs, java.lang.String token, Framework framework)
Workflow
-Step object by its OOQL identifier
getProperty
in class OBBase
propertyName
- OOQL property identifier/name (example: type , duration ...)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/name (example: transition, programfilterArgs
- extra arguments used to compute propertiesframework
- the current framework
public java.lang.String toString()
toString
in class java.lang.Object
public org.jdom.Element destToXML(java.lang.String sToCc)
sToCc
- can be TO, CC or BCCpublic 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
operator
- OOQL operator (example: "add" (update Workflow) , or empty (add new Workflow) )public java.lang.String getChangeCommand()
Workflow
-Step with the settled properties
public java.lang.String compareUpdate(Step refStep, boolean checkImage, Framework framework) throws OberonException
Workflow
-Step object and let it become
equals to another reference object.
refStep
- the reference Step 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 |