Interface GovernanceCompletionInterface
- All Known Implementing Classes:
GovernanceContextClient
,GovernanceContextClient
,GovernanceContextClientBase
public interface GovernanceCompletionInterface
GovernanceCompletionInterface provides support for completing a governance service.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
claimEngineAction
(String userId, String engineActionGUID) Request that execution of a engine action is allocated to the caller.getActiveClaimedEngineActions
(String userId, String governanceEngineGUID, int startFrom, int pageSize) Retrieve the engine actions that are still in process and that have been claimed by this caller's userId.void
recordCompletionStatus
(String userId, String engineActionGUID, 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.void
updateActionTargetStatus
(String userId, String actionTargetGUID, EngineActionStatus status, Date startDate, Date completionDate, String completionMessage) Update the status of a specific action target.void
updateEngineActionStatus
(String userId, String engineActionGUID, EngineActionStatus engineActionStatus) Update the status of the engine action - providing the caller is permitted.
-
Method Details
-
updateEngineActionStatus
void updateEngineActionStatus(String userId, String engineActionGUID, EngineActionStatus engineActionStatus) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the status of the engine action - providing the caller is permitted.- Parameters:
userId
- identifier of calling userengineActionGUID
- identifier of the engine action requestengineActionStatus
- 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.
-
getActiveClaimedEngineActions
List<EngineActionElement> getActiveClaimedEngineActions(String userId, String governanceEngineGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the engine 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 engine 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.
-
claimEngineAction
void claimEngineAction(String userId, String engineActionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Request that execution of a engine action is allocated to the caller.- Parameters:
userId
- identifier of calling userengineActionGUID
- identifier of the engine 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.
-
updateActionTargetStatus
void updateActionTargetStatus(String userId, String actionTargetGUID, EngineActionStatus 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 target element.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
-
recordCompletionStatus
void recordCompletionStatus(String userId, String engineActionGUID, Map<String, String> requestParameters, CompletionStatus status, List<String> outputGuards, List<NewActionTarget> newActionTargets, String completionMessage) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionDeclare that all the processing for the governance action service is finished and the status of the work.- Parameters:
userId
- caller's userIdengineActionGUID
- unique identifier of the associated engine actionrequestParameters
- 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
-