Submits specified document to the specified workflow.
| Visual Basic (declaration) |
|---|
Public Function SubmitDocumentToFlow( _ |
| C# (declaration) |
|---|
public XmlNode SubmitDocumentToFlow( |
Example| Visual Basic Example |
|---|
Public Sub SubmitDocumentToFlow()
Const IRAuthenticationTicket As String = "sid-XXXXXXXXXXX"
Const IR_FolderPath As String = "/Public/DocumentName"
Const IR_FlowDefID As String = "1001"
Dim IRWebService As srv
Try
IRWebService = New srv()
Dim xmlResponse As XmlNode = IRWebService.SubmitDocumentToFlow(IRAuthenticationTicket, IR_FolderPath, IR_FlowDefID)
If xmlResponse IsNot Nothing Then
If xmlResponse.Attributes("success").Value = "true" Then
'Document successfully submitted to Flow
End If
End If
Catch ex As Exception
Console.WriteLine("error:" & ex.Message)
'rethrow exception
Throw
Finally
IRWebService = Nothing
End Try
End Sub
|
| C# Example |
|---|
public void SubmitDocumentToFlow()
{
const string IRAuthenticationTicket = "sid-XXXXXXXXXXX";
const string IR_FolderPath = "/Public/DocumentName";
const string IR_FlowDefID = "1001";
srv IRWebService;
try
{
IRWebService = new srv();
XmlNode xmlResponse = IRWebService.SubmitDocumentToFlow(IRAuthenticationTicket, IR_FolderPath, IR_FlowDefID);
if (xmlResponse != null)
{
if (xmlResponse.Attributes["success"].Value == "true")
{
//Document successfully submitted to Flow
}
}
}
catch (Exception ex)
{
Console.WriteLine("error:" + ex.Message);
//rethrow exception
throw;
}
finally
{
IRWebService = null;
}
}
|