|
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.Process
public class Process
Process Object: defines running workflow instance.
| Field Summary | |
|---|---|
java.lang.String |
application
The application name to witch this process is related |
java.lang.String |
username
User who start the process |
| Constructor Summary | |
|---|---|
Process()
|
|
Process(java.lang.String workflowName)
Create new process for a specific Workflow |
|
| Method Summary | |
|---|---|
void |
addObject(java.lang.String objectID)
Submit a ObjectObj to the Process |
void |
addObject(java.lang.String objectClass,
java.lang.String objectName,
java.lang.String objectRevision)
Submit a ObjectObj to the Process |
void |
clearParameters()
Remove all Process global Parameters. |
void |
completeStep(ProcessStep step,
java.util.Vector<java.lang.String> choices,
Framework framework)
Complete a running step by current framework user |
void |
fromXML(org.jdom.Element rootElement)
Load the Process object properties from XML element tree |
java.lang.String |
getApplication()
Get the application Menu name. |
java.lang.String |
getLogFilePath()
Get the Log File Path |
java.lang.String |
getName()
Get the process ID |
java.util.Vector<java.lang.Object> |
getObjects()
Get the associated ObjectObjs. |
java.util.Hashtable<java.lang.String,java.lang.String> |
getParameters()
Get the Process global Parameters. |
ObjectObj |
getPrimaryObject()
Get the primary ObjectObj associated to the Process |
java.lang.String |
getPrimaryObjectId()
Get the primary ObjectObj ID associated to the Process |
ProcessStep |
getProcessStep(java.lang.String stepName)
Get a Process Step with the given name |
ProcessStep |
getProcessStepAt(int index)
Get a Process Step at given position index |
ProcessStep |
getProcessStepFromId(int stepId)
Get a Process Step with the given internal id |
java.util.Vector<java.lang.String> |
getProcessStepNames()
Get all Process Step names |
int |
getProcessStepPos(java.lang.String stepName)
Get the ProcessStep position index in the Process step sequence |
java.util.Vector<ProcessStep> |
getProcessSteps()
Get all Process Steps |
java.lang.String |
getProcessStepsAsString(java.lang.String delim)
Get all Process Step names as a single string |
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 object by its OOQL identifier |
java.util.Vector<java.lang.String> |
getRunningStepNames()
Get the Process running Step names |
java.lang.String |
getSaveCommand()
Return the OOQL command to update this Process object with the modified properties. |
java.lang.String |
getStartCommand(java.lang.String holder)
Return the OOQL command to start this Process with the settled properties |
java.lang.String |
getStartDateTime()
Get the Process Start Date/Time |
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 |
java.lang.String |
getUser()
Get the User who start the process |
java.lang.String |
getWorkflow()
Get the related Workflow name |
void |
link(Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
Open the Process object: connect the memory instance with the database instance |
static void |
list(Selector selector,
java.io.DataOutputStream outStream,
Framework framework)
List the active Processes |
static Process |
open(java.lang.String id,
Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
Open the process and read properties from the database |
void |
removeParameter(java.lang.String parameter)
Remove a parameter from the Process global Parameters. |
static void |
restartMonitor(Framework framework)
ReStart the process monitor Only super users can perform this operation |
void |
resume(Framework framework)
Resume the Process suspended steps |
void |
setId(int pId)
Set the process ID |
void |
setLogFilePath(java.lang.String path)
Set the Log File Path |
void |
setParameter(java.lang.String parameter,
java.lang.String value)
Set a Process global Parameter. |
void |
setParameters(java.util.Hashtable<java.lang.String,?> parameters)
Set the Process execution global Parameters. |
void |
setPrimaryObject(ObjectObj objectObj)
Set the primary ObjectObj for the Process |
void |
setPrimaryObject(java.lang.String objectID)
Set the primary ObjectObj for the Process |
void |
setPrimaryObject(java.lang.String objectClass,
java.lang.String objectName,
java.lang.String objectRevision)
Set the primary ObjectObj for the Process |
void |
setProcessSteps(java.util.Vector<ProcessStep> steps)
Set all Process Steps |
void |
setStartDateTime(java.lang.String datetime)
Set the Process Start Date/Time |
void |
setWorkflow(java.lang.String workflowName)
Link the Process with the related Workflow name |
void |
show(Selector selector,
java.io.DataOutputStream outStream,
Framework framework)
Show the Process properties |
static void |
show(java.lang.String code,
Selector selector,
java.io.DataOutputStream outStream,
Framework framework)
Show the properties for the given Process |
void |
start(Framework framework,
java.util.Hashtable<java.lang.String,?> args)
Execute the Process |
void |
start(java.lang.String holder,
Framework framework,
java.util.Hashtable<java.lang.String,?> args)
Execute the Process |
static void |
startMonitor(Framework framework)
Start the process monitor Only super users can perform this operation |
void |
stop(Framework framework)
Stop the Process |
static void |
stopMonitor(Framework framework)
Stop the process monitor Only super users can perform this operation |
void |
suspend(Framework framework)
Suspend all Process running steps |
java.lang.String |
toString()
Return the Process object basic properties as a single String |
java.lang.String |
toString(Framework framework)
Return the Process object extended properties as a single String |
org.jdom.Element |
toXML(boolean getImage,
boolean fullDump,
Framework framework)
Return the Process object properties as XML element tree |
org.jdom.Element |
toXML(Framework framework)
Return the Process object properties as XML element tree |
void |
update(Framework framework)
Update a running process |
void |
updateStep(ProcessStep step,
Framework framework)
Update a running step |
| Methods inherited from class com.oberon.ooql.sdk.OBBase |
|---|
addChange, addUniqueChange, ChangesFromXML, ChangesToXML, getChanges, getChangesAsString, getId, isLinked, removeChange, resetChanges, setLinked |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String application
public java.lang.String username
| Constructor Detail |
|---|
public Process()
public Process(java.lang.String workflowName)
throws OberonException
workflowName - the Workflow name
OberonException - if the name contains invalid characters| Method Detail |
|---|
public void setId(int pId)
setId in class OBBasepublic java.lang.String getName()
getName in class OBBasepublic java.lang.String getUser()
public java.lang.String getApplication()
Menu name.
public static Process open(java.lang.String id,
Framework framework,
java.util.Hashtable<java.lang.String,java.lang.Integer> counters)
throws OberonException
id - the process idframework - 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
framework - the current frameworkcounters - administrative object synch counters (if null read them from database)
OberonException - usually due to DB SQL exceptions
public void start(Framework framework,
java.util.Hashtable<java.lang.String,?> args)
throws OberonException
framework - the current frameworkargs - vector of Process input arguments
OberonException - due to startup errors or programmatically raised exceptions
public void start(java.lang.String holder,
Framework framework,
java.util.Hashtable<java.lang.String,?> args)
throws OberonException
holder - set the process holderframework - the current frameworkargs - vector of Process input arguments
OberonException - due to startup errors or programmatically raised exceptions
public void update(Framework framework)
throws OberonException
framework - the current framework
OberonException - due to startup errors or programmatically raised exceptions
public void updateStep(ProcessStep step,
Framework framework)
throws OberonException
step - the process stepframework - the current framework
OberonException - due to startup errors or programmatically raised exceptions
public void completeStep(ProcessStep step,
java.util.Vector<java.lang.String> choices,
Framework framework)
throws OberonException
step - the process stepchoices - vector of transition names representing the user choicesframework - the current framework
OberonException - due to startup errors or programmatically raised exceptions
public void suspend(Framework framework)
throws OberonException
framework - the current framework
OberonException - due to shut down errors
public void resume(Framework framework)
throws OberonException
framework - the current framework
OberonException - due to shut down errors
public void stop(Framework framework)
throws OberonException
framework - the current framework
OberonException - due to shut down errors
public void show(Selector selector,
java.io.DataOutputStream outStream,
Framework framework)
throws java.io.IOException,
OberonException
selector - selection parameters (if null return all the object properties)outStream - the stream for the results (if null the result is stored into the framework)framework - the current framework
java.io.IOException - when the output stream return an exception
OberonException - for all other problemsFramework.getResult()
public static void show(java.lang.String code,
Selector selector,
java.io.DataOutputStream outStream,
Framework framework)
throws java.io.IOException,
OberonException
code - the Process reference codeselector - selection parameters (if null return all the process properties)outStream - the stream for the results (if null the result is stored into the framework)framework - the current framework
java.io.IOException - when the output stream return an exception
OberonException - for all other problemsFramework.getResult()
public static void list(Selector selector,
java.io.DataOutputStream outStream,
Framework framework)
throws java.io.IOException,
OberonException
selector - selection parameters (if null return the Process ids)outStream - the stream for the results (if null the result is stored into the framework)framework - the current framework
java.io.IOException - when the output stream return an exception
OberonExceptionFramework.getResult()
public static void startMonitor(Framework framework)
throws OberonException
framework - the current framework
OberonException
public static void restartMonitor(Framework framework)
throws OberonException
framework - the current framework
OberonException
public static void stopMonitor(Framework framework)
throws OberonException
framework - the current framework
OberonExceptionpublic void setWorkflow(java.lang.String workflowName)
Workflow name
public java.lang.String getWorkflow()
Workflow name
public void setStartDateTime(java.lang.String datetime)
datetime - the start date/time (timezone: GMT)
valid formats are: "yyyy-MM-dd HH:mm" "yyyy-MM-dd HH:mm:ss"public java.lang.String getStartDateTime()
public void setLogFilePath(java.lang.String path)
path - the file full path for log process infopublic java.lang.String getLogFilePath()
public void setPrimaryObject(ObjectObj objectObj)
ObjectObj for the Process
objectObj - the ObjectObjpublic void setPrimaryObject(java.lang.String objectID)
ObjectObj for the Process
objectID - the ObjectObj ID
public void setPrimaryObject(java.lang.String objectClass,
java.lang.String objectName,
java.lang.String objectRevision)
ObjectObj for the Process
objectClass - the ObjectObj Class nameobjectName - the ObjectObj NameobjectRevision - the ObjectObj Revisionpublic ObjectObj getPrimaryObject()
ObjectObj associated to the Process
ObjectObjpublic java.lang.String getPrimaryObjectId()
ObjectObj ID associated to the Process
public void addObject(java.lang.String objectID)
ObjectObj to the Process
objectID - the ObjectObj ID
public void addObject(java.lang.String objectClass,
java.lang.String objectName,
java.lang.String objectRevision)
ObjectObj to the Process
objectClass - the ObjectObj Class nameobjectName - the ObjectObj NameobjectRevision - the ObjectObj Revisionpublic java.util.Vector<java.lang.Object> getObjects()
public void setParameters(java.util.Hashtable<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 clearParameters()
public java.util.Hashtable<java.lang.String,java.lang.String> getParameters()
public void setProcessSteps(java.util.Vector<ProcessStep> steps)
steps - a Vector of ProcessStepspublic int getProcessStepPos(java.lang.String stepName)
ProcessStep position index in the Process step sequence
public java.util.Vector<ProcessStep> getProcessSteps()
ProcessStepspublic ProcessStep getProcessStepAt(int index)
public ProcessStep getProcessStep(java.lang.String stepName)
public ProcessStep getProcessStepFromId(int stepId)
public java.util.Vector<java.lang.String> getProcessStepNames()
ProcessStep namespublic java.util.Vector<java.lang.String> getRunningStepNames()
ProcessStep namespublic java.lang.String getProcessStepsAsString(java.lang.String delim)
delim - the ProcessStep name separator
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: workflow , 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 OBBasecomposedName - OOQL property identifier/namefilterArgs - extra arguments used to compute propertiesframework - the current framework
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(Framework framework)
framework - the current frameworkpublic org.jdom.Element toXML(Framework framework)
framework - the current framework
public org.jdom.Element toXML(boolean getImage,
boolean fullDump,
Framework framework)
getImage - 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)
public java.lang.String getStartCommand(java.lang.String holder)
holder - the assigned holderpublic java.lang.String getSaveCommand()
|
OBEROn SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||