Presentation is loading. Please wait.

Presentation is loading. Please wait.

WCF Service WF Workflow Client Operation WCF endpoint External Service External Service External Service External Service.

Similar presentations


Presentation on theme: "WCF Service WF Workflow Client Operation WCF endpoint External Service External Service External Service External Service."— Presentation transcript:

1

2 WCF Service WF Workflow Client Operation WCF endpoint External Service External Service External Service External Service

3 Execute long running processes Coordinate asynchronous tasks Compose service calls into new services Utilize robust tracking infrastructure Use Workflow Services!

4 RuntimeRuntime Extensible Execution Environment ActivitiesActivities Activity Library Out of the box Custom RuntimeRuntime WorkflowWorkflow SchedulerSchedulerExtensionsExtensions Persistence Provider Tracking Participant ToolingTooling Out of the Box & Build to Suit VS Designer Rehosted Designer WF Debugger

5 Sequential Model Use for linear execution patterns where simplicity is key. Requires structured loops that rely on child composite activities (e.g., While activity). Activity layout is rigid.

6 Flowchart Model Best choice for representing arbitrary cycles. Activity layout is free floating.

7 State Machine Formal structure for the sequencing of activities Define handlers for entering & exiting a state with activities Define transitions between states using activities as the trigger & expressions as conditions Nest states within one another to share common transitions

8

9 DoWorkDoWork WorkToDo Result InArgument OutArgument DoWorkDoWork WorkToDo ResultInArgumentOutArgument DoWork 2 WorkToDo Result DoWorkDoWork WorkToDo Result Result WorkToDo Result When to use arguments and variables

10

11

12 ManufacturingService.xamlxManufacturingService.xamlx Manufacturing Service IInventory Contract ReserveItemReserveItem IAssembly Contract ScheduleAssemblyScheduleAssembly Receive IInventory ReserveItem Receive Receive IAssembly ScheduleAssembly Receive

13

14 Define data contract entities (optional) Define Operations with Receive activity Implement Operations with Activities Configure service Host in AppFabric Test with WCF Test Client

15

16

17 WorkflowWorkflow ReceiveReceive SendSend Correlation Query Instance Store Other Service Id = 42 Calls Back Correlation Query Id = 42 Correlation value stored with workflow in instance store, already in message body. Value extracted from message body and used to retrieve workflow from instance store, message delivered Id = 42

18 WorkflowWorkflow ReceiveReceive SendSend Do Work Other Service Id = 42 Calls Back Id = 42

19 Long running adder service

20 Review of Fourth Coffee Workflow Services

21 WCF Workflow Services & Going Deeper with Workflow Services


Download ppt "WCF Service WF Workflow Client Operation WCF endpoint External Service External Service External Service External Service."

Similar presentations


Ads by Google