Share via


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
  xdYesNo

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   If this element or attribute is in the form definition file (.xsf), InfoPath Forms Services will prevent the form template from being deployed to the server as a browser-compatible form.

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>