Last post Apr 25, 2014 05:46 AM by Fuxiang Zhang - MSFT
Apr 24, 2014 07:59 AM|billcrawley|LINK
I have created a workflow service and in the Xaml file I reference a class in my Activity Library.
To run the activity once I would use something like:
using (var wf = new SupplierCapacityWorkflow.WorkflowServiceClient())
and if I do this it works.
However, I dont want to run it this way and instead want to use DurableInstancing. I have set this in my web.config file and I have a connection string in the web config to the persistence DB.
I have created an instance of SqlWorkflowInstanceStore And I now need to Create a workflowApplication instance. My issue here is that this is expecting an Activity of somewort as a parameter.
My workflow has been created as a Sequence workflow. so when I write:
Activity wfActivity = new Sequence();
I have no way of attaching my SupplierCapacityWorkflow to it.
Can anybody give an examplpe of how I should attach my WF.
basically I'm trying to follow the Microsoft Example of:
SqlWorkflowInstanceStore store =
new SqlWorkflowInstanceStore("Server=.\\SQLEXPRESS;Initial Catalog=Persistence;Integrated Security=SSPI");
WorkflowApplication wfApp =
new WorkflowApplication(new Workflow1());
wfApp.InstanceStore = store;
Where Workflow1() is an activity. and can be found at http://msdn.microsoft.com/en-us/library/ee395773(v=vs.110).aspx
Apr 25, 2014 05:46 AM|Fuxiang Zhang - MSFT|LINK
Thank you post the issue to asp.net forum.
Your issue is more about Windows Workflow Foundation, please post it to WF forum and get a better response.