WebPartPagesWebService.AssociateWorkflowMarkup Method
Creates a new SPWorkflowAssociation object on the task list defined in /WorkflowConfig/Association/@ListID value in the associate configuration file.
Web Service: Web Part PagesWeb Reference: http://<Site>/_vti_bin/WebPartPages.asmx
Syntax
<SoapDocumentMethodAttribute("http://microsoft.com/sharepoint/webpartpages/AssociateWorkflowMarkup", RequestNamespace:="http://microsoft.com/sharepoint/webpartpages", ResponseNamespace:="http://microsoft.com/sharepoint/webpartpages", Use:=SoapBindingUse.Literal, ParameterStyle:=SoapParameterStyle.Wrapped)> _
Public Function AssociateWorkflowMarkup ( _
configUrl As String, _
configVersion As String _
) As String
Dim instance As WebPartPagesWebService
Dim configUrl As String
Dim configVersion As String
Dim returnValue As String
returnValue = instance.AssociateWorkflowMarkup(configUrl, configVersion)
[SoapDocumentMethodAttribute("http://microsoft.com/sharepoint/webpartpages/AssociateWorkflowMarkup", RequestNamespace="http://microsoft.com/sharepoint/webpartpages", ResponseNamespace="http://microsoft.com/sharepoint/webpartpages", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)]
public string AssociateWorkflowMarkup (
string configUrl,
string configVersion
)
Parameters
- configUrl
Web-relative URL to the configuration file in the Configuration File Format
- configVersion
Version number of the configuration file to be used.
Remarks
This method modifies older versions of the specified workflow and sets a value that allows no new instances; all version will share the same status column in the list.
All versions of the workflow are recognized as the same, which is based on the /WorkflowConfig/Template/@BaseID value.
Other properties that are defined in the configuration file include, but are not limited to, the following:
The name of the workflow.
The initiation parameters to use, as well as their default values.
The location of the XOML and the RULES, as well as which version to use for each.
The conditions under which the workflow starts.
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
Web Part Pages Web Service