Class GovernanceActionProcessClient
java.lang.Object
org.odpi.openmetadata.accessservices.governanceengine.client.GovernanceActionProcessClient
- All Implemented Interfaces:
org.odpi.openmetadata.accessservices.governanceengine.api.GovernanceActionProcessInterface
public class GovernanceActionProcessClient
extends Object
implements org.odpi.openmetadata.accessservices.governanceengine.api.GovernanceActionProcessInterface
GovernanceEngineClient sits in the governance context of a governance action service when it is running in the engine host OMAG server.
It is however shared by all the governance action services running in an engine service so that we only need one connector to the topic
listener for the watchdog governance services.
-
Constructor Summary
ConstructorsConstructorDescriptionGovernanceActionProcessClient(String serverName, String serverPlatformURLRoot) Create a new client with no authentication embedded in the HTTP request.GovernanceActionProcessClient(String serverName, String serverPlatformURLRoot, String serverUserId, String serverPassword) Create a new client that passes userId and password in each HTTP request.GovernanceActionProcessClient(String serverName, String serverPlatformURLRoot, GovernanceEngineRESTClient restClient, int maxPageSize) Create a new client that passes userId and password in each HTTP request. -
Method Summary
Modifier and TypeMethodDescriptioncreateGovernanceActionProcess(String userId, org.odpi.openmetadata.accessservices.governanceengine.properties.GovernanceActionProcessProperties processProperties, org.odpi.openmetadata.accessservices.governanceengine.properties.ProcessStatus initialStatus) Create a new metadata element to represent a governance action process.createGovernanceActionType(String userId, org.odpi.openmetadata.accessservices.governanceengine.properties.GovernanceActionTypeProperties actionTypeProperties) Create a new metadata element to represent a governance action type.List<org.odpi.openmetadata.accessservices.governanceengine.metadataelements.GovernanceActionProcessElement>findGovernanceActionProcesses(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of governance action process metadata elements that contain the search string.List<org.odpi.openmetadata.accessservices.governanceengine.metadataelements.GovernanceActionTypeElement>findGovernanceActionTypes(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of governance action type metadata elements that contain the search string.org.odpi.openmetadata.accessservices.governanceengine.metadataelements.GovernanceActionTypeElementgetFirstActionType(String userId, String processGUID) Return the governance action type that is the first step in a governance action process.org.odpi.openmetadata.accessservices.governanceengine.metadataelements.GovernanceActionProcessElementgetGovernanceActionProcessByGUID(String userId, String processGUID) Retrieve the governance action process metadata element with the supplied unique identifier.List<org.odpi.openmetadata.accessservices.governanceengine.metadataelements.GovernanceActionProcessElement>getGovernanceActionProcessesByName(String userId, String name, int startFrom, int pageSize) Retrieve the list of governance action process metadata elements with a matching qualified or display name.org.odpi.openmetadata.accessservices.governanceengine.metadataelements.GovernanceActionTypeElementgetGovernanceActionTypeByGUID(String userId, String actionTypeGUID) Retrieve the governance action type metadata element with the supplied unique identifier.List<org.odpi.openmetadata.accessservices.governanceengine.metadataelements.GovernanceActionTypeElement>getGovernanceActionTypesByName(String userId, String name, int startFrom, int pageSize) Retrieve the list of governance action type metadata elements with a matching qualified or display name.List<org.odpi.openmetadata.accessservices.governanceengine.metadataelements.NextGovernanceActionTypeElement>getNextGovernanceActionTypes(String userId, String actionTypeGUID, int startFrom, int pageSize) Return the lust of next action type defined for the governance action process.voidpublishGovernanceActionProcess(String userId, String processGUID) Update the zones for the asset so that it becomes visible to consumers.voidremoveFirstActionType(String userId, String processGUID) Remove the link between a governance process and that governance action type that defines its first step.voidremoveGovernanceActionProcess(String userId, String processGUID) Remove the metadata element representing a governance action process.voidremoveGovernanceActionType(String userId, String actionTypeGUID) Remove the metadata element representing a governance action type.voidremoveNextActionType(String userId, String actionLinkGUID) Remove a follow-on step from a governance action process.voidsetupFirstActionType(String userId, String processGUID, String actionTypeGUID, String guard) Set up a link between a governance action process and a governance action type.setupNextActionType(String userId, String currentActionTypeGUID, String nextActionTypeGUID, String guard, boolean mandatoryGuard, boolean ignoreMultipleTriggers) Add a link between two governance action types to show that one follows on from the other when a governance action process is executing.voidupdateGovernanceActionProcess(String userId, String processGUID, boolean isMergeUpdate, org.odpi.openmetadata.accessservices.governanceengine.properties.ProcessStatus processStatus, org.odpi.openmetadata.accessservices.governanceengine.properties.GovernanceActionProcessProperties processProperties) Update the metadata element representing a governance action process.voidupdateGovernanceActionType(String userId, String actionTypeGUID, boolean isMergeUpdate, org.odpi.openmetadata.accessservices.governanceengine.properties.GovernanceActionTypeProperties actionTypeProperties) Update the metadata element representing a governance action type.voidupdateNextActionType(String userId, String nextActionLinkGUID, String guard, boolean mandatoryGuard, boolean ignoreMultipleTriggers) Update the properties of the link between two governance action types that shows that one follows on from the other when a governance action process is executing.voidwithdrawGovernanceActionProcess(String userId, String processGUID) Update the zones for the asset so that it is no longer visible to consumers.
-
Constructor Details
-
GovernanceActionProcessClient
public GovernanceActionProcessClient(String serverName, String serverPlatformURLRoot) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Create a new client with no authentication embedded in the HTTP request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST services- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
GovernanceActionProcessClient
public GovernanceActionProcessClient(String serverName, String serverPlatformURLRoot, String serverUserId, String serverPassword) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST servicesserverUserId- caller's userId embedded in all HTTP requestsserverPassword- caller's userId embedded in all HTTP requests- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
GovernanceActionProcessClient
public GovernanceActionProcessClient(String serverName, String serverPlatformURLRoot, GovernanceEngineRESTClient restClient, int maxPageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST servicesrestClient- pre-initialized REST clientmaxPageSize- pre-initialized parameter limit- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem with the information about the remote OMAS
-
-
Method Details
-
createGovernanceActionProcess
public String createGovernanceActionProcess(String userId, org.odpi.openmetadata.accessservices.governanceengine.properties.GovernanceActionProcessProperties processProperties, org.odpi.openmetadata.accessservices.governanceengine.properties.ProcessStatus initialStatus) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a new metadata element to represent a governance action process.- Specified by:
createGovernanceActionProcessin interfaceorg.odpi.openmetadata.accessservices.governanceengine.api.GovernanceActionProcessInterface- Parameters:
userId- calling userprocessProperties- properties about the process to storeinitialStatus- status value for the new process (default = ACTIVE)- Returns:
- unique identifier of the new process
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
updateGovernanceActionProcess
public void updateGovernanceActionProcess(String userId, String processGUID, boolean isMergeUpdate, org.odpi.openmetadata.accessservices.governanceengine.properties.ProcessStatus processStatus, org.odpi.openmetadata.accessservices.governanceengine.properties.GovernanceActionProcessProperties processProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the metadata element representing a governance action process.- Specified by:
updateGovernanceActionProcessin interfaceorg.odpi.openmetadata.accessservices.governanceengine.api.GovernanceActionProcessInterface- Parameters:
userId- calling userprocessGUID- unique identifier of the metadata element to updateisMergeUpdate- should the new properties be merged with existing properties (true) or completely replace them (false)?processStatus- new status for the processprocessProperties- new properties for the metadata element- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
publishGovernanceActionProcess
public void publishGovernanceActionProcess(String userId, String processGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the zones for the asset so that it becomes visible to consumers. (The zones are set to the list of zones in the publishedZones option configured for each instance of the Governance Engine OMAS).- Specified by:
publishGovernanceActionProcessin interfaceorg.odpi.openmetadata.accessservices.governanceengine.api.GovernanceActionProcessInterface- Parameters:
userId- calling userprocessGUID- unique identifier of the metadata element to publish- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
withdrawGovernanceActionProcess
public void withdrawGovernanceActionProcess(String userId, String processGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the zones for the asset so that it is no longer visible to consumers. (The zones are set to the list of zones in the defaultZones option configured for each instance of the Governance Engine OMAS. This is the setting when the process is first created).- Specified by:
withdrawGovernanceActionProcessin interfaceorg.odpi.openmetadata.accessservices.governanceengine.api.GovernanceActionProcessInterface- Parameters:
userId- calling userprocessGUID- unique identifier of the metadata element to withdraw- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
removeGovernanceActionProcess
public void removeGovernanceActionProcess(String userId, String processGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the metadata element representing a governance action process.- Specified by:
removeGovernanceActionProcessin interfaceorg.odpi.openmetadata.accessservices.governanceengine.api.GovernanceActionProcessInterface- Parameters:
userId- calling userprocessGUID- unique identifier of the metadata element to remove- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
findGovernanceActionProcesses
public List<org.odpi.openmetadata.accessservices.governanceengine.metadataelements.GovernanceActionProcessElement> findGovernanceActionProcesses(String userId, String searchString, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of governance action process metadata elements that contain the search string. The search string is treated as a regular expression.- Specified by:
findGovernanceActionProcessesin interfaceorg.odpi.openmetadata.accessservices.governanceengine.api.GovernanceActionProcessInterface- 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:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getGovernanceActionProcessesByName
public List<org.odpi.openmetadata.accessservices.governanceengine.metadataelements.GovernanceActionProcessElement> getGovernanceActionProcessesByName(String userId, String name, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of governance action process metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Specified by:
getGovernanceActionProcessesByNamein interfaceorg.odpi.openmetadata.accessservices.governanceengine.api.GovernanceActionProcessInterface- Parameters:
userId- calling username- name to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getGovernanceActionProcessByGUID
public org.odpi.openmetadata.accessservices.governanceengine.metadataelements.GovernanceActionProcessElement getGovernanceActionProcessByGUID(String userId, String processGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the governance action process metadata element with the supplied unique identifier.- Specified by:
getGovernanceActionProcessByGUIDin interfaceorg.odpi.openmetadata.accessservices.governanceengine.api.GovernanceActionProcessInterface- Parameters:
userId- calling userprocessGUID- unique identifier of the requested metadata element- Returns:
- requested metadata element
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
createGovernanceActionType
public String createGovernanceActionType(String userId, org.odpi.openmetadata.accessservices.governanceengine.properties.GovernanceActionTypeProperties actionTypeProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a new metadata element to represent a governance action type.- Specified by:
createGovernanceActionTypein interfaceorg.odpi.openmetadata.accessservices.governanceengine.api.GovernanceActionProcessInterface- Parameters:
userId- calling useractionTypeProperties- properties about the process to store- Returns:
- unique identifier of the new governance action type
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
updateGovernanceActionType
public void updateGovernanceActionType(String userId, String actionTypeGUID, boolean isMergeUpdate, org.odpi.openmetadata.accessservices.governanceengine.properties.GovernanceActionTypeProperties actionTypeProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the metadata element representing a governance action type.- Specified by:
updateGovernanceActionTypein interfaceorg.odpi.openmetadata.accessservices.governanceengine.api.GovernanceActionProcessInterface- Parameters:
userId- calling useractionTypeGUID- unique identifier of the metadata element to updateisMergeUpdate- should the new properties be merged with existing properties (true) or completely replace them (false)?actionTypeProperties- new properties for the metadata element- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
removeGovernanceActionType
public void removeGovernanceActionType(String userId, String actionTypeGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the metadata element representing a governance action type.- Specified by:
removeGovernanceActionTypein interfaceorg.odpi.openmetadata.accessservices.governanceengine.api.GovernanceActionProcessInterface- Parameters:
userId- calling useractionTypeGUID- unique identifier of the metadata element to remove- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
findGovernanceActionTypes
public List<org.odpi.openmetadata.accessservices.governanceengine.metadataelements.GovernanceActionTypeElement> findGovernanceActionTypes(String userId, String searchString, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of governance action type metadata elements that contain the search string. The search string is treated as a regular expression.- Specified by:
findGovernanceActionTypesin interfaceorg.odpi.openmetadata.accessservices.governanceengine.api.GovernanceActionProcessInterface- 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:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getGovernanceActionTypesByName
public List<org.odpi.openmetadata.accessservices.governanceengine.metadataelements.GovernanceActionTypeElement> getGovernanceActionTypesByName(String userId, String name, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of governance action type metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Specified by:
getGovernanceActionTypesByNamein interfaceorg.odpi.openmetadata.accessservices.governanceengine.api.GovernanceActionProcessInterface- Parameters:
userId- calling username- name to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getGovernanceActionTypeByGUID
public org.odpi.openmetadata.accessservices.governanceengine.metadataelements.GovernanceActionTypeElement getGovernanceActionTypeByGUID(String userId, String actionTypeGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the governance action type metadata element with the supplied unique identifier.- Specified by:
getGovernanceActionTypeByGUIDin interfaceorg.odpi.openmetadata.accessservices.governanceengine.api.GovernanceActionProcessInterface- Parameters:
userId- calling useractionTypeGUID- unique identifier of the governance action type- Returns:
- requested metadata element
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setupFirstActionType
public void setupFirstActionType(String userId, String processGUID, String actionTypeGUID, String guard) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Set up a link between a governance action process and a governance action type. This defines the first step in the process.- Specified by:
setupFirstActionTypein interfaceorg.odpi.openmetadata.accessservices.governanceengine.api.GovernanceActionProcessInterface- Parameters:
userId- calling userprocessGUID- unique identifier of the governance action processactionTypeGUID- unique identifier of the governance action typeguard- optional guard for the first governance service to run- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getFirstActionType
public org.odpi.openmetadata.accessservices.governanceengine.metadataelements.GovernanceActionTypeElement getFirstActionType(String userId, String processGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Return the governance action type that is the first step in a governance action process.- Specified by:
getFirstActionTypein interfaceorg.odpi.openmetadata.accessservices.governanceengine.api.GovernanceActionProcessInterface- Parameters:
userId- calling userprocessGUID- unique identifier of the governance action process- Returns:
- properties of the governance action type
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
removeFirstActionType
public void removeFirstActionType(String userId, String processGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the link between a governance process and that governance action type that defines its first step.- Specified by:
removeFirstActionTypein interfaceorg.odpi.openmetadata.accessservices.governanceengine.api.GovernanceActionProcessInterface- Parameters:
userId- calling userprocessGUID- unique identifier of the governance action process- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
setupNextActionType
public String setupNextActionType(String userId, String currentActionTypeGUID, String nextActionTypeGUID, String guard, boolean mandatoryGuard, boolean ignoreMultipleTriggers) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Add a link between two governance action types to show that one follows on from the other when a governance action process is executing.- Specified by:
setupNextActionTypein interfaceorg.odpi.openmetadata.accessservices.governanceengine.api.GovernanceActionProcessInterface- Parameters:
userId- calling usercurrentActionTypeGUID- unique identifier of the governance action type that defines the previous step in the governance action processnextActionTypeGUID- unique identifier of the governance action type that defines the next step in the governance action processguard- guard required for this next step to proceed - or null for always run the next step.mandatoryGuard- means that no next steps can run if this guard is not returnedignoreMultipleTriggers- prevent multiple instances of the next step to run (or not)- Returns:
- unique identifier of the new link
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
updateNextActionType
public void updateNextActionType(String userId, String nextActionLinkGUID, String guard, boolean mandatoryGuard, boolean ignoreMultipleTriggers) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the properties of the link between two governance action types that shows that one follows on from the other when a governance action process is executing.- Specified by:
updateNextActionTypein interfaceorg.odpi.openmetadata.accessservices.governanceengine.api.GovernanceActionProcessInterface- Parameters:
userId- calling usernextActionLinkGUID- unique identifier of the relationship between the governance action typesguard- guard required for this next step to proceed - or null for always run the next step.mandatoryGuard- means that no next steps can run if this guard is not returnedignoreMultipleTriggers- prevent multiple instances of the next step to run (or not)- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getNextGovernanceActionTypes
public List<org.odpi.openmetadata.accessservices.governanceengine.metadataelements.NextGovernanceActionTypeElement> getNextGovernanceActionTypes(String userId, String actionTypeGUID, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Return the lust of next action type defined for the governance action process.- Specified by:
getNextGovernanceActionTypesin interfaceorg.odpi.openmetadata.accessservices.governanceengine.api.GovernanceActionProcessInterface- Parameters:
userId- calling useractionTypeGUID- unique identifier of the current governance action typestartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- return the list of relationships and attached governance action types.
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
removeNextActionType
public void removeNextActionType(String userId, String actionLinkGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove a follow-on step from a governance action process.- Specified by:
removeNextActionTypein interfaceorg.odpi.openmetadata.accessservices.governanceengine.api.GovernanceActionProcessInterface- Parameters:
userId- calling useractionLinkGUID- unique identifier of the relationship between the governance action types- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-