Business Rule component can be used to validate custom business requirements. We can invoke a Business Rule component from a BPEL component.
In Business Rule component we can put our validations in two ways i.e. If/Then Ladder and Decision Table. Both has same functionality but in Decision Table we can create rules in a shortcut manner.
Following is an example where an employee salary is validating by Business Rule and it gives the Salary grade of that employee as output. This is an simple example intends to the beginners of Business Rule learners.
- Create a SOA project as BRDemoProject.
- Change the auto created WSDL request and response elements accordingly as we change the xsd element structure of the process.
- Drag and drop a Business Rule component into the Composite of the process from component pallet of Jdeveloper.
- Create a Business Rule dictionary in which we can give the input and output formats to the component.
- Change the rule name and create the rule. Here no need to type the xpath elements manually. It gives all the operands of the business rule by clicking on the operand and also we can change the relational operators by selecting the appropriate one from the drop down. It is pretty simpler and time save process.
- Fill both the IF and Then part according to the requirement. In the below text field put the number and press enter key.
- Now the Business Rule is ready. We need to invoke it from the BPEL. Double click on the BPEL process on the Compsite.xml.
- Drag and drop a Business Rule activity into the BPEL process flow. Here we are not creating any further Business Rule.
- It is only configure all the input and output parameters and invokes the previously created Rule dictionary. It auto creates the invoke activity and assign parameters. This is the simpler way to invoke a BR component in BPEL. Also we can configure it using Assign and invoke activity manually.
- Fill the input output parameters on the wizard as mentioned below.
- Now expand the Business Rule activity on the BPEL process flow.It is pretty cool that creates the following activities automatically.
Please give a feedback over this post and blog.
Happy Coding.
Nice Post Bibek!!!!
ReplyDeleteHello,
ReplyDeleteIt is good post, I followed the above mentioned steps. But while deploying in jdeveloper I am getting error as "Rule Dictionary is Invalid". Could you please assist to solve the issue
Regards,
Mithun
Sir,
ReplyDeleteThere is small glitch in my code, I resolved and fixed the issue. Now it is working fine
Regards,
Mithun
@Mithun Varma Sir how did you resolve "Rule Dictionary is Invalid" error ?
ReplyDeleteThank you in advance.
You saved my day, thank you
ReplyDeleteThanks for sharing Good Information
ReplyDeleteOracle SOA Online Training Hyderabad
Hi, how to resolve this Rule Dictionary Invalid error. Plz help with ideas
ReplyDeleteIs this resolved for you.
ReplyDeletekayseriescortu.com - alacam.org - xescortun.com
ReplyDeleteperde modelleri
ReplyDeleteSms onay
mobil ödeme bozdurma
Nft Nasıl Alınır
ANKARA EVDEN EVE NAKLİYAT
TRAFİK SİGORTASİ
DEDEKTOR
WEB SİTESİ KURMAK
Aşk Romanları
ümraniye mitsubishi klima servisi
ReplyDeletetuzla vestel klima servisi
tuzla bosch klima servisi
ataşehir lg klima servisi
çekmeköy alarko carrier klima servisi
beykoz vestel klima servisi
üsküdar vestel klima servisi
çekmeköy mitsubishi klima servisi
ataşehir mitsubishi klima servisi