DocumentGenerationProcess Class
The DocumentGenerationProcess class provides methods
to manage document generation processes.
Namespace
Example
Map<String, Object> parameters = new Map<String, Object>();
parameters.put('requestText','{}');
parameters.put('type','GenerateAndConvert');
parameters.put('status','InProgress');
parameters.put('title','TestTitle');
//industries_docgen.DocumentGenerationProcess.createDocumentGenerationProcess(parameters);
Type type = Type.forName('industries_docgen.DocumentGenerationProcess');
System.Callable docgen = (System.Callable) type.newInstance();
docgen.Call('createDocumentGenerationProcess',parameters);
This Apex code creates a DocumentGenerationProcess record for server-side document generation. This code uses a Map as input that contains all the required fields to create an entry in the database.
DocumentGenerationProcess Methods
The following are methods for DocumentGenerationProcess.
Call(methodName, inputMap)
Invokes a method with specified input parameters for the document generation
process.
Signature
public Object Call(String methodName, Map<String,Object> inputMap)
Parameters
- methodName
- Type: String
- Name of the method to be called.
- inputMap
- Type: Map<String,Object>
- Map that contains input parameters for the method that is called.
Return Value
Type: Object