Advanced Customization > Windchill Adapter > Custom Windchill Adapter Webjects > Implementing Custom Windchill Adapter Webjects > Setting Up a New Custom Webject Delegate
  
Setting Up a New Custom Webject Delegate
Each webject delegate must have a unique name. The Windchill adapter uses this name along with any class information provided by the webject to locate a class implementing your webject delegate. All type-aware webject delegates must implement the com.ptc.core.adapter.server.impl.TypeAwareWebjectDelegate interface, which provides the following method:
com.infoengine.object.factory.Task invoke(com.infoengine.object.factory.Task task)
This invoke() method performs all the work of each concrete webject delegate class implementing the TypeAwareWebjectDelegate interface.
The following is the basic outline of operation for an implementation of the invoke() method:
1. Extract the webject object from the incoming task object.
2. Perform operations based on the parameters specified in the webject object.
3. Store the resulting data in element objects within a group object.
4. Return a new task object containing the group object output data.
For more information on the com.infoengine.object.factory.Task class, refer to its javadoc.