|
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.ProcessStep
public class ProcessStep
Represents a Process
step.
Field Summary | |
---|---|
java.lang.String |
href
|
int |
iOldStatus
|
int |
iProcessID
|
java.lang.String |
label
|
java.lang.String |
logMessage
|
java.lang.String |
mail_body
|
java.lang.String |
mail_subject
|
static int |
STATUS_COMPLETED
The step has finished its execution |
static int |
STATUS_ERROR
The step has caused an error |
static int |
STATUS_EXECUTION
The step is running |
static int |
STATUS_EXPIRED
The step is expired |
static int |
STATUS_QUEUED
The step is queued |
static int |
STATUS_SKIPPED
The step is skipped |
static int |
STATUS_SUSPENDED
The step is suspended |
static int |
STATUS_TERMINATED
The step is terminated |
static int |
STATUS_WAIT
The step is waiting for user execution |
int |
step_type
|
java.util.Vector<java.lang.Object> |
vAddObjects
|
java.util.Vector<java.lang.Object> |
vDelObjects
|
Constructor Summary | |
---|---|
ProcessStep()
|
|
ProcessStep(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 |
addObject(java.lang.String objectID)
Add a single ObjectObj to this Process Step |
void |
addObject(java.lang.String objectClass,
java.lang.String objectName,
java.lang.String objectRevision)
Add a single ObjectObj to this Process Step |
void |
addRecipient(java.lang.String type,
java.lang.String actorType,
java.lang.String actorName)
Add a User/Team/Assignment to the recipient list |
static boolean |
checkStatusTransition(int oldstatus,
int newstatus)
Check if the status transition is valid |
void |
clearParameters()
Remove all Step local Parameters. |
java.lang.String |
convertChoices(java.util.BitSet choices)
Convert user choices from BitSet format to String format |
java.util.BitSet |
convertChoices(java.util.Vector<java.lang.String> choices)
Convert user choices from BitSet format to String format |
org.jdom.Element |
destToXML(java.lang.String sToCc,
Framework framework)
Return the Notification object addresses as XML element tree |
void |
fromXML(org.jdom.Element rootElement)
Load the Step object from XML element tree |
java.lang.String |
getEndDateTime()
Get the Process End Date/Time |
java.util.Vector<java.lang.String> |
getExecuteAccess(Framework framework)
Return the list of execute access rights for this Step. |
long |
getExecutionPerc()
Get the Step Execution Percentage. |
java.lang.String |
getExpireDateTime()
Get the Process Expiration Date/Time |
java.lang.String |
getHolder()
Get the Step's holder. |
java.lang.String |
getHRef()
Get the User link HRef |
java.lang.String |
getLabel()
Get the User link label |
java.lang.String |
getMailBody()
Get the Mail Body for notification steps |
java.lang.String |
getMailSubject()
Get the Mail Subject for notification steps |
java.lang.String |
getName()
Get the ObjectValidation name |
java.util.Vector<java.lang.String> |
getObjects(Framework framework)
Get the associated ObjectObjs. |
int |
getOldStatus()
Get the Step previous status |
java.util.Hashtable<java.lang.String,java.lang.String> |
getParameters()
Get the Step local Parameters. |
Process |
getProcess(Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
Get the related Process |
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 Process -Step object by its OOQL identifier |
java.util.Vector<java.lang.String> |
getRecipients(Framework framework)
Return the recipient list |
java.lang.String |
getRecipientToString(java.lang.String type,
java.lang.String token,
Framework framework)
Return the recipient list as a string |
java.lang.String |
getSaveCommand()
Return the OOQL command to update this Step Process object with the modified properties. |
java.lang.String |
getStartDateTime()
Get the Process Start Date/Time |
int |
getStatus()
Get the Step status |
java.lang.String |
getStatusAsString()
Get the Step status in OOQL format |
static java.lang.String |
getStatusAsString(int status)
Convert the Step type in OOQL format |
static int |
getStatusFromString(java.lang.String stepStatus)
Convert Step status from OOQL format |
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 |
getType()
Get the Step type |
java.lang.String |
getUserChoices(java.lang.String userName,
Framework framework)
Return the choice made by a given user |
org.jdom.Element |
getXMLExecuteList(Framework framework)
Return the Execute Access List as XML element tree |
boolean |
hasExecuteAccess(User user,
Framework framework)
Check if a User has access to execute this Process Step. |
void |
removeExecuteAccess(java.lang.String actorType,
java.lang.String actorName)
Remove the actor access right to execute this Step |
void |
removeObject(java.lang.String objectID)
Remove a single ObjectObj from this Process Step |
void |
removeObject(java.lang.String objectClass,
java.lang.String objectName,
java.lang.String objectRevision)
Remove a single ObjectObj from this Process Step |
void |
removeParameter(java.lang.String parameter)
Remove a parameter from the Step local 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 |
setEndDateTime(java.lang.String datetime)
Set the Process End Date/Time |
void |
setExecutionPerc(int perc)
Set the Step Execution Percentage. |
void |
setExpireDateTime(java.lang.String datetime)
Set the Process Expiration Date/Time |
void |
setHolder(java.lang.String userName)
Set the Step's holder |
void |
setName(java.lang.String name)
Set the ObjectValidation name [INTERNAL USAGE] |
void |
setParameter(java.lang.String parameter,
java.lang.String value)
Set a Step local Parameter. |
void |
setParameters(java.util.Hashtable<java.lang.String,java.lang.String> parameters)
Set the Step execution local Parameters. |
void |
setProcess(Process process)
Link the Step with the related Process |
void |
setStartDateTime(java.lang.String datetime)
Set the Process Start Date/Time |
void |
setStatus(int newstatus)
Set the Step status |
java.lang.String |
toString(Framework framework)
Return the Step object basic properties as a single String |
org.jdom.Element |
toXML(Framework framework)
Return the Step object properties as XML element tree |
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, toString, wait, wait, wait |
Field Detail |
---|
public int iOldStatus
public int iProcessID
public int step_type
public java.lang.String logMessage
public java.lang.String href
public java.lang.String label
public java.lang.String mail_subject
public java.lang.String mail_body
public java.util.Vector<java.lang.Object> vAddObjects
public java.util.Vector<java.lang.Object> vDelObjects
public static final int STATUS_QUEUED
public static final int STATUS_WAIT
public static final int STATUS_EXECUTION
public static final int STATUS_COMPLETED
public static final int STATUS_ERROR
public static final int STATUS_EXPIRED
public static final int STATUS_TERMINATED
public static final int STATUS_SUSPENDED
public static final int STATUS_SKIPPED
Constructor Detail |
---|
public ProcessStep()
public ProcessStep(java.lang.String name) throws OberonException
name
- the name of the administrative object
OberonException
- if the name contains invalid charactersMethod Detail |
---|
public void setProcess(Process process)
Process
public Process getProcess(Framework framework, java.util.Hashtable<java.lang.String,java.lang.Integer> counters) throws OberonException
Process
OberonException
public void setName(java.lang.String name)
public java.lang.String getName()
getName
in class OBBase
public void setStatus(int newstatus) throws OberonException
newstatus
- the Step status
OberonException
public int getStatus()
public int getOldStatus()
public static java.lang.String getStatusAsString(int status)
public static boolean checkStatusTransition(int oldstatus, int newstatus)
public java.lang.String getStatusAsString()
public static int getStatusFromString(java.lang.String stepStatus)
public void setStartDateTime(java.lang.String datetime)
public java.lang.String getStartDateTime()
public void setEndDateTime(java.lang.String datetime)
public java.lang.String getEndDateTime()
public void setExpireDateTime(java.lang.String datetime)
public java.lang.String getExpireDateTime()
public int getType()
public java.lang.String getLabel()
public java.lang.String getHRef()
public java.lang.String getMailSubject()
public java.lang.String getMailBody()
public void setExecutionPerc(int perc)
public long getExecutionPerc()
public void setHolder(java.lang.String userName)
userName
- the holder User
namepublic java.lang.String getHolder()
User
namepublic 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 java.util.Vector<java.lang.String> getExecuteAccess(Framework framework)
addExecuteAccess(String, String)
public boolean hasExecuteAccess(User user, Framework framework)
User
has access to execute this Process 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 java.util.Vector<java.lang.String> getRecipients(Framework framework)
addRecipient(String, String, String)
public java.lang.String getRecipientToString(java.lang.String type, java.lang.String token, Framework framework)
type
- the recipient type ( Mail.TO , Mail.CC , Mail.BCC )token
- the separator tokenpublic void addObject(java.lang.String objectID)
ObjectObj
to this Process Step
objectID
- the ObjectObj IDpublic void addObject(java.lang.String objectClass, java.lang.String objectName, java.lang.String objectRevision)
ObjectObj
to this Process Step
objectClass
- the ObjectObj's Class
nameobjectName
- the ObjectObj's nameobjectRevision
- the ObjectObj's revisionpublic void removeObject(java.lang.String objectID)
ObjectObj
from this Process Step
objectID
- the ObjectObj IDpublic void removeObject(java.lang.String objectClass, java.lang.String objectName, java.lang.String objectRevision)
ObjectObj
from this Process Step
objectClass
- the ObjectObj's Class
nameobjectName
- the ObjectObj's nameobjectRevision
- the ObjectObj's revisionpublic java.util.Vector<java.lang.String> getObjects(Framework framework)
framework
- the current framework
public 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
- the parameter valuepublic void removeParameter(java.lang.String parameter)
parameter
- the parameter to removepublic void clearParameters()
public java.util.Hashtable<java.lang.String,java.lang.String> getParameters()
public java.lang.String convertChoices(java.util.BitSet choices)
choices
- flags checked by user
public java.util.BitSet convertChoices(java.util.Vector<java.lang.String> choices)
choices
- Vector with transition names checked by userpublic java.lang.String getUserChoices(java.lang.String userName, Framework framework)
public java.lang.String getProperty(java.lang.String propertyName, java.util.Vector<java.lang.Object> filterArgs, java.lang.String token, Framework framework)
Process
-Step object by its OOQL identifier
getProperty
in class OBBase
propertyName
- OOQL property identifier/name (example: status , startdate ...)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: wfstep )filterArgs
- extra arguments used to compute propertiesframework
- the current framework
public java.lang.String toString(Framework framework)
public org.jdom.Element getXMLExecuteList(Framework framework)
public org.jdom.Element destToXML(java.lang.String sToCc, Framework framework)
sToCc
- can be TO, CC or BCCpublic org.jdom.Element toXML(Framework framework)
framework
- the current frameworkpublic void fromXML(org.jdom.Element rootElement)
public java.lang.String getSaveCommand()
|
OBEROn SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |