2
votes

I am having issues trying to implement a workflow that pops up a infopath form when the workflow is activated. I followed the code project tutorial which gives a great example on how to link forms to tasks, but I have not been able to find any examples that uses Infopath forms for initiation and associated forms.

My current workflow elements.xml file looks like this after running the tutorial:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Workflow
     Name="DocReview - DocReview"
     Description="My SharePoint Workflow"
     Id="fdfd5e60-2210-4f67-9883-085090181816"
     CodeBesideClass="DocReview.Workflow1.Workflow1"
     CodeBesideAssembly="$assemblyname$"
     TaskListContentTypeId="0x01080100C9C9515DE4E24001905074F980F93160">
    <Categories/>
    <AssociationData>
      <Data></Data>
    </AssociationData>
    <MetaData>
      <AssociationCategories>List</AssociationCategories>
        <Task0_FormURN>urn:schemas-microsoft-com:office:infopath:StartDocumentReview:-myXSD-2012-03-19T05-38-09</Task0_FormURN>
      <StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>
    </MetaData>
  </Workflow>
</Elements>

I tried adding a the Instantiation_FormURN and Association_FormURN elements in the elements.xml file using the same form but still cannot pop up the form on workflow activation. What m I missing?

2

2 Answers

0
votes

To achieve this, the workflow element requires the following attribute InstantiationURL="_layouts/IniWrkflIP.aspx". This works in conjunction with the Instantiation_FormURN element.

Checkout MSDN for more info.