|
Tags: drools | tutorial | usecase This article is the starting part of a larger Drools tutorial. It should mainly give you an impression on how business rules and workflow paradigms can be meaningfully combined to model flexbible business logic as well as to technically bring the conceptual model to execution using jBoss Drools. The tutorial is split up into multiple parts. In the first part, an exemplary realistic service request process is presented. In the subsequent parts, the focus is shifted on the different Drools technical details and give you step-by-step instructions on how you have to can realize the particular flexibility mechanisms.
Running Example: Service Request Processing Workflow
Our running example is a process from the domain of field services and maintenance. Its functional model is outlined in BPMN2 notation in Figure 1 below. Our demo company is a large provide of IT services, for example hardware infrastructure maintenance. The workflow represents the procedural manner when a hardware error occurs at a customer and has to be handled, for instance in terms of harddrive replacement(s). The starting of the workflow can occur twofold: A customer may directly call our IT service company and report a problem. For some customers however, our service company has automatic monitoring facilities installed at the customer's site. Patterns of warning events from the hardware, as for instance the well known S.M.A.R.T. monitoring of your harddrive, may predict that the livetime of your drive may soone end and you need replacement actions.
A service agent from the call center then prepares the service reques workflow e.g. by collecting additional data from the customer and prioritizing the request. Then, a particular service center which takes care of operational service delivery for the customer is assigned. In this context, 24/7 support employees may be assigned to the request depending on priority or the agent's appraisal. These actions are therefore modeled as ad-hoc subtasks. If spare parts are required, it has to be decided whether they can be produced by our company itself (which also has a manufacturing branch) or whether they have to be procured from a 3rd parts. For this decision, planned utilization data from manufacturing and global stock values can be taken into account.
After everything is ready, the operational service delivery (which is out of scope in our tutorial demo workflow) takes place and an automated confirmation, maybe including billing information, is sent.

Figure 1: BPMN Workflow Diagram for a Flexible Service Request Process (click to enlarge)
Overall Structure of the Tutorial
Using our example maintenance workflow as a running example, we will focus at the following steps to add an "execute" button for our workflow using Drools and even flexibilizing it a little more:
- Introduction and Running Example: Service Request Workflow
- Setting up Drools; Starting With a Form-Based Human Task; Automatically triggering the workflow by a complex event
- Working with rule-based ad-hoc tasks in subprocesses.
- Fetching data into the workflow; Using rule-based routing within the workflow
- Writing a DSL for the rule-based decisions within the workflow.
- Extending the workflow with ad-hoc signal-based dynamic task-triggering and -synchronization.
- Migrating workflow execution to jBoss application server.
All required artifacts which have to be created will also be provided as downloadable files. Please feel free to post questions or feedback in the comments section found at the bottom of all articles. However, for general questions regarding Drools, I recommend to adress the Drools User Mailing List.
Hope you enjoy the tutorial! Такими "Мы русские мы русские мы русские скачать"рассуждениями я старался подбодрить себя и свою ""спутницу, в то время "Вязании крючком скачать"как мы торопливо продолжали наш путь. Вам "План фактный анализ"не удастся причинить "Скачать группу бутырка песни"мне вред! Прежде всего себе в ""рот, а потом. Может, да, согласился "Скачать значки для рабочего стола"Римо, а может и нет. Она ""стала взрослой, развилась, превратилась в зрелую женщину. Это определенное ""преимущество, особенно, если она, "Скачать игру живую сталь на телефон"подобно матери, изберет профессию волшебницы. Что и говорить, дельце было с придурью, он не любил такие. Впрочем, меня это ""мало волновало. Кнут из желтой нити снова ""ударил его по морде. Человечек оперся спиной ""о скалу, его глаза безумно бегали, голова тряслась. Я вздохнул, последний раз затянулся сигаретой и раздавил ее, зная, что мой пузырь может лопнуть в любой момент. Я не стал предварительно звонить, потому что отказать во встрече голосу в телефонной трубке куда проще, чем пришедшему человеку. Каталина поклялась, что уйдет вместе с ним. А вот если пес останется позади, тогда все сойдет гладко. Даже "Скачать бесплатный ключ на касперского?"несчастный капитан погибшего парохода, и сама ``Красавица Запада'', "Базы билайн скачать"и ``Магнолия'', и наша катастрофа все проходило "Скачать gta san andreas для игры по интернету"передо мной с мучительной четкостью. Он узнал "Песня лесоповала лесоповал скачать"о забавном способе приманивать аллигаторов может быть, старый Хикмэн показал ему, как это делается. Они бы там и погибли, задохнувшись в дыму или сгорев ""заживо среди пылающих досок, если бы среди покидавших корабль "Программа для образ диска скачать"не нашлась одна милосердная душа. А "Видеомонтажа на русском скачать"то еще штатским сдаст офицерский экзамен, да так и останется в штатских дурак дураком; а случись война, из него выйдет не лейтенант, а засранец.
|