public final class DisabledActivity extends NonExecutableActivity<ActivityAndBeanWrapper>
Modifier and Type | Field and Description |
---|---|
static String |
URI |
inputPortMapping, inputPorts, outputPortMapping, outputPorts
Constructor and Description |
---|
DisabledActivity(Activity<?> activity)
Create a DisabledActivity that represents a specific Activity that is now
disabled e.g.
|
DisabledActivity(Activity<?> activity,
Object config)
Create a DisabledActivity that represents a specific Activity with its
configuration.
|
DisabledActivity(Class<? extends Activity<?>> activityClass,
Object config)
Create a DisabledActivity that represents an offline activity of the
specified class with the specified configuration.
|
Modifier and Type | Method and Description |
---|---|
boolean |
configurationWouldWork() |
boolean |
configurationWouldWork(Object newConfig) |
void |
configure(ActivityAndBeanWrapper conf)
Called immediately after object construction by the deserialisation
framework with a configuration bean built from the auto-generated XML.
|
Activity<?> |
getActivity() |
Object |
getActivityConfiguration() |
ActivityAndBeanWrapper |
getConfiguration()
Get a configuration bean representing the definition of the activity.
|
Object |
getLastWorkingConfiguration() |
addProxyInput, addProxyInput, addProxyOutput, addProxyOutput, executeAsynch
addInput, addOutput, addOutput, configurePorts, getEdits, getInputPortMapping, getInputPorts, getOutputPortMapping, getOutputPorts, removeInputs, removeOutputs, setEdits
getAddAnnotationEdit, getAnnotations, getRemoveAnnotationEdit, setAnnotations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInputPortMapping, getInputPorts, getOutputPortMapping, getOutputPorts, setEdits
getAddAnnotationEdit, getAnnotations, getRemoveAnnotationEdit, setAnnotations
public static final String URI
public DisabledActivity(Class<? extends Activity<?>> activityClass, Object config) throws InstantiationException, IllegalAccessException, ActivityConfigurationException
activityClass
- The class of Activity that is offline.config
- The configuration of the offline Activity.InstantiationException
IllegalAccessException
ActivityConfigurationException
public DisabledActivity(Activity<?> activity, Object config)
activity
- The Activity that is offlineconfig
- The configuration of the activity.public DisabledActivity(Activity<?> activity)
activity
- The Activity that is now disabled.public void configure(ActivityAndBeanWrapper conf) throws ActivityConfigurationException
AbstractAsynchronousActivity
This method is responsible for the creation of input and output ports, something that is currently done in the constructor of the Taverna 1 Processor class.
configure
in interface Configurable<ActivityAndBeanWrapper>
configure
in interface Activity<ActivityAndBeanWrapper>
configure
in class AbstractAsynchronousActivity<ActivityAndBeanWrapper>
ActivityConfigurationException
Activity.configure(java.lang.Object)
public ActivityAndBeanWrapper getConfiguration()
AbstractAsynchronousActivity
getConfiguration
in interface Configurable<ActivityAndBeanWrapper>
getConfiguration
in class AbstractAsynchronousActivity<ActivityAndBeanWrapper>
Configurable.getConfiguration()
public Activity<?> getActivity()
public Object getActivityConfiguration()
public boolean configurationWouldWork()
public boolean configurationWouldWork(Object newConfig)
public Object getLastWorkingConfiguration()
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.