Listing 1: The hwsWorkflow section

<xsf:hwsWorkflow taskpaneVisible="yes">
   <xsf:location url="http://m3bts01/hwsservice/hwsservice.asmx"></xsf:location>
      <xsf:allowedActions>
         <xsf:action name="Assign" 
		 actionTypeID="f7616363-48e9-fb4c-8a7e-6c9ce303b5e5" 
		 canInitiateWorkflow="yes" 
		 caption="Assign for Approval">
         </xsf:action>
         <xsf:action name="Delegate"
		 actionTypeID="424B4CC1-88FF-A29F-03C6-937D6D6061A5" 
		 canInitiateWorkflow="no" 
		 caption="Delegate for Approval">
         </xsf:action>
      </xsf:allowedActions>
      <xsf:allowedTasks>
         <xsf:task name="RespondToAssignment"
		  taskTypeID="http://tempuri.org/Hws_Task_Message" 
		  caption="Respond to Assignment">
         </xsf:task>
      </xsf:allowedTasks>
</xsf:hwsWorkflow>

Listing 2:?An adapter used to initiate the workflow

<xsf:dataAdapters>
   <xsf:hwsAdapter name="Assign"
 wsdlUrl=http://m3bts01/hwsservice/hwsservice.asmx?WSDL
 submitAllowed="yes"
 queryAllowed="no">
       <xsf:hwsOperation type="addActionToNewActivityFlow" 
	   typeID="f7616363-48e9-fb4c-8a7e-6c9ce303b5e5" 
	   serviceUrl="http://m3bts01/hwsservice/hwsservice.asmx">
   <xsf:input source="Activation.xml">
      <xsf:partFragment 
	  match="ActionSection/Task/Target"
	  replaceWith="/ar:absenceRequest/ar:manager/ar:name/ar:singleName">
      </xsf:partFragment>
	      <xsf:partFragment 
match="ActionSection/Task/Description"
replaceWith="/ar:absenceRequest/ar:contact/ar:name/ar:singleName">
      </xsf:partFragment>
	   </xsf:input>
      </xsf:hwsOperation>
</xsf:hwsAdapter>
</xsf:dataAdapters>

Additional Source Code is Available For This Article.