Skip Ribbon Commands
Skip to main content

Documentum Resources

:

Code Samples: Execute Java Method from behaviour class

Documentum Resources

Execute Java Method from behaviour class


//Get a session object
 
//build argument list
IDFList args = new DfList();
args.appendString("METHOD");
args.appendString("TRACE_LAUNCH");
args.apendString("ARGUMENTS");  //pass three command line arguments
 
//build the type list
argsType.appendString("S");
argsType.appendString("B");
argsType.appendString(S");
 
//build the value list
 
IDfList argsVal = new DfList();
argsVal.appendString("T");
argsVal.appendString("FirstArgument SecondArgument ThirdArgument");
 
//Execute the method
dfSession.apply(null,"DO_METHOD", args, argsType, argsVal);