public class ProcessPopulator extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
loadWorkflows(Map<String,WorkFlow> poolWorkflows)
loadWorkflows, find and load all workflows
|
static WorkFlow |
populate(String workflowFile)
populate, create workflow object (parse JSON file)
|
static void |
reloadWorkflows(Map<String,WorkFlow> poolWorkflows,
Long fromDate)
reloadWorkflows, find and load new (added) workflow objects
|
public static void loadWorkflows(Map<String,WorkFlow> poolWorkflows) throws WorkflowNotFoundException
poolWorkflows - map to populate with workflowsWorkflowNotFoundException - when workflows folder is not found or unable to read a workflow filepublic static void reloadWorkflows(Map<String,WorkFlow> poolWorkflows, Long fromDate) throws WorkflowNotFoundException
poolWorkflows - poolWorkflows map of workflows to updatefromDate - datetime on milliseconds to filter from, if null no filter is appliedWorkflowNotFoundException - when workflows folder is not found or unable to read a workflow filepublic static WorkFlow populate(String workflowFile) throws WorkflowNotFoundException
workflowFile - the workflow file (path)WorkflowNotFoundException - throws when workflow file not found or unable to parse itCopyright © 2018 Vitam. All rights reserved.