public class DataEngineProcessHandler extends Object
| Constructor and Description |
|---|
DataEngineProcessHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper,
AssetHandler<Process> assetHandler,
DataEngineRegistrationHandler registrationHandler,
DataEngineCommonHandler dataEngineCommonHandler)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProcessPortRelationship(String userId,
String processGUID,
String portGUID,
String externalSourceName)
Create ProcessPort relationships between a Process asset and the corresponding Ports.
|
String |
createProcess(String userId,
Process process,
String externalSourceName)
Create the process
|
Optional<EntityDetail> |
findProcessEntity(String userId,
String qualifiedName)
Find out if the Process object is already stored in the repository.
|
Set<String> |
getPortsForProcess(String userId,
String processGUID,
String portTypeName)
Retrieve all port objects that are connected to the process
|
void |
updateProcess(String userId,
EntityDetail originalProcessEntity,
Process updatedProcess,
String externalSourceName)
Update the process
|
void |
updateProcessStatus(String userId,
String processGUID,
InstanceStatus instanceStatus,
String externalSourceName)
Update the process instance status
|
void |
upsertProcessHierarchyRelationship(String userId,
ParentProcess parentProcess,
String processGUID,
String externalSourceName) |
public DataEngineProcessHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, AssetHandler<Process> assetHandler, DataEngineRegistrationHandler registrationHandler, DataEngineCommonHandler dataEngineCommonHandler)
serviceName - 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 objectsassetHandler - provides utilities for manipulating the repository services assetsdataEngineCommonHandler - provides utilities for manipulating entitiesregistrationHandler - creates software server capability entitiespublic String createProcess(String userId, Process process, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userprocess - the values of the processexternalSourceName - the unique name of the external sourceInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void updateProcess(String userId, EntityDetail originalProcessEntity, Process updatedProcess, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling useroriginalProcessEntity - the created process entityupdatedProcess - the new values of the processexternalSourceName - the external data engineInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic Optional<EntityDetail> findProcessEntity(String userId, String qualifiedName) throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException
userId - the name of the calling userqualifiedName - the qualifiedName name of the process to be searchedInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void addProcessPortRelationship(String userId, String processGUID, String portGUID, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userprocessGUID - the unique identifier of the processportGUID - the unique identifier of the portexternalSourceName - the unique name of the external sourceInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void updateProcessStatus(String userId, String processGUID, InstanceStatus instanceStatus, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userprocessGUID - the process GUIDinstanceStatus - the status of the processexternalSourceName - the external data engineInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic Set<String> getPortsForProcess(String userId, String processGUID, String portTypeName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userprocessGUID - the unique identifier of the processportTypeName - the type of the port to be retrievedInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void upsertProcessHierarchyRelationship(String userId, ParentProcess parentProcess, String processGUID, String externalSourceName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.