Drools Flow
|
Drools Flow has been renamed to jBPM 5. Click here to go the jBPM website. Rich Modelling Support Drools Flow provides workflow or (business) process capabilities to the Drools platform. A business process or workflow describes the order in which a series of steps need to be executed, using a flow chart. This makes it much easier to describe a complex composition of various tasks. Processes are especially useful in describing state-based, long-running processes. Drools Flow allows end users to specify, execute and monitor (a part of) their business logic using these processes. The Drools Flow process framework is easily embeddable into any Java application (as a simple Java component) or can run standalone in a server environment. |
|
KnowledgeBuilder b = KnowledgeBuilderFactory.newKnowledgeBuilder();
b.add(ResourceFactory.newClassPathResource("MyProcess.rf"), ResourceType.DRF);
b.add(ResourceFactory.newClassPathResource("MyRules.drl"), ResourceType.DRL);
|
And this example shows some file handling automation, that finds some files, logs and validates them before archiving, copying and emailing them. |