public final class FlowManager extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FlowManager.AutomationFlowMonitorValuesProvider
Automation flow values provider.
|
Modifier and Type | Method and Description |
---|---|
static void |
deleteFlowsById(Collection<String> ids,
String serviceInstanceId)
Delete flows by identifiers.
|
static void |
deleteFlowsById(String serviceInstanceId,
String... ids)
Delete flows by identifiers.
|
static void |
deleteFlowsByServiceInstanceId(String serviceInstanceId)
Delete all flows entry by service instance identifier.
|
static Collection<FlowEntry> |
getAllFlows()
Returns all flows.
|
static FlowEntry |
getById(String id)
Returns the flow entry by the given identifier.
|
static FlowEntry |
getByNameAndServiceInstance(String name,
String serviceInstanceId)
Returns flow entry by name and service instance identifiers.
|
static Collection<FlowEntry> |
getByServiceInstance(String serviceInstanceId)
Returns all flows entries by service instance identifiers.
|
static void |
onEvent(IMonitorEvent event,
Deque<IMonitorValuesProvider> monitoringValues,
Document document)
Receives an event from monitor framework
|
static void |
removeFlowsWaitingForEventCache(String eventId)
Remove the cache item for event identifier in flows waiting for event cache.
|
static FlowEntry |
saveAs(String name,
Flow flow,
String serviceInstanceId)
Save the given flow.
|
static void |
scheduleClearCache()
Schedule clear cache flows.
|
public static Collection<FlowEntry> getAllFlows() throws PortalException
PortalException
public static void scheduleClearCache() throws PortalException
PortalException
public static void onEvent(IMonitorEvent event, Deque<IMonitorValuesProvider> monitoringValues, Document document) throws PortalException
event
- the eventmonitoringValues
- the event datadocument
- the event data documentPortalException
public static FlowEntry saveAs(String name, Flow flow, String serviceInstanceId) throws PortalException
name
- the flow nameflow
- the flowserviceInstanceId
- the service instance identifierPortalException
- if the flow validation detects any problem.public static void removeFlowsWaitingForEventCache(String eventId)
eventId
- the event identifier.public static void deleteFlowsByServiceInstanceId(String serviceInstanceId) throws PortalException
serviceInstanceId
- the service instance identifier.PortalException
public static void deleteFlowsById(String serviceInstanceId, String... ids) throws PortalException
ids
- the flow identifiers.PortalException
public static void deleteFlowsById(Collection<String> ids, String serviceInstanceId) throws PortalException
ids
- the flow identifiers.serviceInstanceId
- the service instance identifier.PortalException
public static FlowEntry getByNameAndServiceInstance(String name, String serviceInstanceId) throws PortalException
name
- the name.serviceInstanceId
- service instance identifiers.null
if no such flow entry was found.PortalException
public static Collection<FlowEntry> getByServiceInstance(String serviceInstanceId)
serviceInstanceId
- service instance identifiers.LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.