This sample demonstrates a mortgage application submitted for approval using Flex. Adobe® LiveCycle® Enterprise Suite 3 (ES3) process routes a submitted application to a Loan Approver or a Manager depending on the amount of monthly mortgage payment . Amount greater than $2,000 defaults to Manager.
The following illustrates the workflow for this sample:
The mortgage applicant (Akira Tanaka, username=atanaka) logs in the workspace and submits a mortgage application.
If the monthly payment is less than 2000, the application is routed to the Loan Approver (John Jacobs, username=jjacobs) for approval.
If the monthly payment is 2000 or more, the application is routed to the Manager (Sara Rose, username=srose) for approval.
The Loan Approver or the Manager approves or rejects the application, and the decision is written to a text file on the server.
This sample uses Adobe® LiveCycle® Process Management 10 and Flex Builder™ modules as follows:
Process Management: Workspace Start process (used to start a process)
Process Management: Workspace To-Do (used to complete a task)
Process Management: Process branching based on input form data from Adobe® LiveCycle® Workspace 10
Flex Builder: Demonstrates how an application created using Flex can be enabled to work within Workspace
Note: These instructions assume that LiveCycle ES3 is installed on the C: drive on Microsoft Windows. If you have installed to a different location, substitute the directory where you installed LiveCycle ES3.
Log in to LiveCycle Administration Console (http://[hostname]:[port]/adminui).
Click Services > Applications and Services > Application Management.
Click the LiveCycleApplications(9.x) tab and click Import.
Click Browse to locate the sample LiveCycle ES3 archive (LCA) file Adobe-Samples-Application-SimpleMortgageLoan-Flex.lca, and then click Preview.
Select Deploy assets to runtime when import is complete and click Import.
Configuring the sample
To add the INVOKE principal to LiveCycle users. These steps apply the INVOKE principal to all users that have not been assigned the Application Administrator role for this sample:
Log in to LiveCycle Administration Console (http://[hostname]:[port]/adminui).
Click Services > Applications and Services > Service Management.
In the Category drop down list, select Samples - Simple Mortgage Loan-Flex and click Filter button. The service list refreshes and only displays the Samples - Simple Mortgage Loan-Flex/Processes/Simple Mortgage Loan - Flex: 1.0.
Click Samples - Simple Mortgage Loan-Flex/Processes/Simple Mortgage Loan - Flex: 1.0 and then click the Security tab. From the toolbar at bottom of the page, click Add Principal and select All Principals in domain SampleOrganization, PublicationsGroup.
In next page, check the check-box besides INVOKE_PERM and click the Add button.
Note: If your LiveCycle server is upgraded from an older version, you may have many similar names, ensure All Principals in domain SampleOrganization, PublicationsGroup is selected.
This sample writes the output to C:\tmp\LCSamples\Output\SimpleMortgageLoan.txt by default on Windows and to /tmp/LCSamples/Output/SimpleMortgageLoan.txt on Unix. If you want to change this path, complete the following steps:
Log in to LiveCycle Administration Console(http://[hostname]:[port]/adminui).
Click Home > Services > Applications and Services > Service Management.
Select Samples - Simple Mortgage Loan-Flex from the Category list and click Filter.
Click Samples - Simple Mortgage Loan-Flex/Processes/SimpleMortgageLoan- Flex: 1.0, click the Configuration tab, and configure the property pathNamePattern:
Ensure that you set the appropriate local file path, and that this path is valid (and with appropriate access permissions).
Running the sample
Log in to Workspace (http://[hostname]:[port]/workspace/) using these credentials:
User=atanaka
Password = password
Click Start Process > Samples > Simple Mortgage Loan - startpoint. The Flex form loads.
Fill the form. The Monthly Mortgage Payment field is an important field to determine the route that the form takes. Click Complete.
If the value of Monthly Mortgage Payment is less than $2000, log in to Workspace using jjacobs/password and continue to step 4.
If the value of Monthly Mortgage Payment is greater than or equal to $2000, log in to Workspace using srose/password and continue to step 4.
Find the To Do list. A task is displayed.
Click the task to view the form. Complete the task by clicking either Approve or Deny. The result is written to the output file that you configured, by default C:\tmp\LCSamples\Output\SimpleMortgageLoan.txt on Windows and /tmp/LCSamples/Output/SimpleMortgageLoan.txt on Unix.
Next steps
Try making the following changes:
Change the roles that the task is assigned to.
Change the business rule to a more complex expression.
Change the Task Manager endpoint to a different category or name.
Legal disclaimer
Any references to company names, company logos and user names in sample material or sample forms included in this documentation and/or software are for demonstration purposes only and are not intended to refer to any actual organization or persons.