开发者

How to manage roles and generate web-forms using Drools Flow?

I am creating a workflow(integrated into a Java web application) for a leave application approval. The workflow is as follows:

Leave request is raised for an employee.

Case 1: If employee's role is not team lead. The request is sent to employee's team lead. If team lead rejects, workflow ends. If team lead approves, request is 开发者_开发知识库forwarded to manager.

Case 2: If employee's role is team lead. The request is directly sent to Manager.

Workflow ends when manager approves/rejects the application. At the time of approval/rejection the user needs to enter a comment.

I need to generate web-form for user input. The options can be dynamic and should be defined in workflow itself. How can I achieve this? What is the right way to manage different directions of a workflow based on different roles?

Any thoughts/suggestions are welcome. It will be helpful if someone can direct me to example/sample code to achieve this.


You might be interested in Jboss Tohu - it's a framework that generates web forms from Drools workflows and rules. I'm not entirely sure if it is production ready yet, but it looks to have a reasonable amount of functionality.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