Setting up and tearing down the work agent

In your WorkAgent implementation class, write a setup method that initializes your resources. PolicyCenter calls the setup method before the start method.

public void setup(Map<String, Object> properties);

The java.util.Map object that is the method argument is the set of plugin parameters from the Studio Plugins Editor for your plugin implementation.

Implement the teardown method to release resources acquired in the start method. PolicyCenter calls the teardown method before the stop method.