public class TriageGovernanceContext extends GovernanceContext
| Constructor and Description |
|---|
TriageGovernanceContext(String userId,
String governanceActionGUID,
String requestType,
Map<String,String> requestParameters,
List<RequestSourceElement> requestSourceElements,
List<ActionTargetElement> actionTargetElements,
OpenMetadataClient openMetadataStore)
Constructor sets up the key parameters for processing the request to the governance action service.
|
| Modifier and Type | Method and Description |
|---|---|
String |
openToDo(String toDoQualifiedName,
String title,
String instructions,
int priority,
Date dueDate,
String assignTo)
Create a To Do request for someone to work on.
|
getActionTargetElements, getCompletionStatus, getOpenMetadataStore, getRequestParameters, getRequestSourceElements, getRequestType, recordCompletionStatus, recordCompletionStatus, recordCompletionStatus, toString, updateActionTargetStatuspublic TriageGovernanceContext(String userId, String governanceActionGUID, String requestType, Map<String,String> requestParameters, List<RequestSourceElement> requestSourceElements, List<ActionTargetElement> actionTargetElements, OpenMetadataClient openMetadataStore)
userId - calling usergovernanceActionGUID - unique identifier of the governance action that triggered this governance servicerequestType - unique identifier of the asset that the annotations should be attached torequestParameters - name-value properties to control the governance action servicerequestSourceElements - metadata elements associated with the request to the governance action serviceactionTargetElements - metadata elements that need to be worked on by the governance action serviceopenMetadataStore - client to the metadata store for use by the governance action servicepublic String openToDo(String toDoQualifiedName, String title, String instructions, int priority, Date dueDate, String assignTo) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
toDoQualifiedName - unique name for the to do. (Could be the engine name and a guid?)title - short meaningful phrase for the person receiving the requestinstructions - further details on what to dopriority - priority value (based on organization's scale)dueDate - date/time this needs to be completedassignTo - qualified name of the PersonRole element for the recipientInvalidParameterException - either todoQualifiedName or assignedTo are null or not recognizedUserNotAuthorizedException - the governance action service is not authorized to create a to doPropertyServerException - there is a problem connecting to (or inside) the metadata storeCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.