Click or drag to resize

ITestApiCreateDocumentUploadSession Method

Create new document upload session with corresponding workflow, activity and document upload component name. This API is recommended to be called inside OnExecuting method.

Namespace:  Casewhere.Runtime.DSL.Api
Assembly:  Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.1.0
Syntax
C#
Guid CreateDocumentUploadSession(
	Guid documentId,
	string workflowName,
	string activityName,
	string componentName,
	int fileSize = 0,
	string fileName = ""
)

Parameters

documentId
Type: SystemGuid
Use IDocumentApi to create a DocumentInfo object.
workflowName
Type: SystemString
The workflow name.
activityName
Type: SystemString
The activity name.
componentName
Type: SystemString
The document upload component name.
fileSize (Optional)
Type: SystemInt32
File size of document.
fileName (Optional)
Type: SystemString
File name of document.

Return Value

Type: Guid
Return the document upload session ID if it excutes successfully.
See Also