The choice activity in the mainProcess process has been created.
Follow these instructions to add the GoodCreditScore case:
- Switch to the mainProcess editor.
- Click the Case label.
- Switch to the Properties view.
- In the details section, click the Description tab.
- In the Display Name field, type GoodCreditScore.
- In the details section, click the Details tab.
- From the Expression language list, click Java.
- From the list, click Java.
The Question window opens.
- Click Yes.
- In the Expression Type field, type return CreditCheckResponse.getBoolean("response") == true;.
- Switch to the mainProcess editor.
- Click the Invoke icon
on the palette.
- Click the Assign icon
on the palette.
- Click the GoodCreditScore label.
The Assign figure
was added.
- Switch to the Properties view.
- In the details section, click the Description tab.
- In the Display Name field, type AcknowledgeReceipt.
- Switch to the mainProcess editor.
- Click the connection between GoodCreditScore and AcknowledgeReceipt.
- Switch to the Properties view.
The Name field is set to AcknowledgeReceipt.
- Click the Properties tab.
- In the details section, click the Details tab.
- Click the Properties tab.
- From the From list, click Fixed Value.
- From the list, click Fixed Value.
- In the Description field, type Your application has been received and is being processed..
- From the To list, click Variable.
- From the list, click Variable.
- In the navigation tree, expand OutputVariable : applyOnlineResponseMsg > applyOnlineResult : applyOnlineResponse > response : string.
The Query field is set to /response.
- Click the Properties tab.