WebPartPagesWebService.ValidateWorkflowMarkupAndCreateSupportObjects, méthode (websvcWebPartPages)

Creates a workflow task list, if one is not specified, or if the specified task list does not exist in the context Web site; also updates content types on the task list.

Espace de noms : websvcWebPartPages
Assembly : STSSOAP (dans stssoap.dll)

Syntaxe

'Déclaration
<SoapDocumentMethodAttribute("https://microsoft.com/sharepoint/webpartpages/ValidateWorkflowMarkupAndCreateSupportObjects", RequestNamespace:="https://microsoft.com/sharepoint/webpartpages", ResponseNamespace:="https://microsoft.com/sharepoint/webpartpages", Use:=SoapBindingUse.Literal, ParameterStyle:=SoapParameterStyle.Wrapped)> _
Public Function ValidateWorkflowMarkupAndCreateSupportObjects ( _
    workflowMarkupText As String, _
    rulesText As String, _
    configBlob As String, _
    flag As String _
) As String
'Utilisation
Dim instance As WebPartPagesWebService
Dim workflowMarkupText As String
Dim rulesText As String
Dim configBlob As String
Dim flag As String
Dim returnValue As String

returnValue = instance.ValidateWorkflowMarkupAndCreateSupportObjects(workflowMarkupText, rulesText, configBlob, flag)
[SoapDocumentMethodAttribute("https://microsoft.com/sharepoint/webpartpages/ValidateWorkflowMarkupAndCreateSupportObjects", RequestNamespace="https://microsoft.com/sharepoint/webpartpages", ResponseNamespace="https://microsoft.com/sharepoint/webpartpages", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)] 
public string ValidateWorkflowMarkupAndCreateSupportObjects (
    string workflowMarkupText,
    string rulesText,
    string configBlob,
    string flag
)

Paramètres

  • workflowMarkupText
    XML that represents the definition of the workflow schedule; the format for this XML is the XOML format, as defined in Windows Workflow Foundations.
  • rulesText
    XML that represents the definition of the conditional logic for a workflow schedule; the format for this XML is the RULES format, as defined in Windows Workflow Foundations.
  • configBlob
    XML that represents the support objects necessary to be created or modified as a result of this action.
  • flag
    Specifies whether to create the support objects. If set to 1 the method only do validation; if set to 2 to do validation and create the support objects, and all other values are disallowed.

Valeur retournée

Returns an XML fragment in the following: <Success>``<TaskList ID="TaskListID"/>``</Success>

Notes

The configBlob parameter is XML that is a subset of the Configuration File Format, and the important pieces are the following XPaths:

/WorkflowConfig/Association/@TaskListID

/WorkflowConfig/ContentTypes/ContentType/@ContentTypeID

/WorkflowConfig/ContentTypes/ContentType/@Form

To access the WebPartPagesWebService service and its methods, set a Web reference to http://Virtual_Server_Name:Port_Number/_vti_adm/WebPartPages.asmx.

Voir aussi

Référence

WebPartPagesWebService, classe
Membres WebPartPagesWebService
websvcWebPartPages, espace de noms