locked
Opening custom task form in MOSS workflow RRS feed

  • Question

  • Hi all, I am working on MOSS workflows. I want to open custom task form which I have created in InfoPath 2007, however; when I endit the task it opens default task form, following are the listing of workflow.xml and feature.xml file. please advice what to do?

    workflow.xml

     

    <?xml version="1.0" encoding="utf-8" ?>

    <!-- Customize the text in square brackets.
    Remove brackets when filling in, e.g.
    Name="[NAME]" ==> Name="MyWorkflow" -->

    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
      <Workflow
         Name="TaskWorkflow"
         Description="My SharePoint Workflow"
         Id="3b21eb2c-f06b-4101-a5af-f5c9d25c7e9c"
         CodeBesideClass="TaskWorkflow.ThisWorkflow"
         CodeBesideAssembly="TaskWorkflow, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2dc03b0d15cd4acf"
      InstantiationUrl="_layouts/IniWrkflIP.aspx" >

        <Categories/>
        <MetaData>
      <Instantiation_FormURN>urn:schemas-microsoft-com:office:infopath:InitiationFormTemplate:-myXSD-2012-01-26T07-31-11</Instantiation_FormURN>
      <Task0_FormURN>urn:schemas-microsoft-com:office:infopath:TaskFormTemplate:-myXSD-2012-01-27T07-03-56</Task0_FormURN>
          <!-- Tags to specify InfoPath forms for the workflow; delete tags for forms that you do not have -->
          <!--<Association_FormURN>[URN FOR ASSOCIATION FORM]</Association_FormURN>
          
         
          <Task1_FormURN>[URN FOR TASK (type 1) FORM]</Task1_FormURN>-->
          <!-- Modification forms: create a unique guid for each modification form -->
          <!--<Modification_[UNIQUE GUID]_FormURN>[URN FOR MODIFICATION FORM]</Modification_[UNIQUE GUID]_FormURN>
          <Modification_[UNIQUE GUID]_Name>[NAME OF MODIFICATION TO BE DISPLAYED AS A LINK ON WORKFLOW STATUS PAGE</Modification_[UNIQUE GUID]_Name>
          -->
          <StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>
        </MetaData>
      </Workflow>
    </Elements>


     feature.xml

     

    <?xml version="1.0" encoding="utf-8" ?>

    <Feature  Id="11ff0fca-98bf-4ea5-b4ff-f5950033790f"
          Title="TaskWorkflow feature"
          Description="My SharePoint Workflow Feature"
          Version="12.0.0.0"
          Scope="Site"
          ReceiverAssembly="Microsoft.Office.Workflow.Feature, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
          ReceiverClass="Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver"
          xmlns="http://schemas.microsoft.com/sharepoint/">
     <ElementManifests>
      <ElementManifest Location="workflow.xml" />
      <ElementFile Location="InitiationFormTemplate.xsn"/>
      <ElementFile Location="TaskFormTemplate.xsn"/>
     </ElementManifests>
     <Properties>
      <Property Key="GloballyAvailable" Value="true" />

      <!-- Value for RegisterForms key indicates the path to the forms relative to feature file location -->
      <!-- if you don't have forms, use *.xsn -->
      <Property Key="RegisterForms" Value="*.xsn" />
     </Properties>
    </Feature>

     
    Tuesday, January 31, 2012 8:03 AM

Answers

All replies