Ir para conteúdo principal

Web Método CreateRequestAsDraft

Web Método CreateRequestAsDraft da Interface SOAP do CAP Workflow

Escrito por Luis Fernando Gushiken

CreateRequestAsDraft

Cria uma nova solicitação em modo “rascunho” de acordo com os parâmetros informados.

Disponível no Web Service CAPRequests.asmx

Parâmetros

  • issuerLogOnName [String]: Nome do Solicitante (somente Administradores do CAP podem informar um solicitante diferente do usuário atualmente autenticado).

  • servicePath [String]: Caminho do Workflow.

  • 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).

  • metadataValues [ MetadataValue [] ]: Arranjo de Atributos.

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>
Isto respondeu à sua pergunta?