How to REpublish Custom Task Forms (InfoPath) to SharePoint 2010 State Machine Workflows

I am new to SharePoint. Sorry if answer to my question is obvious.
I've create Custom Task Form in InfoPath and publish it (File/Publish/Network Location [Form Template Path and filename='MYPROJECT/Forms/ApprovalForm.xsn'; Form template name='ApprovalForm'], in the next window I've cleared Public URL according to the articlehttp://www.codeproject.com/Articles/195348/SharePoint-2010-State-Machine-Workflows-with-Custo).
After it I've added module Forms, and added ApprovalForm.xsn from the existing items.
My xml files: Elements.xml
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Workflow
Name="Order New Server"
Description="My SharePoint Workflow"
Id="482cbc86-b717-4981-a49a-3cf4c89e9399"
CodeBesideClass="Myproj.OrderNewServer.OrderNewServer"
CodeBesideAssembly="$assemblyname$"
TaskListContentTypeId="0x01080100C9C9515DE4E24001905074F980F93160">
<Categories/>
<AssociationData><Data></Data></AssociationData>
<MetaData>
<AssociationCategories>List</AssociationCategories>
<Task2_FormURN>urn:schemas-microsoft-com:office:infopath:ApprovalForm:-myXSD-2012-03-09T14-11-55</Task2_FormURN>
<StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>
</MetaData>
</Workflow>
</Elements>
Feature.Template.xml:
<?xml version="1.0" encoding="utf-8" ?>
<Feature xmlns="http://schemas.microsoft.com/sharepoint/" ReceiverAssembly="Microsoft.Office.Workflow.Feature, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Receiverlass="Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver">
<Properties>
<Property Key="GloballyAvailable" Value="true" />
<Property Key="RegisterForms" Value="Forms\*.xsn"/>
</Properties>
</Feature>
My form work fine, but when I make changes and republish it, it doesn't update (I see old form). What I tryed:
IISReset
Clear all cookies and cache in IE
Retract solution, restart VS2010, reboot computer.
Change assembly number, guid.
I have no ideas, what can I try for republish my form with changes.
Thank you in advance for any suggestions.
PS: sorry for my writing. English is not my native language.
PPS: when I save new Form to new location and add it to the project, it works.

I've found how can I republish changes. But it seems more like crutch than solution, but it works:
After republishing InfoPath form, I delete file from project (DEL on ApprovalForm.xsn in Solution explorer) and after it add it again. (Add/Existing Item). And then redeploy! Hurray!
Is there any way to redeploy a Task Form directly on the server without importing it in Visual Studio again? I am using some data connections in my task form which are different for different environments (staging, dev. etc.). Seems like I've to create a separate
Workflow WSP file for each envrionment. Any comments?

