|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProcessModelManager
The workflow engine services related to process model management.
| Method Summary | |
|---|---|
void |
clearProcessModelCache()
|
ProcessModel |
createProcessModel(String fileName,
String peasId)
Create a ProcessModel from xml descriptor filename. |
ProcessModel |
createProcessModelDescriptor()
Create a new ProcessModel descriptor that is not yet saved in a XML file. |
void |
deleteProcessModel(String instanceId)
Delete a ProcessModel with given model id |
void |
deleteProcessModelDescriptor(String strProcessModelFileName)
Delete a ProcessModelDescriptor XML with given path |
String[] |
getAllPeasIds()
Get all the "process manager" peas ids |
ProcessModel |
getProcessModel(String modelId)
Get a ProcessModel from its modelId. |
String |
getProcessModelDir()
Get the directory where are stored the models |
List<String> |
listProcessModels()
List all the ProcessModels that are stored in the process model directory Retrieves all the files in the directory tree below the process model directory. |
ProcessModel |
loadProcessModel(String processFileName,
boolean absolutePath)
load a process model definition from xml file to java objects |
void |
saveProcessModel(ProcessModel process,
String processFileName)
Saves a process model definition from java objects to an XML file |
| Method Detail |
|---|
List<String> listProcessModels()
throws WorkflowException
WorkflowException - when something goes wrong
ProcessModel getProcessModel(String modelId)
throws WorkflowException
modelId - model id
WorkflowException - when something goes wrong
ProcessModel createProcessModel(String fileName,
String peasId)
throws WorkflowException
fileName - xml descriptor filename.peasId - Id of processManager instance (peas).
WorkflowException - when something goes wrong
ProcessModel createProcessModelDescriptor()
throws WorkflowException
WorkflowException - when something goes wrong
void deleteProcessModel(String instanceId)
throws WorkflowException
modelId - model id
WorkflowException - when something goes wrong
void deleteProcessModelDescriptor(String strProcessModelFileName)
throws WorkflowException
strProcessModelFileName - the relative path and file name of the process file
WorkflowException - when something goes wrong or the file cannot be foundString getProcessModelDir()
ProcessModel loadProcessModel(String processFileName,
boolean absolutePath)
throws WorkflowException
processFileName - the xml file name that contains process model definitionabsolutePath - true if xml file name contains the full path, else concat with the
directory defined in castorSettings.properties
WorkflowException - when something goes wrong or the file cannot be found
String[] getAllPeasIds()
throws WorkflowException
WorkflowException
void saveProcessModel(ProcessModel process,
String processFileName)
throws WorkflowException
processFileName - the xml file name that contains process model definitionprocess - A processModel object to be saved
WorkflowException - when something goes wrong
void clearProcessModelCache()
throws WorkflowException
WorkflowException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||