Share via


WebPartPagesWebService.AssociateWorkflowMarkup Method

Creates a new SPWorkflowAssociation object on the task list defined in /WorkflowConfig/Association/@ListID value in the associate configuration file.

Namespace:  websvcWebPartPages
Assembly:  STSSOAP (in STSSOAP.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://microsoft.com/sharepoint/webpartpages/AssociateWorkflowMarkup", RequestNamespace := "https://microsoft.com/sharepoint/webpartpages",  _
    ResponseNamespace := "https://microsoft.com/sharepoint/webpartpages",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function AssociateWorkflowMarkup ( _
    configUrl As String, _
    configVersion As String _
) As String
'Usage
Dim instance As WebPartPagesWebService
Dim configUrl As String
Dim configVersion As String
Dim returnValue As String

returnValue = instance.AssociateWorkflowMarkup(configUrl, _
    configVersion)
[SoapDocumentMethodAttribute("https://microsoft.com/sharepoint/webpartpages/AssociateWorkflowMarkup", RequestNamespace = "https://microsoft.com/sharepoint/webpartpages", 
    ResponseNamespace = "https://microsoft.com/sharepoint/webpartpages", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public string AssociateWorkflowMarkup(
    string configUrl,
    string configVersion
)

Parameters

  • configUrl
    Type: System.String
    Web-relative URL to the configuration file in the Configuration File Format
  • configVersion
    Type: System.String
    Version number of the configuration file to be used.

Return Value

Type: System.String

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

websvcWebPartPages Namespace