Class DataEngineProcessHandler
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.dataengine.server.handlers.DataEngineProcessHandler
-
public class DataEngineProcessHandler extends Object
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 Modifier and Type Field Description static StringPROCESS_GUID_PARAMETER_NAME
-
Constructor Summary
Constructors Constructor Description 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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcreateProcess(String userId, Process process, String externalSourceName)Create the processOptional<EntityDetail>findProcessEntity(String userId, String qualifiedName)Find out if the Process object is already stored in the repository.Set<EntityDetail>getPortsForProcess(String userId, String processGUID, String portTypeName)Retrieve all port objects that are connected to the processvoidremoveProcess(String userId, String processGUID, String externalSourceName, DeleteSemantic deleteSemantic)Remove the processvoidupdateProcess(String userId, EntityDetail originalProcessEntity, Process updatedProcess, String externalSourceName)Update the processvoidupdateProcessStatus(String userId, String processGUID, InstanceStatus instanceStatus, String externalSourceName)Update the process instance statusvoidupsertProcessHierarchyRelationship(String userId, ParentProcess parentProcess, String processGUID, String externalSourceName)
-
-
-
Field Detail
-
PROCESS_GUID_PARAMETER_NAME
public static final String PROCESS_GUID_PARAMETER_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 software server capability entities
-
-
Method Detail
-
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
-
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.
-
-