Interface GovernanceProcessingInterface
-
public interface GovernanceProcessingInterfaceGovernanceProcessingInterface provides support for the execution of Governance Action Processes through Governance Actions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclaimGovernanceAction(String userId, String governanceActionGUID)Request that execution of a governance action is allocated to the caller.List<GovernanceActionElement>findGovernanceActions(String userId, String searchString, int startFrom, int pageSize)Retrieve the list of governance action metadata elements that contain the search string.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.GovernanceActionElementgetGovernanceAction(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.List<GovernanceActionElement>getGovernanceActionsByName(String userId, String name, int startFrom, int pageSize)Retrieve the list of governance action metadata elements with a matching qualified or display name.StringinitiateGovernanceAction(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 processName, String requestSourceName, 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.StringinitiateGovernanceActionProcess(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.voidrecordCompletionStatus(String userId, String governanceActionGUID, Map<String,String> requestParameters, CompletionStatus status, List<String> outputGuards, List<NewActionTarget> newActionTargets, String completionMessage)Declare that all the processing for the governance action service is finished and the status of the work.voidupdateActionTargetStatus(String userId, String actionTargetGUID, GovernanceActionStatus status, Date startDate, Date completionDate, String completionMessage)Update the status of a specific action target.voidupdateGovernanceActionStatus(String userId, String governanceActionGUID, GovernanceActionStatus governanceActionStatus)Update the status of the governance action - providing the caller is permitted.
-
-
-
Method Detail
-
initiateGovernanceAction
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 processName, String requestSourceName, String originatorServiceName, String originatorEngineName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a governance action in the metadata store which will trigger the governance action service associated with the supplied request type. The governance action remains to act as a record of the actions taken for auditing.- Parameters:
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 serviceprocessName- name of the process that this action is a part ofrequestSourceName- source of the requestoriginatorServiceName- 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).- Returns:
- unique identifier of the governance action
- Throws:
InvalidParameterException- null qualified nameUserNotAuthorizedException- this governance action service is not authorized to create a governance actionPropertyServerException- there is a problem with the metadata store
-
initiateGovernanceActionProcess
String 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
Using the named governance action process as a template, initiate a chain of governance actions.- Parameters:
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).- Returns:
- unique identifier of the first governance action of the process
- Throws:
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 store
-
getGovernanceAction
GovernanceActionElement getGovernanceAction(String userId, String governanceActionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Request the status of an executing governance action request.- Parameters:
userId- identifier of calling usergovernanceActionGUID- identifier of the governance action request.- Returns:
- status enum
- Throws:
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.
-
claimGovernanceAction
void claimGovernanceAction(String userId, String governanceActionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Request that execution of a governance action is allocated to the caller.- Parameters:
userId- identifier of calling usergovernanceActionGUID- identifier of the governance action request.- Throws:
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.
-
getGovernanceActions
List<GovernanceActionElement> getGovernanceActions(String userId, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the governance actions that are known to the server.- Parameters:
userId- userId of callerstartFrom- starting from elementpageSize- maximum elements to return- Returns:
- list of governance action elements
- Throws:
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.
-
getActiveGovernanceActions
List<GovernanceActionElement> getActiveGovernanceActions(String userId, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the governance actions that are still in process.- Parameters:
userId- userId of callerstartFrom- starting from elementpageSize- maximum elements to return- Returns:
- list of governance action elements
- Throws:
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.
-
getActiveClaimedGovernanceActions
List<GovernanceActionElement> getActiveClaimedGovernanceActions(String userId, String governanceEngineGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the governance actions that are still in process and that have been claimed by this caller's userId. This call is used when the caller restarts.- Parameters:
userId- userId of callergovernanceEngineGUID- unique identifier of governance enginestartFrom- starting from elementpageSize- maximum elements to return- Returns:
- list of governance action elements
- Throws:
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.
-
findGovernanceActions
List<GovernanceActionElement> findGovernanceActions(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of governance action metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
userId- calling usersearchString- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getGovernanceActionsByName
List<GovernanceActionElement> getGovernanceActionsByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of governance action metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
userId- calling username- name to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
updateActionTargetStatus
void updateActionTargetStatus(String userId, String actionTargetGUID, GovernanceActionStatus status, Date startDate, Date completionDate, String completionMessage) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the status of a specific action target. By default, these values are derived from the values for the governance action service. However, if the governance action service has to process name target elements, then setting the status on each individual target will show the progress of the governance action service.- Parameters:
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.completionMessage- message to describe completion results or reasons for failure- Throws:
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 store
-
updateGovernanceActionStatus
void updateGovernanceActionStatus(String userId, String governanceActionGUID, GovernanceActionStatus governanceActionStatus) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the status of the governance action - providing the caller is permitted.- Parameters:
userId- identifier of calling usergovernanceActionGUID- identifier of the governance action requestgovernanceActionStatus- new status enum- Throws:
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.
-
recordCompletionStatus
void recordCompletionStatus(String userId, String governanceActionGUID, Map<String,String> requestParameters, CompletionStatus status, List<String> outputGuards, List<NewActionTarget> newActionTargets, String completionMessage) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Declare that all the processing for the governance action service is finished and the status of the work.- Parameters:
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 servicecompletionMessage- message to describe completion results or reasons for failure- Throws:
InvalidParameterException- 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 store
-
-