How to (pre)start xamlx workflow service

Posted by rwwilden on Stack Overflow See other posts from Stack Overflow or by rwwilden
Published on 2010-04-07T21:32:55Z Indexed on 2010/04/13 13:52 UTC
Read the original article Hit count: 677

Related to this question.

I have a xamlx workflow service that loads part of its definition from a database when it runs (using ActivityXamlServices.Load). Reason for this is that I need versioning, see the related question. I'll use WCF routing to direct calls to the right service.

The part that I load dynamically contains a Receive activity. However, this activity is 'invisible' as long as the workflow doesn't start because the part of the workflow I load from the database is only loaded when the workflow starts. So from the outside it appears as if there is no Receive activity in the workflow.

Apart from not being able to generate a contract for the workflow service, I can't call the service either. My first attempt was to do a soap call with the right contract on the workflow service. However, the runtime doesn't automagically activate my workflow in that case. So the question is, how do I start a workflow that is hosted inside IIS?

Regards,
Ronald

© Stack Overflow or respective owner

Related posts about workflow-foundation-4

Related posts about xamlx