public interface ProcessDataAccess
Modifier and Type | Method and Description |
---|---|
void |
addToWorkflowList(ProcessWorkflow processWorkflow)
Add process to Workflow
Only use on application starting to load persisted workflow (state are PAUSED or FAILED only) |
List<ProcessWorkflow> |
findAllProcessWorkflow(Integer tenantId)
Retrieves All the workflow process for monitoring purpose The final business scope of this feature is likely to
be redefined, to match the future need
|
ProcessWorkflow |
findOneProcessWorkflow(String processId,
Integer tenantId)
Gets Process Workflow by ID
|
Map<Integer,Map<String,ProcessWorkflow>> |
getWorkFlowList()
getter of WorkflowList
|
ProcessWorkflow |
initProcessWorkflow(WorkFlow workflow,
String containerName,
LogbookTypeProcess logbookTypeProcess,
Integer tenantId,
String contextId)
Allows a process to be initialized
|
void |
updateStep(String processId,
String uniqueId,
long elementToProcessOrProcessed,
boolean elementProcessed,
Integer tenantId)
Update a step in a workflow, knowing its unique id
|
ProcessWorkflow initProcessWorkflow(WorkFlow workflow, String containerName, LogbookTypeProcess logbookTypeProcess, Integer tenantId, String contextId)
workflow
- the workflow to initcontainerName
- : null not allowed , the name of the container to be processedlogbookTypeProcess
- LogbookTypeProcess
tenantId
- the working tenantcontextId
- the context IDLogbookTypeProcess
void updateStep(String processId, String uniqueId, long elementToProcessOrProcessed, boolean elementProcessed, Integer tenantId)
processId
- the id of the process to be updateduniqueId
- the unique Id of the stepelementToProcessOrProcessed
- the number of element to be processedelementProcessed
- if a new element has been processedtenantId
- the working tenantProcessingException
- if the step does not existProcessWorkflow findOneProcessWorkflow(String processId, Integer tenantId) throws WorkflowNotFoundException
processId
- the process idtenantId
- the working tenantProcessWorkflow
WorkflowNotFoundException
- thrown when process workflow not foundList<ProcessWorkflow> findAllProcessWorkflow(Integer tenantId)
tenantId
- the working tenantvoid addToWorkflowList(ProcessWorkflow processWorkflow)
processWorkflow
- the loaded persisted process to addMap<Integer,Map<String,ProcessWorkflow>> getWorkFlowList()
Copyright © 2018 Vitam. All rights reserved.