This Data Type represents a document definition, it is provided by the Workflow API.
Property |
Type |
Access |
Description |
Id |
Numeric |
Read |
Identifier |
Name |
Character |
Read |
Name |
Error |
WorkflowError |
Read |
Error |
FileExtension |
Character |
Read |
Document file extension |
hasTemplate |
Boolean |
Read |
It indicates if the document has a template |
MimeType |
Character |
Read |
It indicates the format of the document |
CreateInstates a new document instance associated to the specified workitem.
CreateInstance (workitem, name): WorkflowDocumentInstance
Name |
Type |
Movement |
Description |
workitem |
WorkflowWorkitem |
Input |
Workitem |
name |
Character |
Input |
Document name to be created |
This method creates a new instance of the document associated to the workitem specified, based on a specific file.
CreateInstanceFromFile (workitem, name, file): WorkflowDocumentInstance
Name |
Type |
Movement |
Description |
workitem |
WorkflowWorkitem |
Input |
Workitem |
name |
Character |
Input |
Document name to be created |
file |
Character |
Input |
Complete path to the file |
This method allows loading a document definition from its Id.
Load (Id)
Name |
Type |
Movement |
Description |
Id |
WorkflowDocumentDefinitionId |
Input |
Document Definition identifier |
Workflow Error Codes