Class DataEngineProcessHandler
java.lang.Object
org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineProcessHandler
ProcessHandler manages Process objects from the property server. It runs server-side in the DataEngine OMAS
and creates process entities and relationships through the OMRSRepositoryConnector.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDataEngineProcessHandler
(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, AssetHandler<Process> assetHandler, DataEngineRegistrationHandler registrationHandler, DataEngineCommonHandler dataEngineCommonHandler) Construct the handler information needed to interact with the repository services -
Method Summary
Modifier and TypeMethodDescriptioncreateProcess
(String userId, Process process, String externalSourceName) Create the processfindProcessEntity
(String userId, String qualifiedName) Find out if the Process object is already stored in the repository.getPortsForProcess
(String userId, String processGUID, String portTypeName) Retrieve all port objects that are connected to the processvoid
removeProcess
(String userId, String processGUID, String externalSourceName, DeleteSemantic deleteSemantic) Remove the processvoid
updateProcess
(String userId, EntityDetail originalProcessEntity, Process updatedProcess, String externalSourceName) Update the processvoid
updateProcessStatus
(String userId, String processGUID, InstanceStatus instanceStatus, String externalSourceName) Update the process instance statusvoid
upsertProcessHierarchyRelationship
(String userId, ParentProcess parentProcess, String processGUID, String externalSourceName) Creates a process hierarchy relationship
-
Field Details
-
PROCESS_GUID_PARAMETER_NAME
- See Also:
-
-
Constructor Details
-
DataEngineProcessHandler
public DataEngineProcessHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, AssetHandler<Process> assetHandler, DataEngineRegistrationHandler registrationHandler, DataEngineCommonHandler dataEngineCommonHandler) Construct the handler information needed to interact with the repository services- Parameters:
serviceName
- name of this serviceserverName
- name of the local serverinvalidParameterHandler
- handler for managing parameter errorsrepositoryHelper
- provides utilities for manipulating the repository services objectsassetHandler
- provides utilities for manipulating the repository services assetsdataEngineCommonHandler
- provides utilities for manipulating entitiesregistrationHandler
- provides utilities for manipulating engine entities
-
-
Method Details
-
createProcess
public String createProcess(String userId, Process process, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create the process- Parameters:
userId
- the name of the calling userprocess
- the values of the processexternalSourceName
- the unique name of the external source- Returns:
- unique identifier of the process in the repository
- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
updateProcess
public void updateProcess(String userId, EntityDetail originalProcessEntity, Process updatedProcess, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the process- Parameters:
userId
- the name of the calling useroriginalProcessEntity
- the created process entityupdatedProcess
- the new values of the processexternalSourceName
- the external data engine- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
findProcessEntity
public Optional<EntityDetail> findProcessEntity(String userId, String qualifiedName) throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException Find out if the Process object is already stored in the repository. It uses the fully qualified name to retrieve the entity- Parameters:
userId
- the name of the calling userqualifiedName
- the qualifiedName name of the process to be searched- Returns:
- optional with entity details if found, empty optional if not found
- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
updateProcessStatus
public void updateProcessStatus(String userId, String processGUID, InstanceStatus instanceStatus, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the process instance status- Parameters:
userId
- the name of the calling userprocessGUID
- the process GUIDinstanceStatus
- the status of the processexternalSourceName
- the external data engine- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
getPortsForProcess
public Set<EntityDetail> getPortsForProcess(String userId, String processGUID, String portTypeName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve all port objects that are connected to the process- Parameters:
userId
- the name of the calling userprocessGUID
- the unique identifier of the processportTypeName
- the type of the port to be retrieved- Returns:
- A set of the retrieved ports or an empty set
- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
upsertProcessHierarchyRelationship
public void upsertProcessHierarchyRelationship(String userId, ParentProcess parentProcess, String processGUID, String externalSourceName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Creates a process hierarchy relationship- Parameters:
userId
- the name of the calling userparentProcess
- the parent processprocessGUID
- the process GUIDexternalSourceName
- the external data engine- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
removeProcess
public void removeProcess(String userId, String processGUID, String externalSourceName, DeleteSemantic deleteSemantic) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, FunctionNotSupportedException Remove the process- Parameters:
userId
- the name of the calling userprocessGUID
- unique identifier of the port to be removedexternalSourceName
- the external data enginedeleteSemantic
- the delete semantic- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property serverFunctionNotSupportedException
- the repository does not support this call.
-