Class ProcessDataAccessImpl

  • All Implemented Interfaces:
    ProcessDataAccess

    public class ProcessDataAccessImpl
    extends java.lang.Object
    implements ProcessDataAccess
    ProcessMonitoringImpl class implementing the ProcessMonitoring Persists processWorkflow object (to json) at each step in process/ name as .json Remove this file at the end (completed, failed state)
    • Method Detail

      • getInstance

        public static ProcessDataAccessImpl getInstance()
        Get the Process Monitoring instance
        Returns:
        the ProcessMonitoring instance
      • updateStep

        public void updateStep​(java.lang.String operationId,
                               java.lang.String uniqueStepId,
                               long elementToProcessOrProcessed,
                               boolean elementProcessed,
                               java.lang.Integer tenantId)
        Description copied from interface: ProcessDataAccess
        Update a step in a workflow, knowing its unique id
        Specified by:
        updateStep in interface ProcessDataAccess
        Parameters:
        operationId - the id of the process to be updated
        uniqueStepId - 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
      • clearWorkflow

        public void clearWorkflow()
      • findAllProcessWorkflow

        public java.util.List<ProcessWorkflow> findAllProcessWorkflow​(java.lang.Integer tenantId)
        Description copied from interface: ProcessDataAccess
        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
        Specified by:
        findAllProcessWorkflow in interface ProcessDataAccess
        Parameters:
        tenantId - the working tenant
        Returns:
        All the workflow process details
      • addToWorkflowList

        public void addToWorkflowList​(ProcessWorkflow processWorkflow)
        Description copied from interface: ProcessDataAccess
        Add process to Workflow
        Only use on application starting to load persisted workflow (state are PAUSED or FAILED only)
        Specified by:
        addToWorkflowList in interface ProcessDataAccess
        Parameters:
        processWorkflow - the loaded persisted process to add