THE WORKFLOW OBJECT MODEL in Microsoft Word

Creator Data Matrix ECC200 in Microsoft Word THE WORKFLOW OBJECT MODEL

CHAPTER 10 THE WORKFLOW OBJECT MODEL
Print Data Matrix In None
Using Barcode creation for Office Word Control to generate, create Data Matrix 2d barcode image in Microsoft Word applications.
www.OnBarcode.com
Create DataMatrix In None
Using Barcode creator for Office Word Control to generate, create Data Matrix 2d barcode image in Microsoft Word applications.
www.OnBarcode.com
Table 10-7. Methods of the SPWorkflowAssociation Class
Paint Code 3 Of 9 In None
Using Barcode generation for Office Word Control to generate, create ANSI/AIM Code 39 image in Office Word applications.
www.OnBarcode.com
QR Code 2d Barcode Generation In None
Using Barcode printer for Microsoft Word Control to generate, create QR Code image in Microsoft Word applications.
www.OnBarcode.com
Method
Generating Barcode In None
Using Barcode encoder for Microsoft Word Control to generate, create Barcode image in Word applications.
www.OnBarcode.com
Barcode Creation In None
Using Barcode encoder for Office Word Control to generate, create Barcode image in Microsoft Word applications.
www.OnBarcode.com
SetHistoryList SetTaskList
Make Code 128 Code Set C In None
Using Barcode drawer for Office Word Control to generate, create USS Code 128 image in Word applications.
www.OnBarcode.com
2/5 Standard Drawer In None
Using Barcode encoder for Microsoft Word Control to generate, create Industrial 2 of 5 image in Word applications.
www.OnBarcode.com
Return Type
Drawing DataMatrix In None
Using Barcode creator for Software Control to generate, create Data Matrix ECC200 image in Software applications.
www.OnBarcode.com
ECC200 Creation In Java
Using Barcode generator for Java Control to generate, create Data Matrix ECC200 image in Java applications.
www.OnBarcode.com
None None
Painting Code 128 In Visual Studio .NET
Using Barcode generator for Reporting Service Control to generate, create Code 128B image in Reporting Service applications.
www.OnBarcode.com
Printing Code 39 In Java
Using Barcode creation for Java Control to generate, create Code 39 image in Java applications.
www.OnBarcode.com
Description
Paint Code 128 Code Set B In None
Using Barcode generation for Excel Control to generate, create Code-128 image in Microsoft Excel applications.
www.OnBarcode.com
Encode EAN-13 Supplement 5 In None
Using Barcode printer for Office Excel Control to generate, create European Article Number 13 image in Excel applications.
www.OnBarcode.com
This method allows you to specify which SharePoint list will record the history entries for this workflow instance. This method allows you to specify which SharePoint list will store the task entries for this workflow instance.
Generate Linear Barcode In VB.NET
Using Barcode maker for .NET Control to generate, create 1D image in Visual Studio .NET applications.
www.OnBarcode.com
Painting Barcode In None
Using Barcode drawer for Font Control to generate, create Barcode image in Font applications.
www.OnBarcode.com
The SPWorkflowAssociation class has a multitude of properties to store the information pertaining to a specific association. Table 10-8 lists the important properties likely to be used by developers.
USS-128 Scanner In C#.NET
Using Barcode recognizer for Visual Studio .NET Control to read, scan read, scan image in Visual Studio .NET applications.
www.OnBarcode.com
Generating Barcode In Visual C#
Using Barcode generation for VS .NET Control to generate, create Barcode image in Visual Studio .NET applications.
www.OnBarcode.com
Table 10-8. Some Useful Properties of the SPWorkflowAssociation Class
EAN-13 Supplement 5 Generator In Java
Using Barcode printer for Java Control to generate, create EAN13 image in Java applications.
www.OnBarcode.com
UCC - 12 Maker In C#.NET
Using Barcode creator for .NET Control to generate, create UCC - 12 image in .NET applications.
www.OnBarcode.com
Property
AllowManual
Data Type
bool
Description
Read/write. Indicates whether or not the instance of the workflow can be started manually by a user. Stores the serialized data from the workflow s association form as an XML string. Read/write. Indicates whether or not the workflow instance is automatically started whenever the attached item is modified. Read/write. Indicates whether or not the workflow instance is automatically started whenever a new item is created. Read-only. Returns the template on which the current association is based. Read-only. Returns the date and time that the association was created. Read/write. Contains a description of the specific association instance. Read/write. Contains the unique identifier for the list that stores the history entries for this association. Stores the name of the history list for this association. Read-only. Stores the unique identifier for this association. Read-only. Returns the URL of the association s initiation form, as specified in the workflow.xml file. Read/write. Controls whether the association is locked. Locked associations cannot have any new instances started on them.
AssociationData AutoStartChange
string bool
AutoStartCreate
bool
BaseTemplate Created Description HistoryListId
SPWorkflowTemplate DateTime string GUID
HistoryListTitle Id InstantiationUrl
string GUID string
LockItem
bool
CHAPTER 10 THE WORKFLOW OBJECT MODEL
Table 10-8. Some Useful Properties of the SPWorkflowAssociation Class (Continued)
Property
ModificationUrl
Data Type
string
Description
Read-only. Returns the URL of the association s modification form, as specified in the workflow.xml file. Read-only. Returns the date and time that the association was last changed. Read/write. Stores the name assigned to this association. Read-only. Returns an SPContentType object representing the content type this association is related to. Read-only. Returns an SPList object representing the list this association is connected to. Read-only. Returns an SPSite object representing the site collection that contains this association. Read-only. Returns an SPWeb object representing the web that contains this association. Read-only. Returns the unique identifier of the site that contains this association. Read-only. Stores the URL of the association s status page, as specified in the workflow.xml file. Read/write. Contains the unique identifier for the list that stores the task entries for this association. Read/write. Stores the name of the task list for this association Read-only. Returns the unique ID of the web that contains this association.
Modified Name ParentContentType
DateTime string SPContentType
ParentList
SPList
ParentSite
SPSite
ParentWeb SiteId StatusUrl
SPWeb GUID string
TaskListId
GUID
TaskListTitle WebId
string GUID
Sample Code
Listing 10-5 shows how to programmatically set the association so that a user can start it manually through the user interface and then save those changes. Note that <List> represents a valid SPList object, and this code assumes that a valid association GUID is passed in on the QueryString.
CHAPTER 10 THE WORKFLOW OBJECT MODEL
Listing 10-5. Setting an Association to Allow Manual Startup Guid g = new Guid(Request.QueryString["TemplateID"]); SPWorkflowAssociation assoc = <List>.WorkflowAssociations[g]; if (assoc != null) { assoc.AllowManual = true; <List>.UpdateWorkflowAssociation(assoc); }
SPWorkflowManager
The SPWorkflowManager class is likely the second-most important class in the whole SharePoint Workflow Object Model coming in only behind the SPWorkflow class. As a developer, you re likely going to spend a fair amount of time in this class if you do any custom workflow programming, beyond just creating activities and workflows in the Designer. The SPWorkflowManager class does just what its name implies it allows you to programmatically manage workflows. Although there are only a handful of methods and properties available in this class, they are all powerful. Table 10-9 shows the one property for this class and Table 10-10 shows the useful methods.
Table 10-9. The Property Available in the SPWorkflowManager Class
Property
ShuttingDown
Data Type
bool
Description
Read-only. Returns a value to indicate whether or not the Workflow Manager is shutting down.
Table 10-10. The Methods of the SPWorkflowManager Class
Method
CountWorkflowAssociations
Return Type
Description
This method will return the number of associations a specific SPWorkflowTemplate has within an SPSite. You specify the SPWorkflowTemplate and the SPSite as parameters. This method returns a collection of the workflows that are currently active for the list item passed in as a parameter. This method returns a collection of the current tasks for a list item specified as a parameter. This method returns a collection of all of the workflows that are associated with the specified list item.
Copyright © OnBarcode.com . All rights reserved.