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 Pages
Web 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
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("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.