Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: sharepoint2010
Hi All,
 
I am new to Infopath and Workflows. I have a task given for workflow as below. Please help me out what would be the workflow needed(Sequential or state machine) and also how to achieve this. If any code given is more appreciated.
 
Below is the requirement:
1) "Test" Form library created in sharepoint 2010.
2) "Add document" to the form library is a infopath form filled and submitted(can be n number of forms)
3) Infopath form has few fields(like ManagerId and ManagerName) and has 2 buttons(Save and Submit)
"Save" --- only save the infopath form in the library- NO action taken(no workflow attached)
When click on submit, workflows needs to start.
 
4) Workflow process: Whenever new infopath form filled and submitted:-
1) Sets the workflow task field in library as "Submitted for Authorization".
2) Sets the "Is Submitted" field in library as "No".
3) Creates a temporary form library("Sample") and Copy all the Infoth path forms published to Form libray("Test") (where workflow task field = "Submitted for Authorization"])
4) capture ManagerId and ManagerName from the infopath form
5) Sends an email to the Manager(Manager is based on the ManagerId and ManagerName)- stating to authorize the form.
There is few lines to mail description(need to write). Also the mail contains a sharepoint site link to newly created Form Library "Sample" where all the forms are waiting for Authorization.
6) Manager clicks on the link, checks all the infopath form and approves.
7) Once forms are approved change the workflow task field to "Authorized" and "Is Submitted" field to "Yes" in both form libraries(Test and Sample)
8) Need to update the database table same time for the Is submiited flag as same.
9) Delete all the forms from the "Sample" form libray where task = Authorized.
 
Thanks in Advance
Posted 11-Oct-12 4:48am
Edited 14-Oct-12 22:52pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Shai Vashdi 963
1 Tadit Dash 270
2 Sergey Alexandrovich Kryukov 250
3 OriginalGriff 233
4 Peter Leow 180
0 Sergey Alexandrovich Kryukov 9,435
1 OriginalGriff 5,498
2 Peter Leow 4,230
3 Maciej Los 3,540
4 Abhinav S 3,353


Advertise | Privacy | Mobile
Web02 | 2.8.140415.2 | Last Updated 15 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid