Hi,
The code is exactly as in the book code sample
line 10 is la.setCreditCheckOk((Boolean) execution.getVariable("creditCheckOk"));
///// code fragment given below///
public class CreateApplicationTask implements JavaDelegate {
public void execute(DelegateExecution execution) {
LoanApplication la = new LoanApplication();
la.setCreditCheckOk((Boolean) execution.getVariable("creditCheckOk"));
la.setCustomerName((String) execution.getVariable("name"));
la.setIncome((Long) execution.getVariable("income"));
la.setRequestedAmount((Long) execution.getVariable("loanAmount"));
la.setEmailAddress((String) execution.getVariable("emailAddress"));
execution.setVariable("loanApplication", la);
}
}