|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.workflow.engine.model.ProcessModelManagerImpl
public class ProcessModelManagerImpl
A ProcessModelManager implementation
| Constructor Summary | |
|---|---|
ProcessModelManagerImpl()
Default constructor |
|
| Method Summary | |
|---|---|
void |
clearProcessModelCache()
Clear the process model cache. |
ProcessModel |
createProcessModel(String processFileName,
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 |
protected String |
getProcessPath(String processFileName)
|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProcessModelManagerImpl()
| Method Detail |
|---|
public List<String> listProcessModels()
throws WorkflowException
ProcessModelManager
listProcessModels in interface ProcessModelManagerWorkflowException - when something goes wrongProcessModelManager.listProcessModels()
public ProcessModel getProcessModel(String modelId)
throws WorkflowException
getProcessModel in interface ProcessModelManagermodelId - model id
WorkflowException - when something goes wrong
public ProcessModel createProcessModelDescriptor()
throws WorkflowException
ProcessModelManager
createProcessModelDescriptor in interface ProcessModelManagerWorkflowException - when something goes wrong
public ProcessModel createProcessModel(String processFileName,
String peasId)
throws WorkflowException
createProcessModel in interface ProcessModelManagerprocessFileName - xml descriptor filename.peasId - Id of processManager instance (peas).
WorkflowException - when something goes wrong
public void deleteProcessModel(String instanceId)
throws WorkflowException
deleteProcessModel in interface ProcessModelManagerinstanceId - model id
WorkflowException - when something goes wrong
public void deleteProcessModelDescriptor(String strProcessModelFileName)
throws WorkflowException
ProcessModelManager
deleteProcessModelDescriptor in interface ProcessModelManagerstrProcessModelFileName - the relative path and file name of the process file
WorkflowException - when something goes wrong or the file cannot be found
public ProcessModel loadProcessModel(String processFileName,
boolean absolutePath)
throws WorkflowException
loadProcessModel in interface ProcessModelManagerprocessFileName - 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
public void saveProcessModel(ProcessModel process,
String processFileName)
throws WorkflowException
saveProcessModel in interface ProcessModelManagerprocessFileName - the xml file name that contains process model definitionprocess - A processModel object to be saved
WorkflowException - when something goes wrongpublic String getProcessModelDir()
getProcessModelDir in interface ProcessModelManager
public String[] getAllPeasIds()
throws WorkflowException
getAllPeasIds in interface ProcessModelManagerWorkflowExceptionpublic void clearProcessModelCache()
clearProcessModelCache in interface ProcessModelManagerprotected String getProcessPath(String processFileName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||