The CreditCheck component will have a Java implementation that
generates a credit score using the taxPayerId of an applicant. Instead of
editing the Java that is being generated and creating the implementation yourself,
you will take a shortcut by importing the Java implementation.
To implement the CreditCheck Java™ component, follow these steps:
- Switch to the assembly editor.
- Right-click the CreditCheck component.
- From the pop-up menu, select Generate Implementation.
The Generate Implementation window opens.
- Click OK. The Java editor opens.
- Close CreditCheckImpl.java.
- Select . The Import window opens.
- Click File System.
- Click Next.
- In the From directory list, type <WSInstallDir>\wstools\eclipse\plugins\com.ibm.wbit.samples.content_6.0.2\scenarioparts\loanapplication.
- Expand the folder structure of loanapplication and
deselect the web folder.
- Select the check box beside CreditCheckImpl.java.
- In the Into folder field, type LoanApplicationModule\sca\component\java\impl.
The File system field is set to Import resources
from the local file system..
- Select Create selected folders only.
- Click Finish. If you are prompted to overwrite
the previous file, click OK to confirm that you want
to do so.
- Click .
Now that the implementation for checking credit has been imported,
you will implement the human tasks invoked at the end of the business process.