ASP.NET based Workflow Engine

2019-03-27 20:07发布

I am working on a design spec for a new application that will be heavily workflow driven.

Before I re-invent the wheel, is there a decent lightweight workflow engine that plugs into ASP.NET already around?

Basically, I'm looking for something that handles moving through a defined set of workflow pages while handling state management automatically.

If this isn't around already, I'll definitely try to abstract the engine from my app and put it on codeplex, as it would be really handy.

Any suggestions?

Note: .NET 2.0, so no WWF, though I think WWF is overkill for my needs.

EDIT: Seems like there is a legitimate need for this, and there isn't a product out there...So I might build this.

Here is what I'm picturing:

  • Custom Page class called WebFlowPage
  • All WebFlowPage's are registered in a Workflow mapper.
  • Each WebFlowPage has some form of state object.
  • A HttpHandler handles picking the appropriate WebFlowPage based upon the workflow, and populating it from the state object.

9条回答
地球回转人心会变
2楼-- · 2019-03-27 20:23

You could take a look at the InRule engine too. Also, there is nxBRE.

These too are mostly used for business rules. InRule is proprietary, whereas nxBRE supports RuleML (the defacto standard).

You might need to make your own implementation for the pages, and use the rule engine as the "structure".

At this moment, I know that Sharepoint 2007 supports page workflows (using WF), but this would imply using .NET Framework 3 and deployng sharepoint.

My suggestion would be to use whatever you find more light and easier to use.

查看更多
Luminary・发光体
3楼-- · 2019-03-27 20:23

I think the term "workflow" is very open to interpretation. I have been working lately with a type of workflow that is very different from what you seem to be describing. Mine is a state machine based workflow where the state of a particular record determines what actions a user can take to move the record to the next step in the business process. So "workflow" in this instance means how the record flows from one state to another until it is finally completed.

Your usage of workflow seems to have more to do with moving a user from one page to another in a linear multi-step process, which is a completely different use case (correct me if I'm wrong). So before coming up with a general purpose "workflow" engine that anyone could use, I would recommend defining a little bit better exactly what types of situations this system would handle.

查看更多
闹够了就滚
4楼-- · 2019-03-27 20:34

I've been using this for a few months http://objectflow.codeplex.com. Not asp specific but it may fit your needs

查看更多
Bombasti
5楼-- · 2019-03-27 20:37

While browsing the web for some workflow & BPM resources, I found the following project: NetBPM. Unfortunately, the project seems to be stopped.

查看更多
仙女界的扛把子
6楼-- · 2019-03-27 20:39

I don't think there is a workflow engine that will automatically handle state for you, but if you are moving through a set of pages like a process such as checkout on an ecommerce site, perhaps the ASP.NET wizard control could help you?

查看更多
爱情/是我丢掉的垃圾
7楼-- · 2019-03-27 20:45

Building a custom workflow engine is not trivial, although it may seem simple at first. We've tried that. It depends a lot on the complexity of the logic you need it to cover.

Given the current state of the Windows Workflow Foundation and the lack of another framework that abstracts the workflow concepts, I would choose WF if you need complex logic, asynchronous handling or branches in your workflows.

Tracking your state through the workflow can be accomplished by carrying some kind of xml payload or storing the state in a database,

If your workflow is actually a sequential set of forms that need to be filled in by the user, tracking the steps and guiding the user to the next step can be accomplished with some simple custom solution.

查看更多
登录 后发表回答