Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
Web Services
 ValidateWorkflowMarkupAndCreateSupp...
Community Content
In this section
Statistics Annotations (0)
Collapse All/Expand All Collapse All
WebPartPagesWebService.ValidateWorkflowMarkupAndCreateSupportObjects Method (Web Part Pages)
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.

Web Service: Web Part PagesWeb Reference: http://<Site>/_vti_bin/WebPartPages.asmx
Visual Basic (Declaration)
<SoapDocumentMethodAttribute("http://microsoft.com/sharepoint/webpartpages/ValidateWorkflowMarkupAndCreateSupportObjects", RequestNamespace:="http://microsoft.com/sharepoint/webpartpages", ResponseNamespace:="http://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
Visual Basic (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)
C#
[SoapDocumentMethodAttribute("http://microsoft.com/sharepoint/webpartpages/ValidateWorkflowMarkupAndCreateSupportObjects", RequestNamespace="http://microsoft.com/sharepoint/webpartpages", ResponseNamespace="http://microsoft.com/sharepoint/webpartpages", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)] 
public string ValidateWorkflowMarkupAndCreateSupportObjects (
    string workflowMarkupText,
    string rulesText,
    string configBlob,
    string flag
)

Parameters

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.

Return Value

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

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.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker