How to create a workflow Association in SharePoint Foundation?
Because the workflow association is not created until the custom association form is submitted, SharePoint Foundation also passes the following query parameters to the custom association form: The workflow developer must program what happens when the administrator submits changes to the form.
Where is the Association data stored in spworkflow?
The workflow association data is stored as XML in the AssociationData property of the appropriate SPWorkflowAssociation object. When a workflow instance starts, this data is also passed into the workflow via the AssociationData property of the SPWorkflowActivationProperties object.
When to use an association form in SharePoint?
Association forms are displayed to administrators when they first decide to add—or associate—a workflow with a particular list, document library, or content type.
What makes a site workflow different from other workflows?
A site workflow is associated to a site — not to a list, library, or content type. So unlike most workflows, a site workflow is not running on a specific list item. Because of this, many of the actions that are available for items not available for site workflows.
What does on workflowactivated activity do in SharePoint?
The OnWorkflowActivated activity contains a property, WorkflowProperties, that returns an SPWorkflowActivationProperties object. This object represents the initial properties of the workflow as it starts, such as the user who added the workflow and the list and item to which the workflow was added.
How to create an initiation form in workflow?
If you want your workflow to have an initiation form, you must set the InstantiationURL attribute of the Workflow element in the workflow template definition. Set this element to the form you want to use to collect the workflow initiation data, as shown in the following example.