Creating the Extension for Integrating an External Application with Parameter Definition

The file Squares.xml follows.

<extension version="1" name="Squares">
    <guid shortid="Squares">69d0095b-e138-4841-a13a-de12238c83f4</guid>
    <script src="squares.py" />
    <interface context="Project">
        <images>images</images>
    </interface>
      <workflow name="wf1" context="Project" version="1">
        <tasks>
            <task name="Squares" caption="Squares" icon="squares_component" version="1">
                <callbacks>
                    <onupdate>update</onupdate>
                </callbacks>
                <inputs>
                    <input/>
                </inputs>
                <outputs/>
                <parameters>
                    <parameter name="Input" caption="Input" usage="Input" control="Double" version="1"/>
                    <parameter name="Output" caption="Output" usage="Output" control="Double" version="1"/>
                </parameters>
            </task>
        </tasks>
        <taskgroups>
            <taskgroup name="Squares" caption="Squares" icon="squares" category="ACT Custom Workflows" abbreviation="SQRS" version="1">
                <includeTask name="Squares" caption="Squares"/>
            </taskgroup>
        </taskgroups>
      </workflow>
</extension>

This XML file performs the following actions:

  • References the IronPython script Squares.py.

  • Defines a single task in the element <tasks>.

  • Defines the inputs and outputs in the elements <inputs> and <outputs>. Also defines an empty input.

  • Defines two parameters in the element <parameters>.

  • Defines a single task group with a single task in the element <taskgroups>.