Preparing Your Operator to Build

Complete the following remaining tasks before uploading the custom operator to TIBCO Data Science - Team Studio

  • Edit the files pom.xml and plugins.xml.

  • Optionally, customize the operator icon.

Before you begin

Create a runtime class.

    Procedure
  1. Open the file pom.xml in the PluginTemplateProject folder and find the following line:
    <artifactId>plugin-template</artifactId>
  2. Replace the contents of the tag with the preferred name of the compiled .jar file.

    For example, if the output jar is named MyColumnFilter.jar, change the tag as follows.

    <artifactId>MyColumnFilter</artifactId>

    This modification is the only one needed in this file. The other code in pom.xml downloads dependencies based on the Custom Operator SDK.

    Note: When you update your pom.xml file, IntelliJ might display a pop-up directing you to import changes to Maven Projects.
  3. If IntelliJ displays the prompt to import changes, click Import Changes.
    This refreshes the dependencies necessary to build your operator.
  4. Specify the signature class to the plugins.xml file.
    This tells TIBCO Data Science - Team Studio where to find information about the operator after uploading the JAR.
    1. Open PluginTemplateProject/src/main/resources/plugins.xml. It should look like this:
      <?xml version="1.0" encoding="UTF-8"?>
      <alpine-plugins>
      </alpine-plugins>
    2. Add the Signature class (the one with the metadata) to this file as follows:
      <?xml version="1.0" encoding="UTF-8"?>
      <alpine-plugins>
       <plugin>
         <signature-class>com.mycompany.plugins.MyColumnFilterSignature</signature-class>
       </plugin>
      </alpine-plugins>

      Note: You must use the full package name to refer to your signature class.

      Important: Be sure to fill in those two fields, or the operator is not build.
What to do nextFollow the instructions in Installing the Custom Sample Operator for your Version to build your operators and upload them to the TIBCO Data Science - Team Studio web application.