Property Settings for the SendEmail1 Activity in Word

Generate Data Matrix in Word Property Settings for the SendEmail1 Activity

Table 7-2. Property Settings for the SendEmail1 Activity
DataMatrix Generator In None
Using Barcode generation for Microsoft Word Control to generate, create Data Matrix ECC200 image in Microsoft Word applications.
www.OnBarcode.com
EAN128 Maker In None
Using Barcode generation for Word Control to generate, create GTIN - 128 image in Office Word applications.
www.OnBarcode.com
Property
DataMatrix Printer In None
Using Barcode printer for Office Word Control to generate, create ECC200 image in Office Word applications.
www.OnBarcode.com
Encoding Barcode In None
Using Barcode creator for Office Word Control to generate, create Barcode image in Office Word applications.
www.OnBarcode.com
CorrelationToken
Generate GS1 - 13 In None
Using Barcode encoder for Office Word Control to generate, create EAN-13 image in Office Word applications.
www.OnBarcode.com
Printing Code-39 In None
Using Barcode printer for Microsoft Word Control to generate, create Code39 image in Microsoft Word applications.
www.OnBarcode.com
Setting
Barcode Generation In None
Using Barcode creator for Office Word Control to generate, create Barcode image in Office Word applications.
www.OnBarcode.com
Creating GS1 - 8 In None
Using Barcode maker for Office Word Control to generate, create GTIN - 8 image in Microsoft Word applications.
www.OnBarcode.com
workflowToken
Data Matrix Scanner In VB.NET
Using Barcode recognizer for VS .NET Control to read, scan read, scan image in Visual Studio .NET applications.
www.OnBarcode.com
ECC200 Generation In C#
Using Barcode creation for Visual Studio .NET Control to generate, create DataMatrix image in .NET framework applications.
www.OnBarcode.com
Notes
PDF 417 Generator In None
Using Barcode generation for Microsoft Excel Control to generate, create PDF-417 2d barcode image in Excel applications.
www.OnBarcode.com
Draw Code 128B In None
Using Barcode creator for Software Control to generate, create Code 128C image in Software applications.
www.OnBarcode.com
If you select from the property drop-down list, the OwnerActivityName subproperty will be automatically set.
Create DataMatrix In Objective-C
Using Barcode creation for iPhone Control to generate, create DataMatrix image in iPhone applications.
www.OnBarcode.com
Generating EAN / UCC - 14 In Objective-C
Using Barcode maker for iPad Control to generate, create EAN128 image in iPad applications.
www.OnBarcode.com
CorrelationToken\OwnerActivityName From
Barcode Creation In None
Using Barcode encoder for Software Control to generate, create Barcode image in Software applications.
www.OnBarcode.com
DataMatrix Decoder In Visual Basic .NET
Using Barcode decoder for .NET framework Control to read, scan read, scan image in .NET framework applications.
www.OnBarcode.com
MarketingCampaign admin@kcdholdings.com Set to a valid email address in your development system. We ll set the To and Body properties for our email programmatically in this method at runtime.
1D Barcode Printer In .NET
Using Barcode creation for ASP.NET Control to generate, create 1D image in ASP.NET applications.
www.OnBarcode.com
GS1-128 Encoder In Java
Using Barcode creator for Android Control to generate, create GS1 128 image in Android applications.
www.OnBarcode.com
MethodInvoking
Reading PDF-417 2d Barcode In VB.NET
Using Barcode decoder for .NET Control to read, scan read, scan image in Visual Studio .NET applications.
www.OnBarcode.com
Create PDF-417 2d Barcode In Java
Using Barcode encoder for Java Control to generate, create PDF 417 image in Java applications.
www.OnBarcode.com
onSendEmail
Subject
Marketing Campaign Submission
CHAPTER 7 WORKFLOW FORMS
Table 7-3. Property Settings for the CreateTask1 Activity
Property
CorrelationToken CorrelationToken\ OwnerActivityName MethodInvoking TaskId
Setting
taskToken MarketingCampaign onCreateTask Activity = MarketingCampaign, Path = taskID
Notes
You ll need to type this value in.
Click the ellipsis in the TaskId property field, select the Bind To New Member tab, and enter taskID as the new member name. Select the Create Field radio button and click OK. A new variable of type Guid will be created and automatically associated for us. As before, if you click the ellipsis and use the Bind To New Member tab, the proper variables will be created for you.
TaskProperties
Activity = MarketingCampaign, Path = taskProperties
Table 7-4. Property Settings for the While Activity
Property
Condition Condition
Setting
Code Condition taskComplete
Notes
This subproperty is the name of the method that the While activity uses to determine whether it is finished processing. We ll add the code to this in a bit.
Table 7-5. Property Settings for the onTaskChanged Activity
Property
AfterProperties
Setting
afterProperties
Notes
Use the Bind dialog box to create a new member field with the proper name and data type. Use the Bind dialog box to create a new member field with the proper name and data type. If this isn t available in the drop-down list, you ll need to type it in by hand.
BeforeProperties
beforeProperties
CorrelationToken CorrelationToken\ OwnerActivityName Invoked TaskId
taskToken MarketingCampaign onTaskChanged
This method will be called when the activity is executed. Use the Bind dialog box to bind to the existing taskID property.
CHAPTER 7 WORKFLOW FORMS
Table 7-6. Property Settings for the UpdateTask Activity
Property
CorrelationToken CorrelationToken\ OwnerActivityName TaskId TaskProperties
Setting
taskToken MarketingCampaign
Notes
Use the Bind dialog box to bind to the existing taskID variable. Use the Bind dialog box to bind to the existing taskProperties variable.
Table 7-7. Property Settings for the CompleteTask1 Activity
Property
CorrelationToken TaskId
Setting
taskToken
Notes
Select from the drop-down list. Use the Bind dialog box to bind to the existing taskID property.
Note As I said before, this chapter is on forms. If you need a refresher on correlation tokens, activities,
etc., please flip back to 6. It s all covered in far more detail there. I blew through it all pretty quickly here so we could keep our focus on the forms.
All of our activities are now configured. They don t actually do anything, but they are all configured. If you take a look at the code-behind file, you will see the six variable declarations and the five methods that Visual Studio has created for us. Although it s not a requirement, I m semi-OCD so I like to move all of my variable declarations to the top of the class file (right under the constructor) and keep the methods at the end of the class file in the same order as the activities they belong to.
Note If you re coming back through this section for the ASP.NET forms, this is the point at which you want
to stop, check the flux capacitor, and jump ahead to the ASP.NET forms again. If this is your first time through this chapter, you have no idea what I m talking about here. Just ignore this little note for now. It will all become clear in about 20 pages.
Building Our Forms in InfoPath
We re going to leave Visual Studio for a minute before getting into any of the coding aspects of our workflow and go through the process of building our forms. You could continue and write your code and do the forms later. I prefer to do it this way for two reasons:
CHAPTER 7 WORKFLOW FORMS
Some pieces of the coding part of the project (like schema definitions and field names) are dependent on the forms. Building the form first lets you drop everything in place as you write your code. The rich design environment of Visual Studio is a great place to fine-tune your requirements and prototype the user interface for end users before writing much, if any, code. If the users change a requirement after you ve written code (I can hear your startled gasps that never happens!), it s a lot harder to change. If all you ve done is drop some activities onto the canvas and put together some forms in InfoPath, changes are a lot easier to absorb. In addition, these two aspects deliver some nice eye candy to show to end users to help explain the process. So, let s dig into InfoPath. We ll build the initiation form first and then the task form.
Note For our scenario, there is no data that we need to collect when a workflow is associated with a
particular list so we will not be using an association form. The process of working with an association form would be nearly identical to what we ll cover here for an initiation form.
Building the Initiation Form Open InfoPath 2007 and select the option to design a new, blank form. The InfoPath design view opens and presents you with a blank form and the Design Tasks tool pane. Click the Controls option and drag two textboxes onto your form. Double-click on the first textbox to bring up its Properties window. On the Data tab, change the Binding Field name to marketingdirectoremail. At the bottom of the Data tab, in the Validation and Rules section, select the Cannot Be Blank checkbox. Click OK to close the window. Repeat the process for the second textbox, but change the Binding Field name to trafficcoordinator.
Copyright © OnBarcode.com . All rights reserved.