Class ProcessPopulator


  • public class ProcessPopulator
    extends java.lang.Object
    Temporary process populator

    find and populates workflow java object

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void loadWorkflow​(java.util.Map<java.lang.String,​WorkFlow> poolWorkflows)
      loadWorkflow, find and load all workflows
      static java.util.Optional<WorkFlow> populate​(java.io.InputStream workflowFileStream)
      populate, create workflow object (parse JSON file)
      static java.util.Optional<WorkFlow> populate​(java.lang.String workflowFile)  
      static void reloadWorkflow​(java.util.Map<java.lang.String,​WorkFlow> poolWorkflows, java.lang.Long fromDate)
      reloadWorkflow, find and load new (added) workflow objects
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • loadWorkflow

        public static void loadWorkflow​(java.util.Map<java.lang.String,​WorkFlow> poolWorkflows)
        loadWorkflow, find and load all workflows
        Parameters:
        poolWorkflows - map to populate with workflows
      • reloadWorkflow

        public static void reloadWorkflow​(java.util.Map<java.lang.String,​WorkFlow> poolWorkflows,
                                          java.lang.Long fromDate)
        reloadWorkflow, find and load new (added) workflow objects
        Parameters:
        poolWorkflows - poolWorkflows map of workflows to update
        fromDate - datetime on milliseconds to filter from, if null no filter is applied
      • populate

        public static java.util.Optional<WorkFlow> populate​(java.io.InputStream workflowFileStream)
        populate, create workflow object (parse JSON file)
        Parameters:
        workflowFileStream - the workflow file (path)
        Returns:
        workflow's object
      • populate

        public static java.util.Optional<WorkFlow> populate​(java.lang.String workflowFile)