Extending : Reference sample : How to extend a global function invoked in ECA action : Define global function in XML
  
Define global function in XML
1 Create a new plug-in project or use the already existing one.
2 Create a new folder under the project; for example, name it as ‘globalFunctoins’.
3 Create an xml file under the folder; for example, name it as ‘ExtendedGlobalFunction.xml’.
This graphic is described in the surrounding text.
4 Edit the file to define a global function. Notice that, the attribute ‘showInAction’ should be set to ‘true’ to indicate this function will be available in the ‘Action’ panel of XUI ECA editor.
This graphic is described in the surrounding text.
See also
How to extend a global function invoked in ECA action