Class EngineActionHandler<B>
java.lang.Object
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIRootHandler<B>
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler<B>
org.odpi.openmetadata.commonservices.generichandlers.EngineActionHandler<B>
EngineActionHandler manages EngineAction objects from the Governance Action Framework (GAF).
These objects are 1-1 with an open metadata entity.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
OpenMetadataAPIGenericHandler.AnchorIdentifiers
-
Field Summary
Fields inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIRootHandler
assetActionDescription, auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, qualifiedNamePropertyNamesList, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones
-
Constructor Summary
ConstructorDescriptionEngineActionHandler
(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> serviceSupportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog) Construct the handler for engine actions. -
Method Summary
Modifier and TypeMethodDescriptionvoid
approveEngineAction
(String userId, String engineActionGUID, String qualifiedName, List<String> mandatoryGuards, List<String> receivedGuards, Date startTime, String governanceEngineName, String requestType, Map<String, String> requestParameters, String governanceActionProcessStepName, String requestSourceName, List<String> serviceSupportedZones, String methodName) Move an engine action from REQUESTED state to APPROVED status and log an audit message to say that the engine action is starting.void
cancelEngineAction
(String userId, String engineActionGUID, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Request that execution of an engine action is allocated to the caller.void
claimEngineAction
(String userId, String engineActionGUID, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Request that execution of an engine action is allocated to the caller.createEngineAction
(String userId, String qualifiedName, int domainIdentifier, String displayName, String description, List<String> requestSourceGUIDs, List<NewActionTarget> actionTargets, List<String> mandatoryGuards, List<String> receivedGuards, Date startTime, String governanceEngineName, String requesterUserId, String requestType, Map<String, String> requestParameters, String governanceActionTypeGUID, String governanceActionTypeName, String anchorGUID, String processName, String processStepGUID, String processStepName, String requestSourceName, String originatorServiceName, String originatorEngineName, List<String> serviceSupportedZones, String methodName) Create an engine action in REQUESTED state in the metadata store with all the relationships, so it is ready to execute.findEngineActions
(String userId, String searchString, String searchStringParameterName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Retrieve the list of engine action metadata elements that contain the search string.getActionStatus
(String propertyName, InstanceProperties properties) Retrieve the ActionStatus enum property from the instance properties of a Governance Action.getActiveClaimedEngineActions
(String userId, String governanceEngineGUID, int startFrom, int pageSize, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Retrieve the engine actions that are still in progress and that have been claimed by this caller's userId.getActiveEngineActions
(String userId, int startFrom, int pageSize, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Retrieve the engine actions that are still in progress.getEngineAction
(String userId, String engineActionGUID, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Request the status of an executing engine action request.getEngineAction
(String userId, EntityDetail primaryEntity, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Request the status of an executing engine action request.getEngineActions
(String userId, int startFrom, int pageSize, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Retrieve the engine actions that are known to this server.getEngineActionsByName
(String userId, String name, String nameParameterName, int startFrom, int pageSize, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Retrieve the list of engine action metadata elements with a matching qualified or display name.initiateGovernanceActionProcess
(String userId, String processQualifiedName, List<String> requestSourceGUIDs, List<NewActionTarget> callersActionTargets, Map<String, String> callersRequestParameters, Date requestedStartDate, String originatorServiceName, String originatorEngineName, List<String> serviceSupportedZones, String methodName) Using the named governance action process as a template, initiate a chain of engine actions.initiateGovernanceActionType
(String userId, String governanceActionTypeQualifiedName, List<String> requestSourceGUIDs, List<NewActionTarget> actionTargets, Map<String, String> requestParameters, Date startTime, String originatorServiceName, String originatorEngineName, List<String> serviceSupportedZones, String methodName) Using the named governance action type as a template, initiate a chain of engine actions.void
recordCompletionStatus
(String userId, String engineActionGUID, int status, Map<String, String> callerRequestParameters, List<String> outputGuards, List<NewActionTarget> newActionTargets, String completionMessage, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Declare that all the processing for the governance service is finished along with status of the work.void
updateActionTargetStatus
(String userId, String actionTargetGUID, int status, Date startDate, Date completionDate, String completionMessage, Date effectiveTime, String methodName) Update the status of a specific action target.void
updateEngineActionStatus
(String userId, String engineActionGUID, int engineActionStatus, List<String> serviceSupportedZones, Date effectiveTime, String methodName) Update the status of the engine action - providing the caller is permitted.Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
addAnchorGUIDToBuilder, addAnchorsClassification, archiveBeanInRepository, archiveBeanInRepository, countAttachments, createBeanInRepository, createBeanInRepository, deleteAnchoredEntity, deleteBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, deleteRelationship, findAttachmentLinks, findBeanGUIDs, findBeans, findBeans, findBeans, findEntities, findEntities, findEntities, findEntities, getAllAttachmentLinks, getAnchorGUIDFromAnchorsClassification, getAttachedElement, getAttachedElementGUID, getAttachedElementGUID, getAttachedElementGUIDs, getAttachedElementGUIDs, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedEntities, getAttachedEntities, getAttachedEntities, getAttachedEntitiesFromUser, getAttachedEntity, getAttachedEntity, getAttachedEntityFromUser, getAttachmentLink, getAttachmentLinks, getAttachmentLinks, getAttachmentLinks, getAttachmentsForType, getBeanByUniqueName, getBeanByUniqueName, getBeanByValue, getBeanFromEntity, getBeanFromRepository, getBeanFromRepository, getBeanFromRepository, getBeanGUIDByUniqueName, getBeanGUIDByUniqueName, getBeanGUIDsByClassification, getBeanGUIDsByType, getBeanGUIDsByType, getBeanHistory, getBeansByClassification, getBeansByCreator, getBeansByIntValue, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getDomainName, getDomainName, getEntitiesByIntValue, getEntitiesByType, getEntitiesByType, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntityByValue, getEntityByValue, getEntityFromRepository, getEntityFromRepository, getEntityGUIDByValue, getEntityGUIDsByValue, getSpecification, getSupplementaryProperties, getUniqueAttachmentLink, getUniqueAttachmentLink, isBeanIsolated, isEntityATypeOf, linkElementToElement, linkElementToElement, linkElementToElement, maintainSupplementaryProperties, multiLinkElementToElement, relinkElementToNewElement, relinkElementToNewElement, removeClassificationFromRepository, removeClassificationFromRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, uncheckedLinkElementToElement, undoBeanUpdateInRepository, undoBeanUpdateInRepository, undoBeanUpdateInRepository, unlinkAllElements, unlinkConnectedElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, updateBeanEffectivityDates, updateBeanEffectivityDates, updateBeanInRepository, updateBeanInRepository, updateBeanInRepository, updateBeanInRepository, updateBeanPropertyInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateClassificationEffectivityDates, updateElementToElementLink, updateElementToElementLink, updateElementToElementLink, updateRelationshipEffectivityDates, updateRelationshipEffectivityDates, updateRelationshipProperties, updateRelationshipProperties, validateAnchorEntity, validateAnchorEntity, validateUniqueProperty, verifyExternalSourceIdentity
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIRootHandler
getConverter, getElementStub, getRepositoryHandler, getRepositoryHelper, getServerName, getServiceName, getSupportedZones, getTypeDefByName, setSecurityVerifier
-
Constructor Details
-
EngineActionHandler
public EngineActionHandler(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> serviceSupportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog) Construct the handler for engine actions.- Parameters:
converter
- specific converter for this bean classbeanClass
- name of bean class that is represented by the generic class BserviceName
- name of this serviceserverName
- name of the local serverinvalidParameterHandler
- handler for managing parameter errorsrepositoryHandler
- manages calls to the repository servicesrepositoryHelper
- provides utilities for manipulating the repository services objectslocalServerUserId
- userId for this serversecurityVerifier
- open metadata security services verifierserviceSupportedZones
- list of zones that the access service is allowed to serve Asset instances from.defaultZones
- list of zones that the access service should set in all new Asset instances.publishZones
- list of zones that the access service sets up in published Asset instances.auditLog
- destination for audit log events.
-
-
Method Details
-
initiateGovernanceActionType
public String initiateGovernanceActionType(String userId, String governanceActionTypeQualifiedName, List<String> requestSourceGUIDs, List<NewActionTarget> actionTargets, Map<String, String> requestParameters, Date startTime, String originatorServiceName, String originatorEngineName, List<String> serviceSupportedZones, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionUsing the named governance action type as a template, initiate a chain of engine actions.- Parameters:
userId
- caller's userIdgovernanceActionTypeQualifiedName
- unique name to give this governance action typerequestSourceGUIDs
- request source elements for the resulting governance serviceactionTargets
- list of action target names to GUIDs for the resulting governance servicerequestParameters
- initial set of request parameters from the callerstartTime
- future start time or null for "as soon as possible"originatorServiceName
- unique identifier of the originator - typically an ActorProfile or Process such as a GovernanceService.originatorEngineName
- optional unique name of the governance engine (if initiated by a governance engine).serviceSupportedZones
- supported zones for calling servicemethodName
- calling method- Returns:
- unique identifier of the first engine action
- Throws:
InvalidParameterException
- null qualified nameUserNotAuthorizedException
- this governance service is not authorized to create a governance actionPropertyServerException
- there is a problem with the metadata store
-
initiateGovernanceActionProcess
public String initiateGovernanceActionProcess(String userId, String processQualifiedName, List<String> requestSourceGUIDs, List<NewActionTarget> callersActionTargets, Map<String, String> callersRequestParameters, Date requestedStartDate, String originatorServiceName, String originatorEngineName, List<String> serviceSupportedZones, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionUsing the named governance action process as a template, initiate a chain of engine actions.- Parameters:
userId
- caller's userIdprocessQualifiedName
- unique name to give this governance action processrequestSourceGUIDs
- request source elements for the resulting governance servicecallersActionTargets
- list of action target names to GUIDs for the resulting governance servicecallersRequestParameters
- initial set of request parameters from the callerrequestedStartDate
- future start time or null for "as soon as possible"originatorServiceName
- unique identifier of the originator - typically an ActorProfile or Process such as a GovernanceService.originatorEngineName
- optional unique name of the governance engine (if initiated by a governance engine).serviceSupportedZones
- supported zones for calling servicemethodName
- calling method- Returns:
- unique identifier of the governance action process instance
- Throws:
InvalidParameterException
- null qualified nameUserNotAuthorizedException
- this governance service is not authorized to create a governance actionPropertyServerException
- there is a problem with the metadata store
-
approveEngineAction
public void approveEngineAction(String userId, String engineActionGUID, String qualifiedName, List<String> mandatoryGuards, List<String> receivedGuards, Date startTime, String governanceEngineName, String requestType, Map<String, String> requestParameters, String governanceActionProcessStepName, String requestSourceName, List<String> serviceSupportedZones, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionMove an engine action from REQUESTED state to APPROVED status and log an audit message to say that the engine action is starting.- Parameters:
userId
- caller's userIdengineActionGUID
- unique identifier of the engine actionqualifiedName
- unique identifier of this engine actionmandatoryGuards
- list of guards that must be received in order to proceed with the engine actionreceivedGuards
- list of guards to initiate the engine 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 service to runrequestParameters
- properties to pass to the governance servicegovernanceActionProcessStepName
- unique name of the governance action process step that initiated this engine action as part of a governance action process (or null if this is standalone engine action)requestSourceName
- where did the request come fromserviceSupportedZones
- supported zones for calling servicemethodName
- calling method- Throws:
InvalidParameterException
- null qualified nameUserNotAuthorizedException
- the caller is not authorized to create an engine actionPropertyServerException
- there is a problem with the metadata store
-
createEngineAction
public String createEngineAction(String userId, String qualifiedName, int domainIdentifier, String displayName, String description, List<String> requestSourceGUIDs, List<NewActionTarget> actionTargets, List<String> mandatoryGuards, List<String> receivedGuards, Date startTime, String governanceEngineName, String requesterUserId, String requestType, Map<String, String> requestParameters, String governanceActionTypeGUID, String governanceActionTypeName, String anchorGUID, String processName, String processStepGUID, String processStepName, String requestSourceName, String originatorServiceName, String originatorEngineName, List<String> serviceSupportedZones, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionCreate an engine action in REQUESTED state in the metadata store with all the relationships, so it is ready to execute. Nothing will happen until it moves to APPROVED state.- 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 serviceactionTargets
- list of action target names to GUIDs for the resulting governance servicemandatoryGuards
- list of guards that must be received in order to proceed with the governance actionreceivedGuards
- 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 requestrequesterUserId
- userId of the original requesterrequestType
- request type to identify the governance service to runrequestParameters
- properties to pass to the governance servicegovernanceActionTypeGUID
- unique identifier for the governance action type (if any)governanceActionTypeName
- unique name for the governance action type (if any)anchorGUID
- identifier of the first engine action of the process (null for standalone engine actions and the first engine action in a governance action process).processStepGUID
- unique identifier of the governance action process step that initiated this engine action as part of a governance action process (or null if this is standalone governance action)processStepName
- unique name of the governance action process step that initiated this engine action as part of a governance action process (or null if this is standalone governance action)processName
- name of the processrequestSourceName
- where did the request come fromoriginatorServiceName
- unique identifier of the originator - typically an ActorProfile or Process such as a GovernanceService.originatorEngineName
- optional unique name of the governance engine (if initiated by a governance engine)serviceSupportedZones
- supported zones for calling servicemethodName
- calling method- Returns:
- unique identifier of the engine action
- Throws:
InvalidParameterException
- null qualified nameUserNotAuthorizedException
- this governance service is not authorized to create a governance actionPropertyServerException
- there is a problem with the metadata store
-
getEngineAction
public B getEngineAction(String userId, String engineActionGUID, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Request the status of an executing engine action request.- Parameters:
userId
- identifier of calling userengineActionGUID
- identifier of the engine action requesteffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)serviceSupportedZones
- supported zones for calling servicemethodName
- calling method- 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.
-
getEngineAction
public B getEngineAction(String userId, EntityDetail primaryEntity, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Request the status of an executing engine action request.- Parameters:
userId
- identifier of calling userprimaryEntity
- entity of the engine action requesteffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)serviceSupportedZones
- supported zones for calling servicemethodName
- calling method- 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.
-
getActionStatus
Retrieve the ActionStatus enum property from the instance properties of a Governance Action.- Parameters:
propertyName
- name of property to extract the enum fromproperties
- entity properties- Returns:
- ActionStatus enum value
-
claimEngineAction
public void claimEngineAction(String userId, String engineActionGUID, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Request that execution of an engine action is allocated to the caller. This is only permitted if no other caller has claimed it.- Parameters:
userId
- identifier of calling userengineActionGUID
- identifier of the engine action requesteffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)serviceSupportedZones
- supported zones for calling servicemethodName
- calling method- 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.
-
cancelEngineAction
public void cancelEngineAction(String userId, String engineActionGUID, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Request that execution of an engine action is allocated to the caller. This is only permitted if no other caller has claimed it.- Parameters:
userId
- identifier of calling userengineActionGUID
- identifier of the engine action requesteffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)serviceSupportedZones
- supported zones for calling servicemethodName
- calling method- 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.
-
updateEngineActionStatus
public void updateEngineActionStatus(String userId, String engineActionGUID, int engineActionStatus, List<String> serviceSupportedZones, Date effectiveTime, String methodName) 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 ordinaleffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)serviceSupportedZones
- supported zones for calling servicemethodName
- calling method- 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
public void recordCompletionStatus(String userId, String engineActionGUID, int status, Map<String, String> callerRequestParameters, List<String> outputGuards, List<NewActionTarget> newActionTargets, String completionMessage, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionDeclare that all the processing for the governance service is finished along with status of the work. If this is part of a governance action process, and it defines that there is a follow-on engine action then this is set up at this time.- Parameters:
userId
- caller's userIdengineActionGUID
- unique identifier of the engine action to updatestatus
- completion status enum valuecallerRequestParameters
- request parameters used by the calleroutputGuards
- optional guard strings for triggering subsequent action(s)newActionTargets
- additional elements to add to the action targets for the next phase; these are supplied by the governance service that ran the previous stepcompletionMessage
- message to describe completion results or reasons for failureeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)serviceSupportedZones
- supported zones for calling servicemethodName
- calling method- Throws:
InvalidParameterException
- the completion status is nullUserNotAuthorizedException
- the governance service is not authorized to update the engine action statusPropertyServerException
- there is a problem connecting to the metadata store
-
getEngineActions
public List<B> getEngineActions(String userId, int startFrom, int pageSize, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the engine actions that are known to this server.- Parameters:
userId
- userId of callerstartFrom
- starting from elementpageSize
- maximum elements to returnserviceSupportedZones
- supported zones for calling serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- 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.
-
getActiveEngineActions
public List<B> getActiveEngineActions(String userId, int startFrom, int pageSize, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the engine actions that are still in progress.- Parameters:
userId
- userId of callerstartFrom
- starting from elementpageSize
- maximum elements to returnserviceSupportedZones
- supported zones for calling serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- 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.
-
getActiveClaimedEngineActions
public List<B> getActiveClaimedEngineActions(String userId, String governanceEngineGUID, int startFrom, int pageSize, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the engine actions that are still in progress 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 returnserviceSupportedZones
- supported zones for calling serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- 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.
-
findEngineActions
public List<B> findEngineActions(String userId, String searchString, String searchStringParameterName, int startFrom, int pageSize, boolean forLineage, boolean forDuplicateProcessing, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of engine 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 propertiessearchStringParameterName
- parameter supplying search stringstartFrom
- paging start pointpageSize
- maximum results that can be returnedforLineage
- return elements marked with the Memento classification?forDuplicateProcessing
- do not merge elements marked as duplicates?serviceSupportedZones
- supported zones for calling serviceeffectiveTime
- what is the effective time for related queries needed to do the updatemethodName
- calling method- 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)
-
getEngineActionsByName
public List<B> getEngineActionsByName(String userId, String name, String nameParameterName, int startFrom, int pageSize, List<String> serviceSupportedZones, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the list of engine 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 fornameParameterName
- name of parameter supplying namestartFrom
- paging start pointpageSize
- maximum results that can be returnedserviceSupportedZones
- supported zones for calling serviceeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- 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
public void updateActionTargetStatus(String userId, String actionTargetGUID, int status, Date startDate, Date completionDate, String completionMessage, Date effectiveTime, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the status of a specific action target. By default, these values are derived from the values for the governance service. However, if the governance service has to process many target elements, then setting the status on each individual target will show the progress of the governance service.- Parameters:
userId
- caller's userIdactionTargetGUID
- unique identifier of the target elementstatus
- status enum to show its progressstartDate
- date/time that the governance service started processing the targetcompletionDate
- date/time that the governance process completed processing this targetcompletionMessage
- message to describe completion results or reasons for failureeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Throws:
InvalidParameterException
- the action target GUID is not recognizedUserNotAuthorizedException
- the governance service is not authorized to update the action target propertiesPropertyServerException
- there is a problem connecting to the metadata store
-