public interface ActivityService
Modifier and Type | Method and Description |
---|---|
boolean |
activityExists(URI activityType)
Returns true if and only if the activity type exists.
|
Activity<?> |
createActivity(URI activityType,
com.fasterxml.jackson.databind.JsonNode configuration)
Returns the activity for the specified activity type.
|
com.fasterxml.jackson.databind.JsonNode |
getActivityConfigurationSchema(URI activityType)
Returns the JSON Schema for the configuration required by an activity.
|
Set<InputActivityPort> |
getActivityInputPorts(URI activityType,
com.fasterxml.jackson.databind.JsonNode configuration)
Returns the input ports that the activity type requires to be present in
order to execute with the specified configuration.
|
Set<OutputActivityPort> |
getActivityOutputPorts(URI activityType,
com.fasterxml.jackson.databind.JsonNode configuration)
Returns the output ports that the activity type requires to be present in
order to execute with the specified configuration.
|
Set<URI> |
getActivityTypes()
Returns the available activity types.
|
Set<URI> getActivityTypes()
boolean activityExists(URI activityType)
uri
- the activity type to checkcom.fasterxml.jackson.databind.JsonNode getActivityConfigurationSchema(URI activityType) throws ActivityNotFoundException, ActivityConfigurationException
activityType
- the activity typeActivityNotFoundException
- if an activity cannot be found for the specified URIActivityConfigurationException
- if the JSON Schema cannot be createdSet<InputActivityPort> getActivityInputPorts(URI activityType, com.fasterxml.jackson.databind.JsonNode configuration) throws ActivityNotFoundException, ActivityConfigurationException
If the activity does not require any input port for the configuration then an empty set is returned.
configuration
- the activity configurationActivityNotFoundException
- if the activity cannot be foundActivityConfigurationException
- if the activity configuration is incorrectSet<OutputActivityPort> getActivityOutputPorts(URI activityType, com.fasterxml.jackson.databind.JsonNode configuration) throws ActivityNotFoundException, ActivityConfigurationException
If the activity type does not require any output ports for the configuration then an empty set is returned.
configuration
- the activity configurationActivityNotFoundException
- if the activity cannot be foundActivityConfigurationException
- if the activity configuration is incorrectActivity<?> createActivity(URI activityType, com.fasterxml.jackson.databind.JsonNode configuration) throws ActivityNotFoundException, ActivityConfigurationException
activityType
- the activity typeconfiguration
- the configuration for the activity, can be null
ActivityNotFoundException
- if an activity cannot be found for the specified activity
typeActivityConfigurationException
- if the configuration is not validCopyright © 2015–2016 The Apache Software Foundation. All rights reserved.