workflow-foundation

Recommend a design pattern for a workflow application

本小妞迷上赌 提交于 2020-01-03 07:00:18
问题 I am developing an application where the users can execute tasks / workflows. Each task is made up of a queue of actions to be executed. I want to be able to be able to have user input after the workflow is started. Example: Task starts Action1 starts Action1 ends Action2 starts Action2 ends Action3 needs user input (UI opens window to get user input) Action3 gets user input Action3 starts Action3 ends Task ends I am developing this i C# and I am aware of Workflow Foundation and tasks in C#.

How to add the right-click breakpoints menu to a rehosted workflow designer

被刻印的时光 ゝ 提交于 2020-01-02 23:13:26
问题 A shortcoming of the rehosted workflow designer is that it does not, by default, include many of the features necessary for serious workflow development. Chief among these is the lack of native debug/breakpoint support. There are samples online which show how to enable debugging, but I didn't find any which included showing the breakpoint section of the right-click context menu for activities 回答1: It turns out adding the breakpoint menuitems to the context menu is relatively straightforward.

Workflow 4 tracking records viewer

守給你的承諾、 提交于 2019-12-25 05:32:50
问题 there was an application called 'WorkflowMonitor' that was included with the samples kit for workflow 3 which gave you a visual playback through previously run workflows. The tracking records that app works against appear to be a different shape to those in workflow 4, is there a similar viewer that anyone knows of that can give me an insight into previously run workflows in workflow 4? I am really just looking for the best way to interpret the data, the Workflow Monitor would have been

Windows WF 3.5 How to drop activity on Custom Composite Activity in Workflow

99封情书 提交于 2019-12-24 17:04:37
问题 I have a custom activity which is a composite of several activities. There are some activities on the composite where I would like users of the custom activity to be able to drop more activities at design time on the Worfkflow surface. Custom Composite activities don't allow drag-drop actions out-of-the box, but I have tried using a custom designer and overridden OnDragDrop etc. and that did not work either. Code samples/snippets in any answers would be most helpful... 来源: https:/

Migrate workflow and activity from .net 3.5 to .net 4.0

≡放荡痞女 提交于 2019-12-24 16:19:34
问题 Any one has recommendation, links to how to migrate workflow 3.5 to 4.0? Any issues to look for, does MS provide some tool to facilitate migration? Or the only was is to re-write the whole thing .... 回答1: There is a migration toolkit on CodePlex here. There is also an Interop activity in the box so yu can use some WF3 activities in WF4 as is. That said WF4 is a completely new codebase with a very different design and migration is, in most cases, not a realistic option. 来源: https:/

Running a workflow from within another workflow

一曲冷凌霜 提交于 2019-12-24 14:15:09
问题 I am currently using sequential workflows in Windows WF, but need to break up the process because I now have multiple workflows that need to share a piece of functionality. I believe there's a way to create custom code activities in WF that would basically accomplish this, but my plan is to eventually ditch WF in favor of Stateless; therefore, I don't want to spend the time right now learning how to code custom activities. The only thing I can think of is to create a new WF project that

Is it possible to debug the WF used to build in VS2012?

橙三吉。 提交于 2019-12-24 13:38:57
问题 Guess the title asks the Q really. I want to see what's going on on a step-by-step basis for the build process that I've inherited. I've only just started to play with WF and whilst I understand it is possible to debug a workflow I've really no idea how to go about it in this instance. 回答1: You can debug everything, starting from custom WorkflowServiceHost (if you have one), particular code-based activities, xaml based activities, up to activity designer surface. I believe the biggest

Show an activity into the designer?

做~自己de王妃 提交于 2019-12-24 06:49:07
问题 I've a sample workflow application, which only have to display an activity an show on which step we are. The problem is that when I load my activity like this: TestWorkflow workflow = new TestWorkflow(); _workflowApplication= new WorkflowApplication(workflow ); _workflowDesigner = new WorkflowDesigner(); _workflowDesigner.Load(workflow ); uxGridWorkflowHoster.Children.Add(_workflowDesigner.View); I'm getting only the root element "sequence" in my box. how to change that? I get that on visual

Exception practices when creating a SynchronizationContext?

柔情痞子 提交于 2019-12-24 05:58:37
问题 I'm creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I'm wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used to Send (execute synchronously) or Post (execute asynchronously) delegates of type SendOrPostCallback . Although in both cases I invoke the delegate on a STA thread, its easy to know how to handle exceptions when executing synchronously. I block the calling thread, Invoke the callback on my worker

How to run ondemand workflow over all pages

假如想象 提交于 2019-12-24 05:54:09
问题 I have to run an ondemand workflow over my custom entity, lets say i have 1 million records, so how can i run this work flow over these records. since, as far as i know we can only select the record and from ribbon click run workflow and specify it. In this way for max in single try, i can only select one page records and hence limited access any idea? 回答1: You cannot do that with the UI. The simplest approach would be with a small program which selects all records and trigger the workflow