Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
After the updated workflow (2) files are uploaded to the server, the client validates and compiles them by calling the ValidateWorkflowMarkupAndCreateSupportObjects operation on this protocol, passing it the URL of the workflow configuration file that was just uploaded and a server implementation-specific flag parameter. (The server implementation could require that this operation be called more than once with different values for the flag parameter.)
A sample request is similar to the following:
-
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ValidateWorkflowMarkupAndCreateSupportObjects xmlns="http://microsoft.com/sharepoint/webpartpages"> <workflowMarkupText><ns0:RootWorkflowActivityWithData x:Class="Microsoft.SharePoint.Workflow.ROOT" x:Name="ROOT" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/workflow" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:ns0="clr-namespace:Microsoft.SharePoint.WorkflowActions;Assembly=Microsoft.SharePoint.WorkflowActions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=null"> <ns0:RootWorkflowActivityWithData.WorkflowFields> <ns0:WorkflowDataField Name="__list" Type="System.String" /> <ns0:WorkflowDataField Name="__item" Type="Microsoft.SharePoint.Workflow.SPItemKey, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" /> <ns0:WorkflowDataField Name="__context" Type="Microsoft.SharePoint.WorkflowActions.WorkflowContext" /> <ns0:WorkflowDataField Name="__initParams" Type="Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties" /> <ns0:WorkflowDataField Name="__workflowId" Type="System.Guid" /> <ns0:WorkflowDataField Name="__historylist" Type="System.String" /> <ns0:WorkflowDataField Name="__tasklist" Type="System.String" /> <ns0:WorkflowDataField Name="__itemId" Type="System.Int32" /> </ns0:RootWorkflowActivityWithData.WorkflowFields> <ns0:OnWorkflowActivated WorkflowProperties="{ActivityBind ROOT,Path=__initParams}" x:Name="ID1"> <ns0:OnWorkflowActivated.CorrelationToken> <wf0:CorrelationToken Name="refObject" OwnerActivityName="ROOT" xmlns:wf0="http://schemas.microsoft.com/winfx/2006/xaml/workflow" /> </ns0:OnWorkflowActivated.CorrelationToken> </ns0:OnWorkflowActivated> <ns0:ApplyActivation __Context="{ActivityBind ROOT,Path=__context}" x:Name="ID2" __WorkflowProperties="{ActivityBind ROOT,Path=__initParams}" /> <SequenceActivity x:Name="ID3" Description="Step 1" /> </ns0:RootWorkflowActivityWithData></workflowMarkupText> <rulesText></rulesText><configBlob><WorkflowConfig Version="14.0.0.4730"> <Template BaseID="{0501C0DC-A90D-4464-B880-8C0A15D5ACED}" DocLibID="{6E0D3D35-7B8F-4CA7-A770-2BB09374209F}" Category="List" Name="Simul-Flow" Description=""/> <Association ListID="{2843EA1B-EFE1-4FCC-A39B-A46121D3EFD6}" TaskListID="{6F387CC4-889C-4BCF-81DB-16683596A2DD}" StartManually="true"/> <ContentTypes/> <Initiation URL="Workflows/Simul-Flow/Simul-Flow.aspx"> <Fields/> <Parameters/> <DefaultData/> </Initiation> <Extended> <Fields/> </Extended> <MetaData> <ExtendedStatusColumnValues> <StatusColumnValue>Canceled</StatusColumnValue> <StatusColumnValue>Approved</StatusColumnValue> <StatusColumnValue>Rejected</StatusColumnValue> </ExtendedStatusColumnValues> </MetaData> </WorkflowConfig> </configBlob> <flag>2</flag> </ValidateWorkflowMarkupAndCreateSupportObjects> </soap:Body> </soap:Envelope>
A sample response is similar to the following:
-
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <ValidateWorkflowMarkupAndCreateSupportObjectsResponse xmlns="http://microsoft.com/sharepoint/webpartpages"> <ValidateWorkflowMarkupAndCreateSupportObjectsResult><Success><TaskList ID="{6F387CC4-889C-4BCF-81DB-16683596A2DD}" /></Success></ValidateWorkflowMarkupAndCreateSupportObjectsResult> </ValidateWorkflowMarkupAndCreateSupportObjectsResponse> </soap:Body> </soap:Envelope>