Defining an Application and Policies
Applications represent the solution. In the authoring space, defining an application involves creating a simple process flow that represents the tasks, in the process in terms of existing business services. An application typically also contains policies. A policy defines the application.Pre-requisites
- Start WID
- Start the server (Websphere Dynamic Process Edition Server v7.0) ().
Right-click the server and select Start. - Launch Business Space ().
After the server starts successfully, right-click the server and select Launch\Business Space. - Log-in window().
After you launch the business space, a log-in window appears. Enter your userID and password and click Login. - Space Manager window ().
In the Space Manager window, click the Loans Origination Authoring Space.
Creating an application
Create the following application using the following guide:
Application Name | Description |
Loan Origination |
- In the Getting Started page (), click Start working with applications
- In the Application Browser window, click on the “Actions” button and select “New Application” ()
- In the Create New Application window, enter name and click OK()
- In the Application Browser window, click on Loan Origination link in the Application Browser to open the Application details page ()
- In the Application Details window, select Application Flow and then click Edit to make changes ().
- Add channels
- Click the New button to create a channel ()
- Select Better Financials Online and click “OK” ()
- Do Steps 1 and 2 again but this time select Customer Care Call Center. After adding the two channels, the application flow should look like this ().
- Add business services
- Add a Business Service to the application flow by clicking the small square button on the wire ().
- Select a business service and click “OK” ().
- Add the following business services in the order specified:
- Check Credit
- Review Collateral
- Final Review
- Notify Customer.
- The application flow should now look like this ().
- Add roles
- Add roles to the services by hovering over the service square and clicking the “Add Role” button () and assigning the required role ().
- You can also optionally associate a service performer or role with a given task. A policy may include a when condition that specifies a role, so that policy is only considered when a task with that role is invoked.
Business Service Role Review Collateral Underwriter Final Review Underwriter Notify Customer CSR - Click “Save” to save the new application flow ().
Create Policy overrides
Create the following policy overrides using the guide below:You may find it a requirement to create a policy to run a credit check.
New customers can't use the internal credit check because they are not applicable to new customer as this client type has no financial history with the bank.
In the last chapter, a policy established that the credit check type should default to INTERNAL. Refine that logic with a new policy as follows:
- Add "Application Policies" by clicking the “add” link to the right of the “Application Policies” header ().
- Enter "Credit Check Third-party override" (Name), select Check Credit (Business Service) and click “OK” ()
- Edit the policy so that it looks as shown in the following figure and then click “Save” ()
- For = Check Credit in this application (Loan Origination)
- When = New Customer is equal to True
- Then = Set Credit Check Type to Third Party
Create an application-scoped Policy
An application-scoped policy must be created next. Application-scoped policies come in two variants that are distinguished by their scoping statements.If a policy has the statement FOR <Application> then it will apply for every step in the application flow based on the whether or not the WHEN condition is satisfied. Since this kind of policy is not specific to any business service, the results that can be added to the THEN clause are limited to setting business parameters as we did for some of our credit check policies in the last chapter.
If a policy has the statement, "FOR <Application> in <Business Service> then it will apply only in situations where the given business service is being invoked within the given application. Since this policy is specific to a business service, such policies can be used to specify a process variation to select when invoking that business service.
Policy Override Semantics
Often, it is necessary to use a policy to establish some default behavior and to have other policies that override this behavior for special circumstances. For example, we will want to override the business service policy that determines that the Final Review business service should use human underwriting.At runtime, the system considers all policies that match given their FOR and WHEN conditions and merges the results into a single composite policy. In the end, there can be only one selected process variation and only one value assigned to any given concept. The system uses the following rules to determine which settings to use:
- Settings from Application-scoped policies take precedence over settings from Business Service-scoped policies.
- If two settings are both defined at the Application or Business-Service level, the priority field is used to disambiguate. The setting that comes from a policy with the largest integer priority value will take precedence.
- If neither of these schemes can be used to disambiguate the value for a given setting, a policy conflict error will happen at runtime.
Working with Changesets
Once your application is complete you need to submit your changes to a change set. Once your changes have been submitted, the administrator or the user who created the change set must submit the changes.Submitting a change set
- Go to the Governance page by clicking the dropdown arrow to the left of the “Add Widgets” button and selecting “Governance” ()
- Select the change set and then click the “Submit Change Set” button ()
- Fill in the comment and click “OK” ()
As soon as you submit the changes, the change set moves from Draft to Pending state. Any object listed in a change set that is in Pending state is locked such that no user can change those objects until the changes are either published or rejected.
Publishing a change set
An administrator now needs to review and publish these changes.- An administrator logs in to Business Space, opens the “Loans Origination Authoring” space, and goes to the governance tab. Reviewing change sets can also be done from the administration space.
The “show” drop down in the upper right corner can toggle the view to show change sets in various states. The “Active” setting shows all change sets that have not been published or canceled. - Find the change Set and click “Approve Change Set” ()
- Fill in the comment and click “OK”. The comments associated with a change set are visible under the history tab ()
- Click “Publish Change set”, and then click “OK” in the dialog box that pops up (comment is already filled in) ()
- Previous: Define Business Services Next: Work with Websphere Business Modeler
- Modeling, developing, assembling, deploying and managing an application
- Working with the Fabric templates in Business Space
- Business Space Information Center
- Getting Started with IBM WebSphere Business Services Fabric V6.1
IBM WBS Fabric Learning Resources
No comments:
Post a Comment