Creating the Extension for Creating a Parametric Task Group

The file Parametric.xml follows.

<extension version="1" name="Parametric">
    <guid shortid="Parametric">69d0095b-e138-4841-a13a-de12238c83f5</guid>
    <script src="parametric.py" />
    <interface context="Project">
        <images>images</images>
    </interface>
      <workflow name="wf2" context="Project" version="1">
        <tasks>
            <task name="Parametric" caption="Parametric" icon="parametric_component" version="1">
                <callbacks>
                    <onupdate>update</onupdate>
                </callbacks>
                <inputs>
                    <input/>
                </inputs>
                <outputs/>
            </task>
        </tasks>
        <taskgroups>
            <taskgroup name="Parametric" caption="Parametric" icon="parametric" category="ACT Custom Workflows" abbreviation="PARAMS" isparametricgroup="True" version="1">
                <includeTask name="Parametric" caption="Parametric"/>
            </taskgroup>
        </taskgroups>
      </workflow>
</extension>

This XML file performs the following actions:

  • References the script parametric.py.

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

  • Defines the inputs and outputs in the elements <inputs> and <outputs>. Note that an empty input is defined.

  • Defines a single task group with a single task in the element <taskgroups>. Note that the attribute isparametricgroup is set to true.