none
associate workflow task forms with custom content types in farm solution in state machine workflow [ without workflow manager] RRS feed

  • Question

  • I have question regarding the ASPX Forms that has to be created in a custom manner for the Workflow Tasks. I was wondering if it is possible with the help of custom content types.

    in my elements.xml file i have tried to create / associate the custom content types and associate it with workflow.

    am not using the WF Manager here.

    [ state machine workflow farm solution using VS 2013 with SP 2013 SP1 ] 

    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">

     <ContentType ID="0x010801009DD4025A36E44A3EB70A6346BA794C9D"
                  Name="ContentType1reviewer1workflowtask1"
                   Group="PPF Custom Content Types"
                     Description="this CT is for Reviewer1 Review custom aspx form in PPF" 
                   Inherits="TRUE" Version="0">
        <FieldRefs></FieldRefs>
        <XmlDocuments>
          <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url">
            <FormUrls xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url">
              <Edit>_layouts/VSStateMacTesting0401_WFForms/Reviewer1ReviewFormPage1.aspx</Edit>
              <Display>_layouts/VSStateMacTesting0401_WFForms/Reviewer1ReviewFormPage1.aspx</Display>
            </FormUrls>
          </XmlDocument>
        </XmlDocuments>
      </ContentType>






      <ContentType ID="0x01080100C40B38F3C0B94B28A88DFC7A9C57A635" 
                   Name="ContentType2forinitiatorresubmit1"
                   Group="PPF Custom Content Types" 
                   Description="this CT is for InitatorResubmit custom aspx form in PPF" 
                   Inherits="TRUE" Version="0">
        <FieldRefs>
        </FieldRefs>
        <XmlDocuments>
          <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url">
            <FormUrls xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url">
              <Edit>_layouts/VSStateMacTesting0401_WFForms/InitiatorReSubmitFormPage1.aspx</Edit>
              <Display>_layouts/VSStateMacTesting0401_WFForms/InitiatorReSubmitFormPage1.aspx</Display>
            </FormUrls>
          </XmlDocument>
        </XmlDocuments>
      </ContentType>

    <Workflow
         Name="VSWF030120171150PM - statemachine1Workflow1"
         Description="My SharePoint Workflow"
         Id="5bf83d33-ce60-45ec-bbc0-899a8ed9aa37"
         CodeBesideClass="VSWF030120171150PM.statemachine1Workflow1.statemachine1Workflow1"
         CodeBesideAssembly="$assemblyname$">
        <Categories/>
        <MetaData>
          <AssociationCategories>ContentType</AssociationCategories>
          <!-- 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>
           <Instantiation_FormURN>[URN FOR INSTANTIATION FORM]</Instantiation_FormURN>
          <Task0_FormURN>[URN FOR TASK (type 0) FORM]</Task0_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>

      but when i see, a task is created in the tasks list, and when i clicked on the wrkstatip.aspx page's task item  "please review the document" and i am not able to navigate to the custom aspx form i have created with the help of custom content type.

    i am wondering , why this association didnt happen ! 

     

     

    when i see the link of the , am  seeing the  below link, instead of my custom aspx form page url.

    http://srvr-02:1000/sites/site123/_Layouts/listform.aspx?PageType=4&ListId={47251D1F-B197-414B-AF94-BF4B4573458B}&ID=16

    

    ################################

    

    Have others had this problem?

    







    • Edited by SaMolPP Friday, January 13, 2017 5:32 PM
    Friday, January 6, 2017 9:56 AM