full trust workflow deploy. - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

full trust workflow deploy.

Last post 03-18-2009 12:50 PM by MrWonderful. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-17-2009 07:49 AM

    full trust workflow deploy.

    I have  a task form that requires full trust it accesses numerous lists. My question is how to deploy it in a workflow. Do I just install it with central admin and include it in my feature.xml and workflow.xml.

     

  • 03-18-2009 12:50 PM In reply to

    Re: full trust workflow deploy.

    This seems to have worked will update if it turns out not to be true.

    The steps I took use infopath to publish the form to Sharepoint you choose the server on the 3rd screen choose the enable this form to be filled out using a browser and then publish it to the visual studio 2008 project folder that your workflow is in.

     Include the file in the feature.xml 

    <Feature  Id="21186f98-095a-4099-b9b1-ece1b52fcf89"
          Title="VarianceRequestContributionWorkflow 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="ContributorTask.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>

     include the appropriate urn for the form get this under file properties in infopath in the workflow.xml.

    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
      <Workflow
         Name="VarianceRequestContributionWorkflow"
         Description="My SharePoint Workflow"
         Id="5bd5b934-1a90-42fc-83ee-f965ad4e058a"
         CodeBesideClass="VarianceRequestContributionWorkflow.Workflow1"
         CodeBesideAssembly="VarianceRequestContributionWorkflow, Version=1.0.0.0, Culture=neutral, PublicKeyToken=54cb6dd1059f370d"
       AssociationUrl="_layouts/CstWrkflIP.aspx"
       InstantiationUrl="_layouts/IniWrkflIP.aspx"
       ModificationUrl="_layouts/ModWrkflIP.aspx">  
       <Categories/>
        <MetaData>
          <Task0_FormURN>urn:schemas-microsoft-com:office:infopath:ContributorTask:-myXSD-2009-03-11T20-44-42</Task0_FormURN>
          <StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>
        </MetaData>
      </Workflow>
    </Elements>

    I also copied the dll from the form code to the feature directory. C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\TEMPLATE\FEATURES\VarianceRequestWorkflow.

     Then in central Admin goto application management. Then manage form templates and you should see your form which should be ready and wokflow enabled.

     The last thing  to do is click on the form drop down and activate to a site collection.

     

     

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.