Advanced Customization > Business Logic Customization > Windchill Workgroup Manager Customization > Registering a Custom Service
  
Registering a Custom Service
Custom services must be registered in the <Windchill>/codebase/com/ptc/windchill/uwgm/common/delegate/application.service.xconf file.
Here is an example of a typical format:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Configuration SYSTEM "xconf.dtd">

<Configuration targetFile="codebase/service.properties">

<!-- UWGM Custom Services Implementation for Unit Test -->

<Service context="default"
name="com.ptc.windchill.uwgm.proesrv.c11n.UwgmC11nService">
<Option cardinality="duplicate" requestor="java.lang.Object"
selector="UWGMC11N_UNIT_TEST"
serviceClass="com.ptc.windchill.uwgm.proesrv.c11n.UwgmC11nServiceTest"/>
<Option cardinality="duplicate"
requestor="java.lang.Object"
selector="UWGMWSC11N_UNIT_TEST"
serviceClass="com.ptc.windchill.uwgm.proesrv.c11n.UwgmC11nServiceTest"/>
</Service>

</Configuration>
The selector provides the key to be able to locate a registered service.  This key forms the ServiceDescriptor attribute of the C11nRequest; and helps the application services infrastructure to invoke appropriate services.
It is important that your custom code needs to pass this key properly in the Uwgm Request to execute a custom code on the server.
You must use the xconfmanager utility to propagate changes in application.service.xconf file to the service.properties file.