public interface ProcessDataManagement
Modifier and Type | Field and Description |
---|---|
static String |
PROCESS_CONTAINER
Container name
|
Modifier and Type | Method and Description |
---|---|
boolean |
createFolder(String folderName)
Create a folder with the name {folderName} if does not exist on the process container
|
boolean |
createProcessContainer()
Create the process container (initialisation) if does not exist
|
DistributorIndex |
getDistributorIndex(String folderName,
String fileName) |
ProcessWorkflow |
getProcessWorkflow(String folderName,
String asyncId)
Retrieve a workflow instance on process container
|
Map<String,ProcessWorkflow> |
getProcessWorkflowFor(Integer tenantId,
String folderName)
Get process workflow map for tenantId and folderName (server id from serverIdentity)
|
boolean |
isFolderExist(String folderName)
Check if the folder with name {folderName} exists on process container
|
boolean |
isProcessContainerExist()
Check if the process container exists
|
void |
persistDistributorIndex(String folderName,
String fileName,
DistributorIndex distributorIndex) |
void |
persistProcessWorkflow(String folderName,
String asyncId,
ProcessWorkflow processWorkflow)
Put process workflow instance in workspace
|
boolean |
removeFolder(String folderName)
Delete folder with name {folderName} if exists on process container
|
void |
removeProcessWorkflow(String folderName,
String asyncId)
Delete process workflow instance on process container
|
static final String PROCESS_CONTAINER
boolean createProcessContainer() throws ProcessingStorageWorkspaceException
ProcessingStorageWorkspaceException
- when storage error occursboolean isProcessContainerExist() throws ProcessingStorageWorkspaceException
ProcessingStorageWorkspaceException
- when storage error occursboolean createFolder(String folderName) throws ProcessingStorageWorkspaceException
folderName
- the name of the folder to createProcessingStorageWorkspaceException
- when storage error occursboolean isFolderExist(String folderName) throws ProcessingStorageWorkspaceException
folderName
- the folder name to checkProcessingStorageWorkspaceException
- when storage error occursboolean removeFolder(String folderName) throws ProcessingStorageWorkspaceException
folderName
- the folderName to deleteProcessingStorageWorkspaceException
- when storage error occursvoid persistProcessWorkflow(String folderName, String asyncId, ProcessWorkflow processWorkflow) throws ProcessingStorageWorkspaceException, InvalidParseOperationException
folderName
- the folder to put workflow instance on process containerasyncId
- the request id (asynchronous id)processWorkflow
- the instance to saveProcessingStorageWorkspaceException
- when storage error occursInvalidParseOperationException
- when serializing object to json failvoid persistDistributorIndex(String folderName, String fileName, DistributorIndex distributorIndex) throws ProcessingStorageWorkspaceException, InvalidParseOperationException
DistributorIndex getDistributorIndex(String folderName, String fileName) throws ProcessingStorageWorkspaceException, InvalidParseOperationException
ProcessWorkflow getProcessWorkflow(String folderName, String asyncId) throws ProcessingStorageWorkspaceException, InvalidParseOperationException
folderName
- the folder on process container to get workflow instanceasyncId
- the request id (asynchronous id)ProcessingStorageWorkspaceException
- when storage error occursInvalidParseOperationException
- when deserializing object to json failvoid removeProcessWorkflow(String folderName, String asyncId) throws ProcessingStorageWorkspaceException
folderName
- the folder on process container to remove workflow instanceasyncId
- the request id (asynchronous id)ProcessingStorageWorkspaceException
- when storage error occursMap<String,ProcessWorkflow> getProcessWorkflowFor(Integer tenantId, String folderName) throws ProcessingStorageWorkspaceException
tenantId
- the tenant IDfolderName
- the folder name (server id from serverIdentity)ProcessingStorageWorkspaceException
- thrown if an error ocurred when loading process fileCopyright © 2018 Vitam. All rights reserved.