An adaptor XML file can contain several <command> elements; each defines a named command that can be referenced by <run> elements within <interface> elements. The <command> elements are specified outside the <interface> elements so that multiple interfaces within an XML file can reuse the same commands.
Commands can call other commands by embedding a <run> command in the <match> element in the <resultsblock> elements.
<command name="p4_changes">
<execute>
command line
</execute>
<resultsblock>
Has its own structure.
</resultsblock>
</command>
Alternatively, you can replace the <execute> element in the block with an <integrate> element.