Form Support in Workflows
Four types of forms can be used in a workflow: association, initiation, task, and modification. These form types can be based on either an ASPX form or an InfoPath form. The level of support that Visual Studio provides for a particular form depends on several factors, which are described in the following tables. For more information about workflow form types, see Workflow Forms Overview on the MSDN Web site.
When you add an ASPX association or initiation form to a Visual Studio workflow project item, Visual Studio automatically refactors the XML in the workflow's Elements.xml file to keep the attribute that refers to the association or initiation form in sync whenever the form name or deployment path is updated or the form is deleted. However, when you use other form types in a workflow, such as a task or modification form, the Elements.xml file is not refactored.
The following table lists Visual Studio support for different form types on either ASPX or InfoPath forms in workflows that are created in Visual Studio.
|
Form Type |
Workflow created in Visual Studio with an ASPX Form |
Workflow created in Visual Studio by using an InfoPath Form |
|---|---|---|
|
Association |
|
|
|
Initiation |
|
|
|
Task |
|
|
|
Modification |
|
|
The following table lists Visual Studio support for different form types on either ASPX or InfoPath forms in SharePoint reusable workflows that are imported into Visual Studio.
|
Form Type |
Reusable workflow that has an ASPX form imported from SharePoint Designer |
Reusable workflow that has an InfoPath form imported from SharePoint Designer |
|---|---|---|
|
Association |
|
|
|
Initiation |
|
NoteRules and properties must be added and changed for this scenario to work. |
|
Task |
|
NoteRules and properties must be added and changed for this scenario to work. |
|
Modification |
Not applicable. ASPX modification forms cannot be created in SharePoint Designer. |
Not applicable. InfoPath modification forms cannot be created in SharePoint Designer, except for the built-in SharePoint Server workflow, which is not included in the .wsp file when the workflow is exported. |
Note