Leave approval business rule
For our first rule, we are going to build on our leave request example from the previous chapter, Adding in Human Workflow. If you remember, we implemented a simple process requiring every leave request to go to an individual's manager for approval. However, what we would like is a rule that automatically approves a request as long as it meets certain company guidelines.
To begin with, we will write a simple rule to automatically approve a leave request that is of the type Vacation
and only for one day's duration. This is a pretty trivial example, but once we've done this, we will look at how to extend this rule to handle more complex examples.
Creating a decision service
Within JDeveloper, open up your LeaveApproval ...
Get Oracle SOA Suite 11g R1 Developer's Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.