views:

2161

answers:

8

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.
A: 

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?

dotnetdev
+1  A: 

Is the workflow dynamic, or static?

If the workflows are simple, you could roll your own workflow engine. In certain situations, it can be fairly simple, and just a couple of data tables to handle the rules, processing and state.

Alot of workflow engines are built for large scale processing (credit card applications, for example). For small scale, you should at least consider your own, which would eliminate the overhead and dependency of/on an engine.

pearcewg
+1  A: 

Not sure exactly what you wish to do here, but Ra-Ajax can easily keep state at least if you want your solution ajaxified...

For reference purposes you might want to check out the Ajax Calendar sample or even the (banalistically implemented) Ajax Wizard sample. It surely beats the hell out of doing it with JavaScript...

And every time you "do something" you're in "server-land" which means you can store temporaries all the time as you wish...

The project is LGPL

(PS! Yes I do work with it)

Thomas Hansen
Thanks Thomas, but thats not exactly what I had in mind. Good luck with the legal litigation issues with your product though. It looks great, its a shame about Gaia.
FlySwat
+1  A: 

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.

Sergiu Damian
A: 

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

Sergiu Damian
+1  A: 

Hi,

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.

Bogdan Maxim
A: 

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.

jeremcc
A: 

There are few workflow options. "Aspose" and "Skelta" are the offers I´m evaluating.

Fábio