Similar Messages

  • Sharepoint 2010 Designer workflow Custom Task Form

    Hello,
    could you please help me to customize the WF Task form using SharePoint Designer?
    My requirement is to create the SPD 2010 WF with custom task form where i can add the controls as per the form requirement and I need to add Attachment control too to upload the file on Task Form. 
    Could you please advise me that how can I achieve it using SPD only (Without Infopath form)?
    (Through Infopath its pretty easy to customize the Task Form, but I need to customize it through SPD only)
    Thank You In advance!
    Regards,
    Santosh

    Hi Santosh,
    For your demand, you can  change the workflow task form to aspx pages and than customize the page .You can edit the content type created by the workflow to use the aspx pages :
    Publish the workflow and it will have the task form created .The form name will be like Approval_x0028_25_x0029_.xsn .
    The content type created by the workflow will also have the name Approval_x0028_25_x0029_.
    Open the Tasks list in SharePoint Designer .Find the content type Approval_x0028_25_x0029_and edit it .
    In the Forms section ,you can change the display form and edit form to be aspx pages for the content type  .The workflow task will use the aspx page .I used the default task forms in my test and the URL is like:/Lists/Tasks/EditForm.aspx.
    Save the changes .
    Reference:
    https://social.msdn.microsoft.com/Forums/office/en-US/02615820-ea7d-487d-825b-0a72e300cb59/how-to-replace-custom-aspx-task-form-with-default-spd-task-form-in-sharepoint-designer-workflow?forum=sharepointcustomizationprevious
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Form Filler Yellow Task Bar Link Does Not Open task or do anything SharePoint 2010 InfoPath 2010

    Form Filler Yellow Task Bar Link Does Not Open task or do anything (SharePoint 2010 InfoPath 2010)
    Using a SPD workflow to run a approval process. This is a non-browser form. User receives task notification, opens form in IP Form Filler and sees yellow task bar notification. User Clicks on open task, nothing happens... OS = XP, On Win7
    = We get a never ending download box, and several logon security windows
    Attempted Fixes
    Clear
    InfoPath Cache
    Workflow History Looks good

    Hi,
    I understand that when you click on Edit this task in the message bar in InfoPath 2010, nothing happens. Does this happen when you open the email which contains the ‘Edit this task’ link?
    If so, you can try to check whether this key is in your regedit. If so, you can delete this key and have a test.:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\ActiveX Compatibility\{00000000-0000-0000-0000-000000000000}
    Back up the regedit keys before making any changes. For more information about backup and restore the regedit, please refer to these sites:
    Fix “Edit this task” In Outlook 2007:
    http://vettekerry.wordpress.com/2008/06/11/edit-this-task-in-outlook-2007-doesnt-work/
    How to back up and restore the registry in Windows XP:
    http://support.microsoft.com/kb/322756?wa=wsignin1.0#method1
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

  • SharePoint 2013 Workflow Custom Task Form

    Hi..I am working on SharePoint 2013 workflow using visual studio 2013. In this workflow, i am creating tasks and i want to make a custom task form.
    My workflow contains serial tasks. When each user approve, he should specify the next user.
    I have added a custom content type and assigned it to my tasks but all i can do is taking the outcome from the task form as integers.
    I want the user to approve and choose another user so i can assign another task to him.
    thanks..

    I believe what you're looking for is the Collect Data from User function, however I don't see that anywhere in a 2013 workflow. This did exist in 2010 workflows.
    What you can do is to change this to an InfoPath form and run the workflow that way, assuming there isn't anything you absolutely need Visual Studio for.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • Bpel simple custom task   form jsp not run

    Hi i am try to run a bpel simple custom task form deploy in oas 10.1.3 , but i recive this error
    This put down in spanish is like "recive invalid element in getContext"
    at ...
    Error de elemento no válido en el servicio de verificación. Se ha recibido el elemento no válido en getContext
    Compruebe la excepción subyacente y corrija el error. Póngase en contacto con los Servicios de Soporte Oracle si no se puede corregir
    el error.
    at oracle.bpel.services.workflow.verification.impl.VerificationService.getContext(VerificationService.java:516)
    at oracle.bpel.services.workflow.query.impl.TaskQueryService.getWorkflowContext(TaskQueryService.java:150)
    at CompCli.jspService(_CompCli.java:93)
    Do you have any idea ??

    I guess you mean accessing the task details and the payload from the java API.
    Refer the below blog it will provide you the details
    http://www.albinsblog.com/2012/05/update-human-task-payload-via-java-api.html
    Regards
    Albin I
    Edited by: Albin on Sep 19, 2012 11:24 PM

  • How to update task status from custom task in state machine workflow

    i m using custom task for state machine workflow
    i am using
    if(this.onTaskChangedSupervisorAction_AfterProperties.ExtendedProperties["Workflowstatus"].ToString().Contains("Approved"))
    if above is true moving forward its working fine but i want to update the status field of task as i can update the title and due date for the task but how can i change the status once approved it
    should show the status as approved it's only showing in progress
    this.CreateTaskSupervisorAction_TaskProperties.Title="supervisor task"
    MCTS,ITIL

    If your task shows In Progress state then I think you need to look at your workflow and make sure you are using Complete Task activity and if you are already using Complete Task Activity then verify the Correlation ID. Ideally you are not required to set
    this value in workflow. You simply use the Complete Task Activity.
    If you are running into issue where your workflow is staying in In Progress state even after the task is complete then you can look at the following blog post.
    How to programmatically complete Approval workflow task
    Amit

  • How to create custom report form in OracleBIAnalyticsApps

    hi,
    i have installed OracleBIAnalyticsApps with OBIEE , R12 instance , Informatica,dac on machine...in r12 instance have 1 custom schema...i want to import that schema into OracleBIAnalyticsApps rpd so that can build custom reports on it...any one knows how to do it? Is Any documentation/guidelines is there for the same...

    Hi,
     Robert Shelton's Blog is having very good collection of the video tutorial:
    http://www.sheltonblog.com/archive/2007/11/04/series-of-sharepoint-workflow-how-to-videos.aspx
    Please go through the Multilevel approval workflow for more information on state machine workflow
    http://sheltonblog.com/archive/2007/11/27/how-to-video-building-a-multilevel-approval-workflow-with-sharepoint.aspx
    Thanks,
    sangati

  • Custom Login Web Part In SharePoint 2010 Forms Based

    Hi ,
    Im trying to make Custom Login Web Part In SharePoint 2010 Forms Based , all membership configration is done . 
    my question is why (Login1.username , Login1.password ) give this error : 
     login1 does not exist in the current context
    protected
    void
    Login1_Authenticate(object
    sender, AuthenticateEventArgs e)
    02        {
    03            string
    membership = "MembershipProvider";
    04            string
    role = "RoleProvider";
    05 
    06            e.Authenticated
    = SPClaimsUtility.AuthenticateFormsUser(new
    Uri(SPContext.Current.Web.Url),Login1.UserName,Login1.Password);
    07 
    08            if
    (!e.Authenticated) return;
    09 
    10            SecurityToken
    token = SPSecurityContext.SecurityTokenForFormsAuthentication(new
    Uri(SPContext.Current.Web.Url), membership, role,
    Login1.UserName,
    Login1.Password);

    Error 1 No overload for method 'SecurityTokenForFormsAuthentication' takes 3 arguments
    Error 2 The name Wss doesnot exisit in current context 
    Can anyone give sugeestion please 
    cant recitfy this error 
    protected void Login1_Authenticate(object sender,
    AuthenticateEventArgs e)
    02        {
    03            string membership
    = "MembershipProvider";
    04            string role
    = "RoleProvider";
    05 
    06            e.Authenticated
    = SPClaimsUtility.AuthenticateFormsUser(newUri(SPContext.Current.Web.Url),Login1.UserName,Login1.Password);
    07 
    08            if (!e.Authenticated) return;
    09 
    10            SecurityToken
    token = SPSecurityContext.SecurityTokenForFormsAuthentication(newUri(SPContext.Current.Web.Url),
    membership, role,
    Login1.UserName,
    Login1.Password);

  • Assigning a single task to multiple users in a state machine/ sp d workflow

     hi,
    i have a requirement to implement a   workflow based soln.
    step1 : approver1 will select few documents , which is provide as a link , with other columns in a  gridview
    approver1  clicks on a  button send to doclib1 and its moved and inserted into doclib1 
    my workflow should start.
    step2 : a task is assigned to leadconsultant1 and a item/items is created in  the task list.
    leadconsultant1 will review  the document/documents and send back to approver1 if its ok.approver1 then send this info  to the requestor offline.
    step3 :  if leadconsultant1 is not reviewing the document , he can select few consultants [asue peoplpickwer control is avlble] and assign same document to multiple consultants.
    so here comes the complex part : in a visual studio statemachine workflow , how can i assign single task to multiple users also, when a user completes his task [ means reviews the document the workflow  will not be completed. and workflow will be completed
    ONLY WHEN  all the users selected by the leadconsultant1 completes their review].
    or is there  anyway in sp designer 2013, i can achieve the same scenario?
      help or pointers are highly appreciated!

    Hi Benjamin KNR,
    For this issue, in the first level approval, you can use custom task form to add a field for approvals to add the consultants to approve next.
    Then on this task changed event, get the consultants fields value from the task, set the value to a custom field in current item to record the consultants value.
    Go to next state, to create next approval task for consultants. Set the task AssignedTo to the fields that store the consultants value.
    On the event driven state, onTaskChanged event, check all task status, if all the tasks have been approved, then go to next state.
    Thanks,
    Qiao Wei
    TechNet Community Support

  • Stat machine workflow task workflow status different values on different state activity(Approval level)

    i have developed the State machine workflow in which i am using default workflow task
    i have added one status dropdown and that is having approve or reject that i set using workflow task drop down values
    now my requirement is that when my workflow goes to different approval i need to have different status values in dropdown
    for example
    on manager approval state activity i need to add additional status value forward to legal
    but when it moved to next activity this task status field should show only approve and reject
    in summary i need to have different status values for workflow task when it moved to different state activity(approval levels)
    can we set these status field of task for state machine workflow programtically as well like for different approval level of task i need different status to be set for the dropdown of task status field
    MCTS,ITIL

    Hi Shahid Siddique,
    I have seen a similar thread from you about this issue, create custom form for the seperate form is a considerable workaround, you can have a check whether it works.
    http://social.technet.microsoft.com/Forums/en-US/9baa0c32-1cde-4c58-aa7c-3568ccf0cdc9/different-approval-level-of-task-i-need-different-status-to-be-set-for-the-dropdown-of-task-status?forum=sharepointdevelopmentprevious
    Thanks,
    Qiao Wei
    TechNet Community Support

  • Submitting a pdf form to a SharePoint 2010 library

    Hello,
    I have a pdf form that was created in Adobe LiveCycle. Right now the submit form button it configured to send the form to an email address. I need to be able to submit the form to a SharePoint 2010 document library but I can't get it to work. I get to the point where I can select the document library. A test document is send with "Testing Writeablility" inside but I am not able to click next to finalize the process. I have included a picture of where I get stuck at.
    Is it possible to have a submit button send the form to a SharePoint library?
    If it is can anyone please explain what I am doing wrong?
    Thank you very much.

    In case you need more, than just to save form in library as a file... Take a look on www.pdfshareforms.com. PDF Share Forms is a product wich allows to integrate PDF forms to SharePoint. It provides very powerful functionality: bi-directional data sync between form fields and SharePoint columns, offline support, digital signatures, workflows, etc.

  • Create Multiple tasks for Single Item in List using state machine workflow in sharepoint

    Hi,
    I want to create multiple create tasks for Single Item in List based on Assigned to column using state machine Workflow through visual studio
    Here Assigned to column allows multiple users. so i have to create task for every user based on column .
    I'm trying for this but i didn't got any solution
    Please provide solution for this.

    Hi,
    According to your post, my understanding is that you wanted to allow multiple users to approve.
    There are some articles about creating parallel tasks in state machine workflow, you can have a look at them.
    http://www.codeproject.com/Articles/477849/Create-Parallel-Task-in-State-Machine-Workflow-in
    http://msdn.microsoft.com/en-us/library/office/hh128697(v=office.14).aspx
    http://social.technet.microsoft.com/Forums/office/en-US/b16ee858-4360-479a-a686-4ee35b7be9db/sharepoint-2010-workflow-creating-multiple-tasks?forum=sharepointdevelopmentprevious
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to debug Sequential workflow and state machine workflow?

    Hi All,
    How to debug Sequential workflow and state machine workflow?
    Thanks in Advance!

    check this
    http://msdn.microsoft.com/en-IN/library/bb386166(v=vs.90).aspx
    http://msdn.microsoft.com/en-us/library/vstudio/ee231573(v=vs.100).aspx

  • [ADF custom task form] How to get logged user in Worklist app?

    Hi!
    How to get the user id, logged in Worklist application in a managed bean? I'm creating ADF task form for human task and i have to know which user is logged in.
    Thx!

    &lt;af:outputText value="Authenticated User: #{securityContext.userName}" id="ot2"/>
    or via standard j2se apis (Subject.getSubject(..))
    hth clemens (http://blogs.oracle.com/soabpm)

  • Help Renaming Workflow Custom Task Forms

    I've got a custom workflow which has a few "Start Custom Task Process" actions. When I created them, the default names were Task (1), Task (2), etc. But I have renamed the Task within the Workflow. When I look at the Form's section of my Workflow in SharePoint
    Designer, the File Names for those forms are Task_x0028_1_x0029_.xsn, Task_x0028_2_x0029_.xsn, etc. I can open the Form's in InfoPath and do the editing I want to, but I cannot get them renamed on the SharePoint server.
    I've tried going to the Task Lists from within the Workflow via Customization>Open Task List, and then renaming them from there but that doesn't work. I've also tried renaming the actual file via Navigation>All Files>Workflows>Workflow Name but
    that just breaks the link to the form when the task is executed.
    Does anyone have any suggestions on how to rename these and have them show up with the proper name within the "Forms" section when working on the workflow?

    I've found that when creating a "Start Custom Task Process" action -- the task is given a name, which by default will be "Task n" ... Even after renaming it --
    prior to saving/publishing -- the name of the XSN file will be "Task_x0028_n_x0029_.xsn" and the name of the content type is still "Task _x0028_n_x0029_" -- which isn't ideal ....  in large organizations with multiple workflow taks, this can get
    really hairy, really quick. 
    While there are no errors or conflicts -- if these can't be renamed, they might as well be referenced by GUIDs and not have human-readable names!
    Fortunately, the tip from Dennis at the bottom of this post describes perfectly how to rename the file by the back end .... it likely isn't for the feint of heart, changing the XML file [doing so inproperly can break the workflow] -- but it does work. 
    In addition to that tip, I'd recommend revising the name of the content type from Site Content Types -- this can be done from the UI and there's no need to edit the wfconfig.xml with the changes.
    EDIT:
    One more thing, the  "Copy & Modify" function within SharePoint Designer which can be used to make copies of workflows -- when using this function, the custom task will be created as  "Task (n) copy" and will need to be renamed.

Maybe you are looking for