Class LightweightWorkflowLock

  • public class LightweightWorkflowLock
    extends java.lang.Object
    Helper class for checking concurrent non completed (running / paused) workflows. Provides lightweight lock implementation (at most one process can run in parallel).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<ProcessDetail> listConcurrentWorkflows​(java.util.List<java.lang.String> workflowIds, java.lang.String currentProcessId)
      Returns all concurrent non completed (running / paused) workflows.
      • Methods inherited from class java.lang.Object

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

      • LightweightWorkflowLock

        public LightweightWorkflowLock()
        Default constructor
    • Method Detail

      • listConcurrentWorkflows

        public java.util.List<ProcessDetail> listConcurrentWorkflows​(java.util.List<java.lang.String> workflowIds,
                                                                     java.lang.String currentProcessId)
                                                              throws VitamClientException
        Returns all concurrent non completed (running / paused) workflows.
        workflowIds - the workflow Ids to check
        currentProcessId - the current process id (filtred from result)
        the list of concurrent workflows if any, or an empty list if no concurrent workflow is found.