Compartilhar via


WebPartPagesWebService.ValidateWorkflowMarkupAndCreateSupportObjects Method

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.

Namespace:  [Webpartpages Web service]
Web service reference: http://Site/_vti_bin/Webpartpages.asmx

Syntax

'Declaration
<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
'Usage
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
)

Parameters

  • workflowMarkupText
    Type: System.String

    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
    Type: System.String

    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
    Type: System.String

    XML that represents the support objects necessary to be created or modified as a result of this action.

  • flag
    Type: System.String

    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.

Return Value

Type: System.String
Returns an XML fragment in the following:
<Success>
<TaskList ID="TaskListID"/>
</Success>

Remarks

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.

See Also

Reference

WebPartPagesWebService Class

WebPartPagesWebService Members

Webpartpages Web Service