workflow-foundation

Workflow Tools Comparison?

强颜欢笑 提交于 2019-12-06 04:22:51
问题 There is a pretty strong need for us to design some workflows around various processes. The problem is none of us actually know any workflow technology yet, and finding good data to compare the available options has been tedious and not entirely fruitful. So I figured I'd ask you guys. The main technologies we are looking at are Windows Workflow Foundation and eDocs Workflow. What other options are there? Sharepoint 2007 has workflow functionality too, right? Is that just based on WF? What

WF. C# expressions inside of NativeActivity

孤街醉人 提交于 2019-12-06 01:27:22
I am trying to use custom c# expression inside of NativeActivity It works fine with simple expression like Condition = new CSharpValue("1 == 1") It doesn't work with such expressions Condition = new CSharpValue("Address == null") I cannot refer to the activity's Variable or InArgument in the expression due to expression compilation error "The name 'xxxxx' does not exist in the current context" Working code var act = new ExecuteIfTrue { Condition = new CSharpValue<Boolean>("1 == 1"), Address = new InArgument<MailAddress>(ctx => new MailAddress { DisplayName = "TestDisplayName" }), Body = new

Pattern for long running tasks invoked through ASP.NET

安稳与你 提交于 2019-12-05 15:52:38
I need to invoke a long running task from an ASP.NET page, and allow the user to view the tasks progress as it executes. In my current case I want to import data from a series of data files into a database, but this involves a fair amount of processing. I would like the user to see how far through the files the task is, and any problems encountered along the way. Due to limited processing resources I would like to queue the requests for this service. I have recently looked at Windows Workflow and wondered if it might offer a solution? I am thinking of a solution that might look like: ASP.NET

Trying to get to the bottom of a Windows Workflow 4.5 issue

拟墨画扇 提交于 2019-12-05 14:31:57
The error I am getting is "The WorkflowApplication has been aborted because a Load or LoadRunnableInstance operation threw an exception. Create a new WorkflowApplication object to try loading another workflow instance." I am using "workflowapplication" to run the workflow. The workflow instance I'm trying to load (there are a few of them) were created sometime ago and were persisted into the database. Is there a way to find the exception that was actually thrown during Load or LoadRunnableInstance operation? I caught this error in the "aborted" event on the workflowapplication object, but it

Java alternative to Windows Workflow Foundation

≯℡__Kan透↙ 提交于 2019-12-05 14:31:32
问题 What Java alternatives are there to Windows Workflow Foundation? I am looking for something that provides at least the same features that WWF does, and has the same flexibility and relative ease of use. I would very much prefer a free solution. 回答1: There are several great workflow engines for Java JBPM is one. Others can be found here. 回答2: We've used OSWorkflow and had success with it. In particular, it was easy to integrate with Spring and Quartz. http://www.opensymphony.com/osworkflow/ 来源

Whats the purpose of Windows Workflow Foundation (WF)?

不想你离开。 提交于 2019-12-05 06:51:34
I have read about windows workflow foundation where people use this to model a business process, why not to use UML? According to some answers, the workflow can be my domain? What other tools are equivalent to the WF? Workflow foundation is an executable workflow - the framework includes an engine that executes the workflow. It allows you to write parts of your workflow logic in code. I suggest reading this developers introduction on MSDN. UML doesn't do either thing - you can't use code as part of your UML or execute your UML workflows. UML is intended as a documentation and communication

How to correctly save a WF4 ActivityBuilder

孤者浪人 提交于 2019-12-05 04:52:52
问题 I am currently saving my .NET FX 4.0.1 StateMachine activity like this: var sb = new StringBuilder(); var xamlWriter = ActivityXamlServices.CreateBuilderWriter( new XamlXmlWriter(new StringWriter(sb), new XamlSchemaContext())); XamlServices.Save(xamlWriter, activityBuilder); return sb.ToString(); This works fine and the generated XAML looks good. Unfortunately, it is invalid. I can read it back in using ActivityXamlServices.Load but when I execute it, it says that it doesn't know the

Windows Workflow 4.5 Version Mapping

半世苍凉 提交于 2019-12-04 21:00:58
Suppose if there are two versions of the workflow, some instances are running on version1 and some on version2 , Is there any way so that we can call version1 workflow instead of version2 for a new instance, as we create a instance of workflow it will by default create the instance of version2. .net Framework 4.5 introduces Workflow Versioning which seems to be exactly what you need. These two links should be enough to get started: Using WorkflowIdentity and Versioning How to: Host Multiple Versions of a Workflow Side-by-Side 来源: https://stackoverflow.com/questions/15703857/windows-workflow-4

WorkFlow Unit Testing

寵の児 提交于 2019-12-04 20:29:49
问题 How to unit test the windows workflows? 回答1: K. Scott Allen has posted this, which provides an approach to unit testing custom activities (although he says that he is not satisfied). A similar approach is presented by Ron Jacobs here and here. Another approach is presented by Maurice here and here (he uses TypeMock as Will already mentioned). 回答2: Microsoft.Activities.UnitTesting. A library of helper classes and activities designed to make unit testing of workflows easier. Looks like there's

Terminate and Suspend activity in Windows workflow Foundation

ぃ、小莉子 提交于 2019-12-04 19:48:38
I need to stop the execution Is there any procedures for using terminate and suspend activity gbanfill It depends exactly what you want to do. There is a Terminate Activity will terminate the workflow instance that is running and has reached that activity. Once terminated, that workflow instance will be dead and will never be restartable. Suspend is something you can call on a WorkflowInstance e.g. WorkflowInstance instance = runtime.GetWorkflow(instanceId); instance.Suspend("Paused for some good reason"); // do something here instance.Resume(); This sample at the microsoft website should help