Interface ProcessDataAccess

  • All Known Implementing Classes:
    ProcessDataAccessImpl

    public interface ProcessDataAccess
    Process Data Access Interface offers services
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addToWorkflowList​(ProcessWorkflow processWorkflow)
      Add process to Workflow
      Only use on application starting to load persisted workflow (state are PAUSED or FAILED only)
      java.util.List<ProcessWorkflow> findAllProcessWorkflow​(java.lang.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​(java.lang.String processId, java.lang.Integer tenantId)
      Gets Process Workflow by ID
      java.util.Map<java.lang.Integer,​java.util.Map<java.lang.String,​ProcessWorkflow>> getWorkFlowList()
      getter of WorkflowList
      ProcessWorkflow initProcessWorkflow​(WorkFlow workflow, java.lang.String containerName)
      Allows a process to be initialized
      void updateStep​(java.lang.String processId, java.lang.String uniqueId, long elementToProcessOrProcessed, boolean elementProcessed, java.lang.Integer tenantId)
      Update a step in a workflow, knowing its unique id
    • Method Detail

      • initProcessWorkflow

        ProcessWorkflow initProcessWorkflow​(WorkFlow workflow,
                                            java.lang.String containerName)
        Allows a process to be initialized
        Parameters:
        workflow - the workflow to init
        containerName - : null not allowed , the name of the container to be processed
        Returns:
        LogbookTypeProcess
      • updateStep

        void updateStep​(java.lang.String processId,
                        java.lang.String uniqueId,
                        long elementToProcessOrProcessed,
                        boolean elementProcessed,
                        java.lang.Integer tenantId)
        Update a step in a workflow, knowing its unique id
        Parameters:
        processId - the id of the process to be updated
        uniqueId - the unique Id of the step
        elementToProcessOrProcessed - the number of element to be processed
        elementProcessed - if a new element has been processed
        tenantId - the working tenant
        Throws:
        ProcessingException - if the step does not exist
      • findAllProcessWorkflow

        java.util.List<ProcessWorkflow> findAllProcessWorkflow​(java.lang.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
        Parameters:
        tenantId - the working tenant
        Returns:
        All the workflow process details
      • addToWorkflowList

        void addToWorkflowList​(ProcessWorkflow processWorkflow)
        Add process to Workflow
        Only use on application starting to load persisted workflow (state are PAUSED or FAILED only)
        Parameters:
        processWorkflow - the loaded persisted process to add
      • getWorkFlowList

        java.util.Map<java.lang.Integer,​java.util.Map<java.lang.String,​ProcessWorkflow>> getWorkFlowList()
        getter of WorkflowList
        Returns: