Class FlowManager


  • public final class FlowManager
    extends Object
    Flow manager.
    Since:
    12.0.0
    Version:
    $Revision: 24894 $ $Date: 2022-03-22 09:07:07 -0300 (Tue, 22 Mar 2022) $
    • Method Detail

      • scheduleClearCache

        public static void scheduleClearCache()
                                       throws PortalException
        Schedule clear cache flows.
        Throws:
        PortalException
        Since:
        12.0.0
      • saveAs

        public static FlowEntry saveAs​(String name,
                                       Flow flow,
                                       String serviceInstanceId)
                                throws PortalException
        Save the given flow.
        Parameters:
        name - the flow name
        flow - the flow
        serviceInstanceId - the service instance identifier
        Returns:
        the saved flow
        Throws:
        PortalException - if the flow validation detects any problem.
        Since:
        12.0.0
      • removeFlowsWaitingForEventCache

        public static void removeFlowsWaitingForEventCache​(String eventId)
        Remove the cache item for event identifier in flows waiting for event cache.
        Parameters:
        eventId - the event identifier.
        Since:
        12.2.0
      • deleteFlowsByServiceInstanceId

        public static void deleteFlowsByServiceInstanceId​(String serviceInstanceId)
                                                   throws PortalException
        Delete all flows entry by service instance identifier.
        Parameters:
        serviceInstanceId - the service instance identifier.
        Throws:
        PortalException
        Since:
        12.0.0
      • deleteFlowsById

        public static void deleteFlowsById​(String serviceInstanceId,
                                           String... ids)
                                    throws PortalException
        Delete flows by identifiers.
        Parameters:
        ids - the flow identifiers.
        Throws:
        PortalException
        Since:
        12.0.0
      • deleteFlowsById

        public static void deleteFlowsById​(Collection<String> ids,
                                           String serviceInstanceId)
                                    throws PortalException
        Delete flows by identifiers.
        Parameters:
        ids - the flow identifiers.
        serviceInstanceId - the service instance identifier.
        Throws:
        PortalException
        Since:
        12.0.0
      • getByNameAndServiceInstance

        public static FlowEntry getByNameAndServiceInstance​(String name,
                                                            String serviceInstanceId)
                                                     throws PortalException
        Returns flow entry by name and service instance identifiers.
        Parameters:
        name - the name.
        serviceInstanceId - service instance identifiers.
        Returns:
        flow entry by name and service instance identifiers or null if no such flow entry was found.
        Throws:
        PortalException
        Since:
        12.0.0
      • getByServiceInstance

        public static Collection<FlowEntry> getByServiceInstance​(String serviceInstanceId)
        Returns all flows entries by service instance identifiers.
        Parameters:
        serviceInstanceId - service instance identifiers.
        Returns:
        all flows entries by service instance identifiers.
        Since:
        12.0.0
      • getById

        public static FlowEntry getById​(String id)
        Returns the flow entry by the given identifier.
        Parameters:
        id - the flow entry identifier.
        Returns:
        the flow entry by the given identifier
        Since:
        12.0.0