workflow-foundation-4

WF4 Workflow under AppFabric not resuming properly after IISreset

北战南征 提交于 2019-12-11 05:58:18
问题 Folks, I've been having some trouble with a WF4 problem. I'm modeling a batch engine/work scheduler after Ron Jacobs' demo in his endpoint.tv webcast (http://archive.msdn.microsoft.com/wf4BatchJob). In his example, the "work branch" just counts inside a while loop. For my sample, I send a message to another workflow called SampleEngine.xamlx which does the counting. Every count, this workflow calls back to the parent (JobScheduler.xamlx) and reports progress completed. This works perfectly

Invoke Child Workflow Activity Asynchronously

帅比萌擦擦* 提交于 2019-12-11 05:41:51
问题 Team: I need to invoke a WF activity (XAML) from a WF service (XAMLX) asynchronously. I am already referencing the Microsoft.Activities.Extensions framework and I'm running on the Platform Update 1 for the state machine -- so if the solution is already in one of those libraries I'm ready! Now, I need to invoke that activity (XAML) asynchronously -- but it has an output parameter that needs to set a variable in the service (XAMLX). Can somebody please provide me a solution to this? Thanks! *

How do I get last persisted workflow instance Id to reload it?

笑着哭i 提交于 2019-12-11 05:29:51
问题 Lets say I have persisted self-hosted workflows (running locally IIS express) that use WorkflowApplication programmatically by using the SqlWorkflowInstanceStore object model. app.PersistableIdle = delegate(WorkflowApplicationIdleEventArgs e) { return PersistableIdleAction.Unload; }; Then, I accidentally / deliberately stopped my web application, restarted my visual studio (local development). My questions: Restarted my application, How would I retrieve last persisted application instance

Problem developing WF4 application - The requested resource has moved to the one of the following locations

荒凉一梦 提交于 2019-12-11 05:21:08
问题 I am developing a WF4 application. The workflows are hosted in an ASP.NET website. For development, I am using IIS express. When debugging between edit cycles I get this error: System.ServiceModel.FaultException`1 was unhandled by user code Message=The requested resource has moved to the one of the following locations: https://localhost:44305/Workflows/PerformanceAppraisal/Exempt.xamlx StackTrace: at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply,

Workflow foundation 4.0 message correlation and error reporting

落爺英雄遲暮 提交于 2019-12-11 05:02:43
问题 I have a workflow service that runs and performs a number of different operations (such as web service calls). If one of these operations fails I call an error reporting web service to notify a seperate system that one of my workflow operations has failed. As the error could be something like the web service being down, I loop and retry this operation until it works. There can be times though when the data I'm passing to this web service is faulty and it needs changing. So I need to be able

How do I add a custom PersistenceIOParticipant for webserver hosted .xamlx services using the web.config

帅比萌擦擦* 提交于 2019-12-11 03:26:07
问题 I'm trying to duplicate the functionality below using web.config since I'm using webserver hosted .xamlx services host.WorkflowExtensions.Add(new HiringRequestInfoPersistenceParticipant()); I've tried the following from what I've been able to gather searching, but no satisfaction. <extensions> <behaviorExtensions> <add name="sqlTracking" type="ApprovalService.Persistence.HiringRequestInfoPersistenceParticipant, ApprovalService.Persistence" /> </behaviorExtensions> </extensions> Any help would

XAMLX Workflow with c# expressions

拈花ヽ惹草 提交于 2019-12-11 01:47:07
问题 I'm developing a self host workflow in vs2012/.Net 4.5/WF 4.5 and having quite a hard time figuring out the following message Expression Activity type 'CSharpValue`1' requires compilation in order to run. Please ensure that the workflow has been compiled. This error happens when i call a activity generated by a service reference (When you add a WCF service reference, each action on the endpoint become a activity). Looking around in MSDN i've came across these articles: http://msdn.microsoft

Workflow Service stops responding after 464 messages

懵懂的女人 提交于 2019-12-11 01:04:10
问题 I am having a peculiar issue while executing workflows. I have tried everything I could think of and now need ideas. Here is my configuration: 1. A WF4 Workflow Service (xamlx) hosted in IIS 7 and uses net.msmq/netMsmqBinding for transport (MSMQ is transactional). 2. No Workflow Persistence is used. 3. I use a console app client to send messages to the workflow (each message creates new workflow). 4. Each workflow looks like: Wait for START message -> Wait for END message (I only send START

'AssemblyInfoFileMask' is not declared. It may be inaccessible due to its protection level

跟風遠走 提交于 2019-12-10 18:34:30
问题 I am creating a custom build tfs activity to be used inside the azure continuous integration. I have used the code from this blog: http://www.ewaldhofman.nl/post/2010/06/01/Customize-Team-Build-2010-e28093-Part-10-Include-Version-Number-in-the-Build-Number.aspx As you can see AssemblyInfoFileMask in the code below its public. Also please check the screenshot to see what I meant, BuildDetail its on the same class and doesnt show me the error in the blue icon. I will paste it here the code as

How do I use System.Activities.Validation.GetParentChain?

ぃ、小莉子 提交于 2019-12-10 18:07:44
问题 I've got an Outer activity which has a Body onto which you drag other activities. I then have several Inner activities, which MUST be a descendent of an Outer activity. I'd like to add design-time validation to ensure the Inner is placed within an Outer. I've heard that I "can use System.Activities.Validation.GetParentChain to enumerate all of the parents of an activity during the validation step". But even after reading the documentation for the class, I have no idea how to use it. I would