www.ronjacobs.com Something Happens Something Responds Work gets done Query status for order Query database and return status Display status to user.

Download Report

Transcript www.ronjacobs.com Something Happens Something Responds Work gets done Query status for order Query database and return status Display status to user.

www.ronjacobs.com
Something Happens
Something
Responds
Work gets done
Query status for
order
Query database
and return status
Display status to
user
Submit Job Application
Save in database and return ID
No response
Send another mail
HR responds to email
Save in database and return
status
Display ID for user
Send Email to HR
Send Email to applicant
public class DebugTrace
CodeActivity
public InArgument string
protected override void
CodeActivityContext
Debug
get
set
Key new features
Ask
Feature
Expressions in the language of the project
C# expressions
Create workflow services based on an existing contract
Contract-First
Better experience with Flowchart / State Machine designer
Auto-connect, auto-insert, pan
Add comments to activities in the designer surface
Annotations (designer)
Search integration in the workflow designer
Search (designer)
Invalid workflows should cause build errors
Validation errors break build
Basic building blocks for a versioning story
WorkflowIdentity
Host several versions of a service side by side
WFSH versioning support
Update running instances to a new definition
Dynamic Update
Run my workflows in Partial Trust
Partial Trust
Be able to plug my own expressions story
Expressions Extensibility
Better runtime performance
VB expressions performance
HR Data
Persistence
Applicant
Applicant
Service
1
2
3
6
Education
Service
4
5
Reviewer
Versioning and Dynamic
Update
var identity = new WorkflowIdentity("My Workflow",
new Version(1, 0, 0, 0));
var workflow = new WorkflowApplication(
new Activity1(), identity);
workflow.Run();
// get the instance data but do not bind to definition
var instance = WorkflowApplication.GetInstance(
instanceId, instanceStore);
// get the definition associated to the identity
var definition = definitions[instance.DefinitionIdentity];
// Create the update map
DynamicUpdateMap map =
DynamicUpdateServices.CreateUpdateMap(definition);
instance = WorkflowApplication.GetInstance(id,
CreateInstanceStore());
application = new WorkflowApplication(targetActivity,
targetIdentity);
// apply the update to the instance
application.Load(instance, this.currentUpdateMap);
application.Unload();
State Machine
HTTP Messaging and
Workflow
http://wf.codeplex.com
RELATED SESSIONS
•
Workflow and Windows Azure
DOCUMENTATION & ARTICLES
•
•
•
What's New with Workflow 4.5
Activities, Extensions, Tools available at
http://wf.CodePlex.com
http://forums.dev.windows.com
http://bldw.in/SessionFeedback