public interface GovernanceProcessingInterface
| Modifier and Type | Method and Description |
|---|---|
void |
claimGovernanceAction(String userId,
String governanceActionGUID)
Request that execution of a governance action is allocated to the caller.
|
String |
createIncidentReport(String userId,
String qualifiedName,
int domainIdentifier,
String background,
List<IncidentImpactedElement> impactedResources,
List<IncidentDependency> previousIncidents,
Map<String,Integer> incidentClassifiers,
Map<String,String> additionalProperties,
String originatorGUID)
Create an incident report to capture the situation detected by this governance action service.
|
List<GovernanceActionElement> |
getActiveClaimedGovernanceActions(String userId,
String governanceEngineGUID,
int startFrom,
int pageSize)
Retrieve the governance actions that are still in process and that have been claimed by this caller's userId.
|
List<GovernanceActionElement> |
getActiveGovernanceActions(String userId,
int startFrom,
int pageSize)
Retrieve the governance actions that are still in process.
|
GovernanceActionElement |
getGovernanceAction(String userId,
String governanceActionGUID)
Request the status of an executing governance action request.
|
List<GovernanceActionElement> |
getGovernanceActions(String userId,
int startFrom,
int pageSize)
Retrieve the governance actions that are known to the server.
|
String |
initiateGovernanceAction(String userId,
String qualifiedName,
int domainIdentifier,
String displayName,
String description,
List<String> requestSourceGUIDs,
List<NewActionTarget> actionTargets,
List<String> receivedGuards,
Date startTime,
String governanceEngineName,
String requestType,
Map<String,String> requestParameters,
String originatorServiceName,
String originatorEngineName)
Create a governance action in the metadata store which will trigger the governance action service
associated with the supplied request type.
|
String |
initiateGovernanceActionProcess(String userId,
String processQualifiedName,
List<String> requestSourceGUIDs,
List<NewActionTarget> actionTargets,
Date startTime,
Map<String,String> requestParameters,
String originatorServiceName,
String originatorEngineName)
Using the named governance action process as a template, initiate a chain of governance actions.
|
void |
recordCompletionStatus(String userId,
String governanceActionGUID,
Map<String,String> requestParameters,
CompletionStatus status,
List<String> outputGuards,
List<NewActionTarget> newActionTargets)
Declare that all of the processing for the governance action service is finished and the status of the work.
|
void |
updateActionTargetStatus(String userId,
String actionTargetGUID,
GovernanceActionStatus status,
Date startDate,
Date completionDate)
Update the status of a specific action target.
|
void |
updateGovernanceActionStatus(String userId,
String governanceActionGUID,
GovernanceActionStatus governanceActionStatus)
Update the status of the governance action - providing the caller is permitted.
|
String initiateGovernanceAction(String userId, String qualifiedName, int domainIdentifier, String displayName, String description, List<String> requestSourceGUIDs, List<NewActionTarget> actionTargets, List<String> receivedGuards, Date startTime, String governanceEngineName, String requestType, Map<String,String> requestParameters, String originatorServiceName, String originatorEngineName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - caller's userIdqualifiedName - unique identifier to give this governance actiondomainIdentifier - governance domain associated with this action (0=ALL)displayName - display name for this actiondescription - description for this actionrequestSourceGUIDs - request source elements for the resulting governance action serviceactionTargets - list of action target names to GUIDs for the resulting governance action servicereceivedGuards - list of guards to initiate the governance actionstartTime - future start time or null for "as soon as possible"governanceEngineName - name of the governance engine that should execute the requestrequestType - request type to identify the governance action service to runrequestParameters - properties to pass to the governance action serviceoriginatorServiceName - unique name of the requesting governance service (if initiated by a governance engine).originatorEngineName - optional unique name of the requesting governance engine (if initiated by a governance engine).InvalidParameterException - null qualified nameUserNotAuthorizedException - this governance action service is not authorized to create a governance actionPropertyServerException - there is a problem with the metadata storeString initiateGovernanceActionProcess(String userId, String processQualifiedName, List<String> requestSourceGUIDs, List<NewActionTarget> actionTargets, Date startTime, Map<String,String> requestParameters, String originatorServiceName, String originatorEngineName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - caller's userIdprocessQualifiedName - unique name of the governance action process to userequestSourceGUIDs - request source elements for the resulting governance action serviceactionTargets - map of action target names to GUIDs for the resulting governance action servicestartTime - future start time or null for "as soon as possible"requestParameters - request properties to be passed to the first governance actionoriginatorServiceName - unique name of the requesting governance service (if initiated by a governance engine).originatorEngineName - optional unique name of the governance engine (if initiated by a governance engine).InvalidParameterException - null or unrecognized qualified name of the processUserNotAuthorizedException - this governance action service is not authorized to create a governance action processPropertyServerException - there is a problem with the metadata storeString createIncidentReport(String userId, String qualifiedName, int domainIdentifier, String background, List<IncidentImpactedElement> impactedResources, List<IncidentDependency> previousIncidents, Map<String,Integer> incidentClassifiers, Map<String,String> additionalProperties, String originatorGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - caller's userIdqualifiedName - unique identifier to give this new incident reportdomainIdentifier - governance domain associated with this action (0=ALL)background - description of the situationimpactedResources - details of the resources impacted by this situationpreviousIncidents - links to previous incident reports covering this situationincidentClassifiers - initial classifiers for the incident reportadditionalProperties - additional arbitrary properties for the incident reportsoriginatorGUID - the unique identifier of the person or process that created the incidentInvalidParameterException - null or non-unique qualified name for the incident reportUserNotAuthorizedException - this governance action service is not authorized to create a incident reportPropertyServerException - there is a problem with the metadata storeGovernanceActionElement getGovernanceAction(String userId, String governanceActionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling usergovernanceActionGUID - identifier of the governance action request.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem detected by the metadata store.void claimGovernanceAction(String userId, String governanceActionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling usergovernanceActionGUID - identifier of the governance action request.InvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem detected by the metadata store.List<GovernanceActionElement> getGovernanceActions(String userId, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - userId of callerstartFrom - starting from elementpageSize - maximum elements to returnInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem detected by the metadata store.List<GovernanceActionElement> getActiveGovernanceActions(String userId, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - userId of callerstartFrom - starting from elementpageSize - maximum elements to returnInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem detected by the metadata store.List<GovernanceActionElement> getActiveClaimedGovernanceActions(String userId, String governanceEngineGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - userId of callergovernanceEngineGUID - unique identifier of governance enginestartFrom - starting from elementpageSize - maximum elements to returnInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem detected by the metadata store.void updateActionTargetStatus(String userId, String actionTargetGUID, GovernanceActionStatus status, Date startDate, Date completionDate) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - caller's userIdactionTargetGUID - unique identifier of the governance action service.status - status enum to show its progressstartDate - date/time that the governance action service started processing the targetcompletionDate - date/time that the governance process completed processing this target.InvalidParameterException - the action target GUID is not recognizedUserNotAuthorizedException - the governance action service is not authorized to update the action target propertiesPropertyServerException - there is a problem connecting to the metadata storevoid updateGovernanceActionStatus(String userId, String governanceActionGUID, GovernanceActionStatus governanceActionStatus) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling usergovernanceActionGUID - identifier of the governance action requestgovernanceActionStatus - new status enumInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem detected by the metadata store.void recordCompletionStatus(String userId, String governanceActionGUID, Map<String,String> requestParameters, CompletionStatus status, List<String> outputGuards, List<NewActionTarget> newActionTargets) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - caller's userIdgovernanceActionGUID - unique identifier of the governance action to updaterequestParameters - request properties from the caller (will be passed onto any follow on actions)status - completion status enum valueoutputGuards - optional guard strings for triggering subsequent action(s)newActionTargets - list of action target names to GUIDs for the resulting governance action serviceInvalidParameterException - the completion status is nullUserNotAuthorizedException - the governance action service is not authorized to update the governance action service statusPropertyServerException - there is a problem connecting to the metadata storeCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.