23.5 Running Docbase Methods via DFC
Docbase methods can be run in a number of ways:
Scheduling and running via Documentum jobs from Documentum Administrator
Running methods directly from Documentum Administrator
Running the DQL command
EXECUTE do_method
Executing the server API call
apply
Apart from the above mechanisms, you can also call and run methods by making DFC calls, as we will see in this example.
Create a Java file and save it as RunningMethodThroughDFC.java
.
Declare constants, storing the name of the method and its associated job and the method arguments as shown in the code below.
We will be running the Data Dictionary Publisher method via DFC code in this example. This administration tool provided by Documentum publishes the Content Server data dictionary information to client applications. Recall our earlier discussion of the Data Dictionary in Chapter 3.
import com.documentum.fc.client.*; import com.documentum.fc.common.*; import java.io.IOException; public class RunningMethodThroughDFC...