CompleteTaskOnBehalfOf
Completa uma tarefa em nome de outro usuário de acordo com os parâmetros informados. Esse web método só pode ser chamado por um usuário administrador.
Disponível no Web Service CAPRequests.asmx
Parâmetros
cultureName [String]: Nome da Cultura (utilizado para identificação do Workflow, Área, localização de Atributos e Etapas e/ou no retorno de valores em um idioma específico)
requestId [Integer]: ID da Solicitação
taskTitle [String]: Título da Etapa a ser completada
metadataValues [MetadataValue[]]: Arranjo de Atributos
outcome [OutcomeType]: Resultado (Continue, Return, ReturnToIssuer, Interrupt, Cancel)
comments [String]: Comentários da Etapa
returnToActionOrder [Integer]: Índice da Etapa para a qual Retornar (somente quando configurado no Fluxo e quando o resultado for passado como Return)
Exemplo de Solicitação/Resposta SOAP (v1.2)
POST /Services/CAPRequests.asmx HTTP/1.1
Host: qa.capworkflow.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<CompleteTaskOnBehalfOf xmlns="http://iteris.cap.webservices">
<cultureName>string</cultureName>
<requestId>int</requestId>
<taskTitle>string</taskTitle>
<respondentLogOnName>string</respondentLogOnName>
<metadataValues>
<MetadataValue>
<Name>string</Name>
<Value>string</Value>
<DisplayValue>string</DisplayValue>
<DisplayMode>None or ReadOnly or Edit or Required or Hidden</DisplayMode>
<Attachments>
<MetadataAttachment xsi:nil="true" />
<MetadataAttachment xsi:nil="true" />
</Attachments>
<Type>None or Text or Number or DateTime or Choice or YesNo or Attachment or ListLookup or Password or People or MultilineText or Hyperlink or Table</Type>
</MetadataValue>
<MetadataValue>
<Name>string</Name>
<Value>string</Value>
<DisplayValue>string</DisplayValue>
<DisplayMode>None or ReadOnly or Edit or Required or Hidden</DisplayMode>
<Attachments>
<MetadataAttachment xsi:nil="true" />
<MetadataAttachment xsi:nil="true" />
</Attachments>
<Type>None or Text or Number or DateTime or Choice or YesNo or Attachment or ListLookup or Password or People or MultilineText or Hyperlink or Table</Type>
</MetadataValue>
</metadataValues>
<outcome>None or Continue or Return or ReturnToIssuer or Interrupt or Escalate or Skipped or Cancel</outcome>
<comments>string</comments>
<returnToActionOrder>int</returnToActionOrder>
</CompleteTaskOnBehalfOf>
</soap12:Body>
</soap12:Envelope>
---
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<CompleteTaskOnBehalfOfResponse xmlns="http://iteris.cap.webservices" />
</soap12:Body>
</soap12:Envelope>