public class ProcessHandler extends Object
| Constructor and Description |
|---|
ProcessHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper)
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)
Create ProcessPort relationships between a Process asset and the corresponding Ports
|
String |
createProcess(String userId,
String qualifiedName,
String processName,
String description,
String latestChange,
List<String> zoneMembership,
String displayName,
String formula,
String owner,
OwnerType ownerType)
Create the process
|
void |
updateProcessStatus(String userId,
String guid,
InstanceStatus instanceStatus)
Update the process instance status to
|
public ProcessHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper)
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 objectspublic String createProcess(String userId, String qualifiedName, String processName, String description, String latestChange, List<String> zoneMembership, String displayName, String formula, String owner, OwnerType ownerType) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userqualifiedName - the qualifiedName name of the processprocessName - the name of the processdescription - the description of the processlatestChange - the description for the latest change done for the processzoneMembership - the list of zones of the processdisplayName - the display name of the processformula - the formula for the processowner - the name of the owner for this processownerType - the type of the owner for this processInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverInvalidParameterExceptionpublic void addProcessPortRelationship(String userId, String processGUID, String portGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userprocessGUID - the unique identifier of the processportGUID - the unique identifier of the portInvalidParameterExceptionUserNotAuthorizedExceptionPropertyServerExceptionpublic void updateProcessStatus(String userId, String guid, InstanceStatus instanceStatus) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userguid - the guid name of the processinstanceStatus - the status of the processInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverInvalidParameterExceptionCopyright © 2018–2019 ODPi. All rights reserved.