Class PythonScript

All Implemented Interfaces:
ConfigurationItem, Serializable, Comparable<BaseConfigurationItem>

@Metadata(versioned=false) public class PythonScript extends BasePythonScript
Base class for the configuration of a custom Python task.

Users subclass this in synthetic.xml to configure input parameters and output mappings for their custom script tasks.

Note: this should be called "PythonScriptDefinition", but was renamed for UX reasons since the type name is exposed to end users.

See Also:
  • Field Details

  • Constructor Details

    • PythonScript

      public PythonScript()
  • Method Details

    • getPropertiesWithVariables

      public Collection<PropertyDescriptor> getPropertiesWithVariables()
    • getInputProperties

      public Collection<PropertyDescriptor> getInputProperties()
    • getOutputProperties

      public Collection<PropertyDescriptor> getOutputProperties()
    • getTransitionalAndOutputProperties

      public Collection<PropertyDescriptor> getTransitionalAndOutputProperties()
    • getTransitionalProperties

      public Collection<PropertyDescriptor> getTransitionalProperties()
    • getCustomScriptTask

      public CustomScriptTask getCustomScriptTask()
    • setCustomScriptTask

      public void setCustomScriptTask(CustomScriptTask customScriptTask)
    • getIconLocation

      public String getIconLocation()
    • getOutputVarHelpText

      public String getOutputVarHelpText()
    • getTaskColor

      public String getTaskColor()
    • getIconClass

      public String getIconClass()
    • getMaxOutputPropertySize

      public int getMaxOutputPropertySize()
    • setMaxOutputPropertySize

      public void setMaxOutputPropertySize(int maxOutputPropertySize)
    • getDocumentationPage

      public String getDocumentationPage()
    • setDocumentationPage

      public void setDocumentationPage(String documentationPage)
    • getConfigurationUri

      public String getConfigurationUri()
    • setConfigurationUri

      public void setConfigurationUri(String configurationUri)
    • isSupportedInWorkflow

      public boolean isSupportedInWorkflow()
    • setSupportedInWorkflow

      public void setSupportedInWorkflow(boolean supportedInWorkflow)
    • getScript

      public String getScript() throws IOException
      Overrides:
      getScript in class BaseScript
      Throws:
      IOException
    • getAbortScript

      public String getAbortScript() throws IOException
      Overrides:
      getAbortScript in class BaseScript
      Throws:
      IOException