Newer Version Available
DocumentGenerationProcess Class
The DocumentGenerationProcess class provides methods
to manage document generation processes.
Namespace
Example
1Map<String, Object> parameters = new Map<String, Object>();
2parameters.put('requestText','{}');
3parameters.put('type','GenerateAndConvert');
4parameters.put('status','InProgress');
5parameters.put('title','TestTitle');
6//industries_docgen.DocumentGenerationProcess.createDocumentGenerationProcess(parameters);
7Type type = Type.forName('industries_docgen.DocumentGenerationProcess');
8System.Callable docgen = (System.Callable) type.newInstance();
9docgen.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