Syringe.Net.Nz
Irregular Injection of Opinion
RSS 2.0|Atom 1.0|CDF

 Wednesday, September 14, 2005
WWF Hosts, Services and Event Driven Activities

One of the fundamental things you'll need to get your head around when you start playing with workflows is how to go about getting stuff out of, but more importantly into your executing workflow. Here's my 30 second synopsis......

1. Your workflow runs inside a runtime engine.
2. All of your communications from the outside world will come to you via services provided by your host. In addition, in many cases your communications with the outside world will be sent by way of services provided by your host.

This is basically the provider pattern in action and it's an important concept to grasp... here's an example of why.

Say you build a workflow that manages registrations for your user group events via email. The logic is obviously going to be pretty simple, receive registration emails, send confirmations etc.... Your workflow declarativly defines the logic of what should happen in the sequence. Your workflow contains EventSink activities e.g. ReceiveEmail that allow your eworkflow to receive inbound mail. Try, as much as you can, to think of these EventSink activities in their abstract form. That is, your activity represents a mechanism by which your workflow receives an email but, as far as is possible, doesn't mandate or specify too much concrete implementation as to how that is delivered. The actual mechanics of how it does this will often depend on where your workflow might be running- e.g. You would probably receive the email in a different way depending on whether you are running your workflow in Outlook or on a server hosted in IIS. If we want to be able to use exactly the same Workflow definition, with exactly the same Activities then we need some sort of indirection mechanism to seperate the logical concept of ReceiveEmail with the actual concrete implementation of how we do it.

So let me give you an example. You have an activity that represents receiving an email. This is an abstract concept. You then create a workflow definition (in code or XOML/XAML) that uses this activity. You then host this workflow in a couple of different hosts. When you set up each of the hosts you can construct a different service type to service you ReceiveEmail activity depending on where you are running the host. When it is running, your activity is going to ask the runtime to provide it with a service that implements a certain known .NET Interface type. Thus you could have two different services that use two different email receipt mechanism, one for a desktop host and one for a server host. Through this mechanism you achieve the indirection that enables us to use the same delcarative business logic definition (the workflow) in a number of differnt contexts which may have markedly different requirements.

 

Windows Workflow|Wednesday, September 14, 2005 8:33:02 PM UTC|Comments [6]|    
Friday, July 21, 2006 2:16:06 PM UTC
hello! http://nissan-sentra-np.blogspot.com/ http://nissan-xterra-np.blogspot.com/ http://nissan-altima-np.blogspot.com/ http://nissan-350z-np.blogspot.com/
Samuell
Tuesday, December 05, 2006 7:38:34 PM UTC
. menstrual cycle and ovulation cervical mucus after ovulation ovulation bleeding female ovulation lh surge ovulation pain during ovulation clomid ovulation ovulation cramp when is ovulation ovulation predictor test detecting ovulation pregnant and ovulation ovulation process download ovulation calendar Ovulation Calculator ovulation pain ovulation strip ovulation mucus. Pregnancy Symptoms in the First Week Fetal Development Very Early Symptoms of Pregnancy conception symptom.
Tuesday, December 05, 2006 7:38:56 PM UTC
Relationships Problems Stages of a Healthy Relationship Abusive Relationship Cheating Love Relationship Love Calculator Teen Relationships Symbiotic Relationship Understanding Women in Relationships Love Trust Relationship Relationship Poems. by letting love loved receiving relationship transform yourself people relationship crm customer relationship management lesbian relationship management relationship crm customer management relationship tip long distance relationship online relationship discreet relationship the developing mind how relationship and the brain interact to shape who we are poem relationship help relationship ten stupid things couple do to mess up their relationship marketing relationship platonic relationship dating relationship customer management relationship solution personal relationship. Love Letters Love Horoscopes love story Valentines Day Poems Marital Problems Kissing Understanding Men Divorce Dr Phil Marriage Counseling.
Tuesday, December 05, 2006 7:39:17 PM UTC
Relationship Test Relationship Questions. help rebound relationship can help magic relationship trick faith help relationship relationship help book relationship help forum man help on relationship help in a out of relationship Relationships self help book relationship invisible wound a self help guide for woman in destructive relationship free relationship help online family help relationship online relationship help relationship help advice self help relationship boyfriend help relationship help for troubled relationship relationship help chat. characteristic of healthy relationship.
Tuesday, December 05, 2006 7:39:41 PM UTC
Relationship Questions Relationship Test Relationship Tests. relationship Relationships. Love Tests love poem romantic Love
Tuesday, December 05, 2006 7:40:04 PM UTC
romantic poem for true love Funny Teen Love Poems I Miss You Poems Relationship Tests Friendship Poems Sad Poetry Marriage Poems Broken Heart Poems Teen Love Poem Thinking about You Poems. new poem poetry relationship troubled relationship love poem breaking up relationship poem poem about broken relationship confused relationship poem mother and daughter relationship poem poem poetry relationship troubled troubled relationship poem poem on love and relationship long distance relationship poem funny relationship poem poem love hate relationship free relationship poem relationship problem poem poem relationship cheating teen relationship poem ending a relationship poem abusive poem relationship. love romance love quiz relationship Love Letters.
Comments are closed.