Reputation:
I am evaluating drools flow as wrokflow engine with drools expert rule. Key evaluation points:
Exposing Processes as Services
Please can anyone provide your inputs on the above mentioned areas to help us this evaluation process?
Upvotes: 0
Views: 2791
Reputation: 4087
it throws exception SingleSessionCommandService during the user transaction context lookup since it return null ctx.lookup( "java:comp/UserTransaction".);
You need to integrate a JTA txn manager, like Atomikos or JOTM. I'm using Atomikos.
Upvotes: 0
Reputation: 81
Let me try to give a quick answer to these bullets:
You can always build your own custom tooling, as long as you export the rules and processes in the expected DRL or xml format. Guvnor provides some examples of web-based editing of rules. We are looking into Oryx to allow web-based editing of processes.
The gwt-console allows a user to log into a web application and see the currently running instances; task lists, etc.
Rule actions are just Java, so you can easily invoke any functionality you want. If you want more declarative modeling of these actions, you can use work items to model these actions more declaratively.
ksession.abortProcessInstance(id)
Use a pluggable work item for this. We have an example that integrates with google calendar for this.
Anything inside the working memory is rule input or you can use a from clause to extract more info during rule evaluation; e.g. NewData ( .. ) from myService.getMoreInfo(..)
Best to model this as a work item as well. The work item handler will delegate to the web service.
You can dynamically add or remove knowledge (rules and processes) from your knowledge base
The session could be exposed directly (so people can call operations like startProcess etc.). I suppose you could easily build a wrapper around this if you want to expose each process as a separate service.
Upvotes: 1