Show All

# hwsWorkflow Element

Contains the information to enable the Workflow task pane and to enable individual actions and tasks associated with a Microsoft BizTalk 2004 Human Workflow Services (HWS) server.

## Type

`xsd:complexType`

## Child Elements

Element | Description
--- | ---
location | (Required) Contains the Uniform Resource Locator (URL) of the HWS Web service.
allowedActions | Contains the HWS actions enabled for the form.
allowedTasks | Contains the HWS tasks enabled for the form.

## Attributes

Attribute | Type | Required | Description | Possible Values
--- | --- | --- | --- | ---
taskpaneVisible | `xdYesNo` | No | Specifies whether the Workflow task pane is visible. Default value is "yes". | yes no

## Definition

    <xsd:element name="hwsWorkflow">
      <xsd:complexType>
        <xsd:sequence>
          <xsd:element ref="xsf:location" minOccurs="1" maxOccurs="1"/>
          <xsd:element ref="xsf:allowedActions" minOccurs="1" maxOccurs="1"/>
          <xsd:element ref="xsf:allowedTasks" minOccurs="0" maxOccurs="1"/>
        </xsd:sequence>
        <xsd:attribute name="taskpaneVisible" type="xsf:xdYesNo"></xsd:attribute>
      </xsd:complexType>
      <xsd:unique name="hws_actiontask_name">
        <xsd:selector xpath="./xsf:allowedActions/xsf:action|./xsf:allowedTasks/xsf:task"/>
        <xsd:field xpath="@name"/>
      </xsd:unique>
    </xsd:element>

## Remarks

For every action and task included in the hwsWorkflow element, a button is enabled on the Workflow task pane; however, the button event must be scripted manually for each action and task.

InfoPath does not support multiple actions in a form and does not support HWS activity models (predefined sets of actions).

Note This item is not supported when the Disable Service Pack features option on the Advanced tab of the Options dialog box in InfoPath is selected or when Microsoft Office 2003 Editions Service Pack 1 or later is not installed. Any form defined by a form definition file (.xsf) that includes this item cannot be opened in InfoPath when service pack features are disabled or unavailable.

## Example

The following is an example of the hwsWorkflow element:

    <xsf:hwsWorkflow taskpaneVisible="yes">
     <xsf:location url="http://www.contoso.com/hwsservice/hwsservice.asmx"/>
      <xsf:allowedActions>
       <xsf:action name="approval" actionTypeID="123"
        canInitiateWorkflow="yes" caption="Get Approval"/>
       <xsf:action name="delegate" actionTypeID="234"
        canInitiateWorkflow="no" caption="Delegate"/>
      </xsf:allowedActions>
      <xsf:allowedTasks>
       <xsf:task name="getManagerApproval" taskTypeID="435"
        caption="Send Response"/>
       <xsf:task name="getVPApproval" taskTypeID="436"
         caption ="Send Response"/>
       <xsf:task name="delegateToManager" taskTypeID="420"
         caption="Respond"/>
      </xsf:allowedTasks>
    </xsf:hwsWorkflow>

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp