cancel
Showing results for 
Search instead for 
Did you mean: 

Null Pointer Exception

habibhalaoui
Champ in-the-making
Champ in-the-making
<div class="field-items"><div class="field-item even" property="content:encoded"><p>hello I can not solve this problem of nullpinterExeption, how to have the value of loan Amount<br>
How can I read the value of the form LoanAmount  form ProcessStartExecutionListener class?</p>

<p></p><div class="geshifilter"><pre class="java geshifilter-java" style="font-family:monospace;"><span style="color: #339933;">&lt;?</span>xml version<span style="color: #339933;">=</span><span style="color: #0000ff;">"1.0"</span> encoding<span style="color: #339933;">=</span><span style="color: #0000ff;">"UTF-8"</span><span style="color: #339933;">?&gt;</span>
<span style="color: #339933;">&lt;</span>definitions xmlns<span style="color: #339933;">=</span><span style="color: #0000ff;">"http://www.omg.org/spec/BPMN/20100524/MODEL"</span> xmlns<span style="color: #339933;">:</span>xsi<span style="color: #339933;">=</span><span style="color: #0000ff;">"http://www.w3.org/2001/XMLSchema-instance"</span> xmlns<span style="color: #339933;">:</span>activiti<span style="color: #339933;">=</span><span style="color: #0000ff;">"http://activiti.org/bpmn"</span> xmlns<span style="color: #339933;">:</span>bpmndi<span style="color: #339933;">=</span><span style="color: #0000ff;">"http://www.omg.org/spec/BPMN/20100524/DI"</span> xmlns<span style="color: #339933;">:</span>omgdc<span style="color: #339933;">=</span><span style="color: #0000ff;">"http://www.omg.org/spec/DD/20100524/DC"</span> xmlns<span style="color: #339933;">:</span>omgdi<span style="color: #339933;">=</span><span style="color: #0000ff;">"http://www.omg.org/spec/DD/20100524/DI"</span> typeLanguage<span style="color: #339933;">=</span><span style="color: #0000ff;">"http://www.w3.org/2001/XMLSchema"</span> expressionLanguage<span style="color: #339933;">=</span><span style="color: #0000ff;">"http://www.w3.org/1999/XPath"</span> targetNamespace<span style="color: #339933;">=</span><span style="color: #0000ff;">"http://www.bpmnwithactiviti.org/loanrequest"</span><span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>process id<span style="color: #339933;">=</span><span style="color: #0000ff;">"loanrequest"</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">"Process to handle a loan request"</span> isExecutable<span style="color: #339933;">=</span><span style="color: #0000ff;">"true"</span><span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>extensionElements<span style="color: #339933;">&gt;</span>
     <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>executionListener <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">"org.bpmnwithactiviti.chapter5.listener.ProcessStartExecutionListener"</span> event<span style="color: #339933;">=</span><span style="color: #0000ff;">"start"</span> <span style="color: #339933;">/&gt;</span>
         <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>executionListener <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">"org.bpmnwithactiviti.chapter5.listener.ProcessEndExecutionListener"</span> event<span style="color: #339933;">=</span><span style="color: #0000ff;">"end"</span> <span style="color: #339933;">/&gt;</span>
       <span style="color: #339933;">&lt;/</span>extensionElements<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>startEvent id<span style="color: #339933;">=</span><span style="color: #0000ff;">"theStart"</span> <span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>extensionElements<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>formProperty id<span style="color: #339933;">=</span><span style="color: #0000ff;">"name"</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">"Name"</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">"string"</span> required<span style="color: #339933;">=</span><span style="color: #0000ff;">"true"</span><span style="color: #339933;">&gt;&lt;/</span>activiti<span style="color: #339933;">:</span>formProperty<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>formProperty id<span style="color: #339933;">=</span><span style="color: #0000ff;">"emailAddress"</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">"Email address"</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">"string"</span> required<span style="color: #339933;">=</span><span style="color: #0000ff;">"true"</span><span style="color: #339933;">&gt;&lt;/</span>activiti<span style="color: #339933;">:</span>formProperty<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>formProperty id<span style="color: #339933;">=</span><span style="color: #0000ff;">"income"</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">"Income"</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">"long"</span> required<span style="color: #339933;">=</span><span style="color: #0000ff;">"true"</span><span style="color: #339933;">&gt;&lt;/</span>activiti<span style="color: #339933;">:</span>formProperty<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>formProperty id<span style="color: #339933;">=</span><span style="color: #0000ff;">"loanAmount"</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">"Loan amount"</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">"long"</span> required<span style="color: #339933;">=</span><span style="color: #0000ff;">"true"</span> <span style="color: #339933;">&gt;&lt;/</span>activiti<span style="color: #339933;">:</span>formProperty<span style="color: #339933;">&gt;</span>
 
      <span style="color: #339933;">&lt;/</span>extensionElements<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;/</span>startEvent<span style="color: #339933;">&gt;</span>
 
    <span style="color: #339933;">&lt;</span>sequenceFlow id<span style="color: #339933;">=</span><span style="color: #0000ff;">"sequenceFlow-d450f4a5-4e6f-4b3e-8451-07228a5b1b0d"</span> sourceRef<span style="color: #339933;">=</span><span style="color: #0000ff;">"theStart"</span> targetRef<span style="color: #339933;">=</span><span style="color: #0000ff;">"checkCredit"</span><span style="color: #339933;">&gt;&lt;/</span>sequenceFlow<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>scriptTask id<span style="color: #339933;">=</span><span style="color: #0000ff;">"checkCredit"</span> scriptFormat<span style="color: #339933;">=</span><span style="color: #0000ff;">"groovy"</span> activiti<span style="color: #339933;">:</span>autoStoreVariables<span style="color: #339933;">=</span><span style="color: #0000ff;">"true"</span><span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>script<span style="color: #339933;">&gt;</span>
            out<span style="color: #339933;">:</span>println <span style="color: #0000ff;">"Checking credit for "</span> <span style="color: #339933;">+</span> name<span style="color: #339933;">;</span>
            creditCheckOk <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">false</span><span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">(</span><span style="color: #009900;">(</span>income <span style="color: #339933;">/</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">)</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span> loanAmount<span style="color: #009900;">)</span><span style="color: #009900;">{</span>
               creditCheckOk <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">true</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">}</span>
            out<span style="color: #339933;">:</span>println <span style="color: #0000ff;">"Checked credit for "</span> <span style="color: #339933;">+</span> name <span style="color: #339933;">+</span> <span style="color: #0000ff;">" outcome is "</span> <span style="color: #339933;">+</span> creditCheckOk<span style="color: #339933;">;</span>
         <span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;/</span>scriptTask<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>sequenceFlow id<span style="color: #339933;">=</span><span style="color: #0000ff;">"sequenceFlow-b5777c55-420a-426c-9245-44fcb83e4df4"</span> sourceRef<span style="color: #339933;">=</span><span style="color: #0000ff;">"checkCredit"</span> targetRef<span style="color: #339933;">=</span><span style="color: #0000ff;">"createApplication"</span><span style="color: #339933;">&gt;&lt;/</span>sequenceFlow<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>serviceTask id<span style="color: #339933;">=</span><span style="color: #0000ff;">"createApplication"</span> activiti<span style="color: #339933;">:</span><span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">"org.bpmnwithactiviti.chapter5.CreateApplicationTask"</span><span style="color: #339933;">&gt;&lt;/</span>serviceTask<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>sequenceFlow id<span style="color: #339933;">=</span><span style="color: #0000ff;">"sequenceFlow-a205db56-b336-492d-92b1-3c7996441546"</span> sourceRef<span style="color: #339933;">=</span><span style="color: #0000ff;">"createApplication"</span> targetRef<span style="color: #339933;">=</span><span style="color: #0000ff;">"evaluateLoanRequest"</span><span style="color: #339933;">&gt;&lt;/</span>sequenceFlow<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>userTask id<span style="color: #339933;">=</span><span style="color: #0000ff;">"evaluateLoanRequest"</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">"Evaluate loan request"</span> activiti<span style="color: #339933;">:</span>assignee<span style="color: #339933;">=</span><span style="color: #0000ff;">"fozzie"</span><span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>extensionElements<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>formProperty id<span style="color: #339933;">=</span><span style="color: #0000ff;">"customerName"</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">"Customer name"</span> expression<span style="color: #339933;">=</span><span style="color: #0000ff;">"${loanApplication.customerName}"</span> writable<span style="color: #339933;">=</span><span style="color: #0000ff;">"false"</span><span style="color: #339933;">&gt;&lt;/</span>activiti<span style="color: #339933;">:</span>formProperty<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>formProperty id<span style="color: #339933;">=</span><span style="color: #0000ff;">"income"</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">"Income of customer"</span> expression<span style="color: #339933;">=</span><span style="color: #0000ff;">"${loanApplication.income}"</span> writable<span style="color: #339933;">=</span><span style="color: #0000ff;">"false"</span><span style="color: #339933;">&gt;&lt;/</span>activiti<span style="color: #339933;">:</span>formProperty<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>formProperty id<span style="color: #339933;">=</span><span style="color: #0000ff;">"requestedAmount"</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">"Requested loan amount"</span> expression<span style="color: #339933;">=</span><span style="color: #0000ff;">"${loanApplication.requestedAmount}"</span> writable<span style="color: #339933;">=</span><span style="color: #0000ff;">"false"</span><span style="color: #339933;">&gt;&lt;/</span>activiti<span style="color: #339933;">:</span>formProperty<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>formProperty id<span style="color: #339933;">=</span><span style="color: #0000ff;">"creditCheckOk"</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">"Outcome of credit check"</span> expression<span style="color: #339933;">=</span><span style="color: #0000ff;">"${loanApplication.creditCheckOk}"</span> writable<span style="color: #339933;">=</span><span style="color: #0000ff;">"false"</span><span style="color: #339933;">&gt;&lt;/</span>activiti<span style="color: #339933;">:</span>formProperty<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>formProperty id<span style="color: #339933;">=</span><span style="color: #0000ff;">"requestApproved"</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">"Do you approve the request?"</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">"enum"</span> required<span style="color: #339933;">=</span><span style="color: #0000ff;">"true"</span><span style="color: #339933;">&gt;</span>
          <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>value id<span style="color: #339933;">=</span><span style="color: #0000ff;">"true"</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">"Yes"</span><span style="color: #339933;">&gt;&lt;/</span>activiti<span style="color: #339933;">:</span>value<span style="color: #339933;">&gt;</span>
          <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>value id<span style="color: #339933;">=</span><span style="color: #0000ff;">"false"</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">"No"</span><span style="color: #339933;">&gt;&lt;/</span>activiti<span style="color: #339933;">:</span>value<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;/</span>activiti<span style="color: #339933;">:</span>formProperty<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>formProperty id<span style="color: #339933;">=</span><span style="color: #0000ff;">"explanation"</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">"Explanation"</span><span style="color: #339933;">&gt;&lt;/</span>activiti<span style="color: #339933;">:</span>formProperty<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>extensionElements<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;/</span>userTask<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>sequenceFlow id<span style="color: #339933;">=</span><span style="color: #0000ff;">"sequenceFlow-bb80e463-aeaa-400f-b4e0-93411ebf9d03"</span> sourceRef<span style="color: #339933;">=</span><span style="color: #0000ff;">"evaluateLoanRequest"</span> targetRef<span style="color: #339933;">=</span><span style="color: #0000ff;">"approvalGateway"</span><span style="color: #339933;">&gt;&lt;/</span>sequenceFlow<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>boundaryEvent id<span style="color: #339933;">=</span><span style="color: #0000ff;">"escalationTimer"</span> attachedToRef<span style="color: #339933;">=</span><span style="color: #0000ff;">"evaluateLoanRequest"</span> cancelActivity<span style="color: #339933;">=</span><span style="color: #0000ff;">"true"</span><span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>timerEventDefinition<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>timeDuration<span style="color: #339933;">&gt;</span>PT1M<span style="color: #339933;">&lt;/</span>timeDuration<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>timerEventDefinition<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;/</span>boundaryEvent<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>sequenceFlow id<span style="color: #339933;">=</span><span style="color: #0000ff;">"sequenceFlow-e77d6d4d-9c90-4abe-979b-55562296a412"</span> sourceRef<span style="color: #339933;">=</span><span style="color: #0000ff;">"escalationTimer"</span> targetRef<span style="color: #339933;">=</span><span style="color: #0000ff;">"evaluateRequestByManager"</span><span style="color: #339933;">&gt;&lt;/</span>sequenceFlow<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>userTask id<span style="color: #339933;">=</span><span style="color: #0000ff;">"evaluateRequestByManager"</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">"Evaluate loan request by manager"</span> activiti<span style="color: #339933;">:</span>candidateGroups<span style="color: #339933;">=</span><span style="color: #0000ff;">"management"</span><span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>extensionElements<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>formProperty id<span style="color: #339933;">=</span><span style="color: #0000ff;">"customerName"</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">"Customer name"</span> expression<span style="color: #339933;">=</span><span style="color: #0000ff;">"${loanApplication.customerName}"</span> writable<span style="color: #339933;">=</span><span style="color: #0000ff;">"false"</span><span style="color: #339933;">&gt;&lt;/</span>activiti<span style="color: #339933;">:</span>formProperty<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>formProperty id<span style="color: #339933;">=</span><span style="color: #0000ff;">"income"</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">"Income of customer"</span> expression<span style="color: #339933;">=</span><span style="color: #0000ff;">"${loanApplication.income}"</span> writable<span style="color: #339933;">=</span><span style="color: #0000ff;">"false"</span><span style="color: #339933;">&gt;&lt;/</span>activiti<span style="color: #339933;">:</span>formProperty<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>formProperty id<span style="color: #339933;">=</span><span style="color: #0000ff;">"requestedAmount"</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">"Requested loan amount"</span> expression<span style="color: #339933;">=</span><span style="color: #0000ff;">"${loanApplication.requestedAmount}"</span> writable<span style="color: #339933;">=</span><span style="color: #0000ff;">"false"</span><span style="color: #339933;">&gt;&lt;/</span>activiti<span style="color: #339933;">:</span>formProperty<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>formProperty id<span style="color: #339933;">=</span><span style="color: #0000ff;">"creditCheckOk"</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">"Outcome of credit check"</span> expression<span style="color: #339933;">=</span><span style="color: #0000ff;">"${loanApplication.creditCheckOk}"</span> writable<span style="color: #339933;">=</span><span style="color: #0000ff;">"false"</span><span style="color: #339933;">&gt;&lt;/</span>activiti<span style="color: #339933;">:</span>formProperty<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>formProperty id<span style="color: #339933;">=</span><span style="color: #0000ff;">"requestApproved"</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">"Do you approve the request?"</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">"enum"</span> required<span style="color: #339933;">=</span><span style="color: #0000ff;">"true"</span><span style="color: #339933;">&gt;</span>
          <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>value id<span style="color: #339933;">=</span><span style="color: #0000ff;">"true"</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">"Yes"</span><span style="color: #339933;">&gt;&lt;/</span>activiti<span style="color: #339933;">:</span>value<span style="color: #339933;">&gt;</span>
          <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>value id<span style="color: #339933;">=</span><span style="color: #0000ff;">"false"</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">"No"</span><span style="color: #339933;">&gt;&lt;/</span>activiti<span style="color: #339933;">:</span>value<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;/</span>activiti<span style="color: #339933;">:</span>formProperty<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>formProperty id<span style="color: #339933;">=</span><span style="color: #0000ff;">"explanation"</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">"Explanation"</span><span style="color: #339933;">&gt;&lt;/</span>activiti<span style="color: #339933;">:</span>formProperty<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>extensionElements<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;/</span>userTask<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>sequenceFlow id<span style="color: #339933;">=</span><span style="color: #0000ff;">"sequenceFlow-d94c0587-5717-4229-a236-c861b3cfcf36"</span> sourceRef<span style="color: #339933;">=</span><span style="color: #0000ff;">"evaluateRequestByManager"</span> targetRef<span style="color: #339933;">=</span><span style="color: #0000ff;">"approvalGateway"</span><span style="color: #339933;">&gt;&lt;/</span>sequenceFlow<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>exclusiveGateway id<span style="color: #339933;">=</span><span style="color: #0000ff;">"approvalGateway"</span><span style="color: #339933;">&gt;&lt;/</span>exclusiveGateway<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>sequenceFlow id<span style="color: #339933;">=</span><span style="color: #0000ff;">"sequenceFlow-8146a86e-12d1-4a93-9e2d-a48daa266830"</span> sourceRef<span style="color: #339933;">=</span><span style="color: #0000ff;">"approvalGateway"</span> targetRef<span style="color: #339933;">=</span><span style="color: #0000ff;">"informCustomer"</span><span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>conditionExpression xsi<span style="color: #339933;">:</span>type<span style="color: #339933;">=</span><span style="color: #0000ff;">"tFormalExpression"</span><span style="color: #339933;">&gt;&lt;!</span><span style="color: #009900;">[</span>CDATA<span style="color: #009900;">[</span>$<span style="color: #009900;">{</span>requestApproved <span style="color: #339933;">==</span> <span style="color: #000066; font-weight: bold;">false</span><span style="color: #009900;">}</span><span style="color: #009900;">]</span><span style="color: #009900;">]</span><span style="color: #339933;">&gt;&lt;/</span>conditionExpression<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;/</span>sequenceFlow<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>sequenceFlow id<span style="color: #339933;">=</span><span style="color: #0000ff;">"sequenceFlow-298593fc-ef06-49cc-8714-e4d8cf9de075"</span> sourceRef<span style="color: #339933;">=</span><span style="color: #0000ff;">"approvalGateway"</span> targetRef<span style="color: #339933;">=</span><span style="color: #0000ff;">"processRequest"</span><span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>conditionExpression xsi<span style="color: #339933;">:</span>type<span style="color: #339933;">=</span><span style="color: #0000ff;">"tFormalExpression"</span><span style="color: #339933;">&gt;&lt;!</span><span style="color: #009900;">[</span>CDATA<span style="color: #009900;">[</span>$<span style="color: #009900;">{</span>requestApproved <span style="color: #339933;">==</span> <span style="color: #000066; font-weight: bold;">true</span><span style="color: #009900;">}</span><span style="color: #009900;">]</span><span style="color: #009900;">]</span><span style="color: #339933;">&gt;&lt;/</span>conditionExpression<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;/</span>sequenceFlow<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>serviceTask id<span style="color: #339933;">=</span><span style="color: #0000ff;">"informCustomer"</span> activiti<span style="color: #339933;">:</span>type<span style="color: #339933;">=</span><span style="color: #0000ff;">"mail"</span><span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>extensionElements<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>field name<span style="color: #339933;">=</span><span style="color: #0000ff;">"to"</span><span style="color: #339933;">&gt;</span>
          <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>expression<span style="color: #339933;">&gt;</span>$<span style="color: #009900;">{</span>loanApplication.<span style="color: #006633;">emailAddress</span><span style="color: #009900;">}</span><span style="color: #339933;">&lt;/</span>activiti<span style="color: #339933;">:</span>expression<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;/</span>activiti<span style="color: #339933;">:</span>field<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>field name<span style="color: #339933;">=</span><span style="color: #0000ff;">"subject"</span><span style="color: #339933;">&gt;</span>
          <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>string<span style="color: #339933;">&gt;</span>Loan <a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+request"><span style="color: #003399;">Request</span></a> Denied<span style="color: #339933;">&lt;/</span>activiti<span style="color: #339933;">:</span>string<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;/</span>activiti<span style="color: #339933;">:</span>field<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>field name<span style="color: #339933;">=</span><span style="color: #0000ff;">"html"</span><span style="color: #339933;">&gt;</span>
          <span style="color: #339933;">&lt;</span>activiti<span style="color: #339933;">:</span>expression<span style="color: #339933;">&gt;&amp;</span>lt<span style="color: #339933;">;</span>html<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
                <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>body<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
                  Hello $<span style="color: #009900;">{</span>loanApplication.<span style="color: #006633;">customerName</span><span style="color: #009900;">}</span>,<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>br<span style="color: #339933;">/&amp;</span>gt<span style="color: #339933;">;&amp;</span>lt<span style="color: #339933;">;</span>br<span style="color: #339933;">/&amp;</span>gt<span style="color: #339933;">;</span>
 
                  Your loan request has been denied <span style="color: #000000; font-weight: bold;">for</span> the following reason<span style="color: #339933;">:</span> $<span style="color: #009900;">{</span>explanation<span style="color: #009900;">}</span>.<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>br<span style="color: #339933;">/&amp;</span>gt<span style="color: #339933;">;&amp;</span>lt<span style="color: #339933;">;</span>br<span style="color: #339933;">/&amp;</span>gt<span style="color: #339933;">;</span>
 
                  Kind regards,<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>br<span style="color: #339933;">/&amp;</span>gt<span style="color: #339933;">;</span>
 
                  The Loan Sharks Company.
                <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span>body<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
              <span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span>html<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;&lt;/</span>activiti<span style="color: #339933;">:</span>expression<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;/</span>activiti<span style="color: #339933;">:</span>field<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>extensionElements<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;/</span>serviceTask<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>sequenceFlow id<span style="color: #339933;">=</span><span style="color: #0000ff;">"sequenceFlow-d47de415-a158-43f4-8a68-6c28a92011c2"</span> sourceRef<span style="color: #339933;">=</span><span style="color: #0000ff;">"informCustomer"</span> targetRef<span style="color: #339933;">=</span><span style="color: #0000ff;">"theEnd"</span><span style="color: #339933;">&gt;&lt;/</span>sequenceFlow<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>userTask id<span style="color: #339933;">=</span><span style="color: #0000ff;">"processRequest"</span> name<span style="color: #339933;">=</span><span style="color: #0000ff;">"Process the loan request"</span> activiti<span style="color: #339933;">:</span>assignee<span style="color: #339933;">=</span><span style="color: #0000ff;">"fozzie"</span><span style="color: #339933;">&gt;&lt;/</span>userTask<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>sequenceFlow id<span style="color: #339933;">=</span><span style="color: #0000ff;">"sequenceFlow-7c3caf15-06b9-4a7b-880a-a19977c7c4c8"</span> sourceRef<span style="color: #339933;">=</span><span style="color: #0000ff;">"processRequest"</span> targetRef<span style="color: #339933;">=</span><span style="color: #0000ff;">"theEnd"</span><span style="color: #339933;">&gt;&lt;/</span>sequenceFlow<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>endEvent id<span style="color: #339933;">=</span><span style="color: #0000ff;">"theEnd"</span><span style="color: #339933;">&gt;&lt;/</span>endEvent<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;/</span>process<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>bpmndi<span style="color: #339933;">:</span>BPMNDiagram id<span style="color: #339933;">=</span><span style="color: #0000ff;">"BPMNDiagram_loanrequest"</span><span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>bpmndi<span style="color: #339933;">:</span>BPMNPlane bpmnElement<span style="color: #339933;">=</span><span style="color: #0000ff;">"loanrequest"</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">"BPMNPlane_loanrequest"</span><span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>bpmndi<span style="color: #339933;">:</span>BPMNShape bpmnElement<span style="color: #339933;">=</span><span style="color: #0000ff;">"escalationTimer"</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">"BPMNShape_escalationTimer"</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdc<span style="color: #339933;">:</span><a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+bounds"><span style="color: #003399;">Bounds</span></a> height<span style="color: #339933;">=</span><span style="color: #0000ff;">"30.0"</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">"30.0"</span> x<span style="color: #339933;">=</span><span style="color: #0000ff;">"445.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"45.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdc<span style="color: #339933;">:</span>Bounds<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>bpmndi<span style="color: #339933;">:</span>BPMNShape<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>bpmndi<span style="color: #339933;">:</span>BPMNShape bpmnElement<span style="color: #339933;">=</span><span style="color: #0000ff;">"createApplication"</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">"BPMNShape_createApplication"</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdc<span style="color: #339933;">:</span><a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+bounds"><span style="color: #003399;">Bounds</span></a> height<span style="color: #339933;">=</span><span style="color: #0000ff;">"60.0"</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">"100.0"</span> x<span style="color: #339933;">=</span><span style="color: #0000ff;">"230.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"4.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdc<span style="color: #339933;">:</span>Bounds<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>bpmndi<span style="color: #339933;">:</span>BPMNShape<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>bpmndi<span style="color: #339933;">:</span>BPMNShape bpmnElement<span style="color: #339933;">=</span><span style="color: #0000ff;">"processRequest"</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">"BPMNShape_processRequest"</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdc<span style="color: #339933;">:</span><a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+bounds"><span style="color: #003399;">Bounds</span></a> height<span style="color: #339933;">=</span><span style="color: #0000ff;">"60.0"</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">"100.0"</span> x<span style="color: #339933;">=</span><span style="color: #0000ff;">"620.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"0.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdc<span style="color: #339933;">:</span>Bounds<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>bpmndi<span style="color: #339933;">:</span>BPMNShape<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>bpmndi<span style="color: #339933;">:</span>BPMNShape bpmnElement<span style="color: #339933;">=</span><span style="color: #0000ff;">"evaluateRequestByManager"</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">"BPMNShape_evaluateRequestByManager"</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdc<span style="color: #339933;">:</span><a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+bounds"><span style="color: #003399;">Bounds</span></a> height<span style="color: #339933;">=</span><span style="color: #0000ff;">"60.0"</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">"140.0"</span> x<span style="color: #339933;">=</span><span style="color: #0000ff;">"340.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"160.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdc<span style="color: #339933;">:</span>Bounds<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>bpmndi<span style="color: #339933;">:</span>BPMNShape<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>bpmndi<span style="color: #339933;">:</span>BPMNShape bpmnElement<span style="color: #339933;">=</span><span style="color: #0000ff;">"informCustomer"</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">"BPMNShape_informCustomer"</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdc<span style="color: #339933;">:</span><a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+bounds"><span style="color: #003399;">Bounds</span></a> height<span style="color: #339933;">=</span><span style="color: #0000ff;">"60.0"</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">"100.0"</span> x<span style="color: #339933;">=</span><span style="color: #0000ff;">"620.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"160.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdc<span style="color: #339933;">:</span>Bounds<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>bpmndi<span style="color: #339933;">:</span>BPMNShape<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>bpmndi<span style="color: #339933;">:</span>BPMNShape bpmnElement<span style="color: #339933;">=</span><span style="color: #0000ff;">"evaluateLoanRequest"</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">"BPMNShape_evaluateLoanRequest"</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdc<span style="color: #339933;">:</span><a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+bounds"><span style="color: #003399;">Bounds</span></a> height<span style="color: #339933;">=</span><span style="color: #0000ff;">"60.0"</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">"100.0"</span> x<span style="color: #339933;">=</span><span style="color: #0000ff;">"380.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"0.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdc<span style="color: #339933;">:</span>Bounds<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>bpmndi<span style="color: #339933;">:</span>BPMNShape<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>bpmndi<span style="color: #339933;">:</span>BPMNShape bpmnElement<span style="color: #339933;">=</span><span style="color: #0000ff;">"approvalGateway"</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">"BPMNShape_approvalGateway"</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdc<span style="color: #339933;">:</span><a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+bounds"><span style="color: #003399;">Bounds</span></a> height<span style="color: #339933;">=</span><span style="color: #0000ff;">"40.0"</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">"40.0"</span> x<span style="color: #339933;">=</span><span style="color: #0000ff;">"530.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"90.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdc<span style="color: #339933;">:</span>Bounds<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>bpmndi<span style="color: #339933;">:</span>BPMNShape<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>bpmndi<span style="color: #339933;">:</span>BPMNShape bpmnElement<span style="color: #339933;">=</span><span style="color: #0000ff;">"theEnd"</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">"BPMNShape_theEnd"</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdc<span style="color: #339933;">:</span><a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+bounds"><span style="color: #003399;">Bounds</span></a> height<span style="color: #339933;">=</span><span style="color: #0000ff;">"35.0"</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">"35.0"</span> x<span style="color: #339933;">=</span><span style="color: #0000ff;">"770.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"95.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdc<span style="color: #339933;">:</span>Bounds<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>bpmndi<span style="color: #339933;">:</span>BPMNShape<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>bpmndi<span style="color: #339933;">:</span>BPMNShape bpmnElement<span style="color: #339933;">=</span><span style="color: #0000ff;">"checkCredit"</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">"BPMNShape_checkCredit"</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdc<span style="color: #339933;">:</span><a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+bounds"><span style="color: #003399;">Bounds</span></a> height<span style="color: #339933;">=</span><span style="color: #0000ff;">"60.0"</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">"100.0"</span> x<span style="color: #339933;">=</span><span style="color: #0000ff;">"80.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"6.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdc<span style="color: #339933;">:</span>Bounds<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>bpmndi<span style="color: #339933;">:</span>BPMNShape<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>bpmndi<span style="color: #339933;">:</span>BPMNShape bpmnElement<span style="color: #339933;">=</span><span style="color: #0000ff;">"theStart"</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">"BPMNShape_theStart"</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdc<span style="color: #339933;">:</span><a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+bounds"><span style="color: #003399;">Bounds</span></a> height<span style="color: #339933;">=</span><span style="color: #0000ff;">"35.0"</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">"35.0"</span> x<span style="color: #339933;">=</span><span style="color: #0000ff;">"0.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"21.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdc<span style="color: #339933;">:</span>Bounds<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>bpmndi<span style="color: #339933;">:</span>BPMNShape<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>bpmndi<span style="color: #339933;">:</span>BPMNEdge bpmnElement<span style="color: #339933;">=</span><span style="color: #0000ff;">"sequenceFlow-298593fc-ef06-49cc-8714-e4d8cf9de075"</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">"BPMNEdge_sequenceFlow-298593fc-ef06-49cc-8714-e4d8cf9de075"</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"570.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"110.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"582.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"110.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"582.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"30.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"620.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"30.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>bpmndi<span style="color: #339933;">:</span>BPMNEdge<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>bpmndi<span style="color: #339933;">:</span>BPMNEdge bpmnElement<span style="color: #339933;">=</span><span style="color: #0000ff;">"sequenceFlow-b5777c55-420a-426c-9245-44fcb83e4df4"</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">"BPMNEdge_sequenceFlow-b5777c55-420a-426c-9245-44fcb83e4df4"</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"180.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"36.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"192.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"36.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"192.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"34.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"230.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"34.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>bpmndi<span style="color: #339933;">:</span>BPMNEdge<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>bpmndi<span style="color: #339933;">:</span>BPMNEdge bpmnElement<span style="color: #339933;">=</span><span style="color: #0000ff;">"sequenceFlow-d450f4a5-4e6f-4b3e-8451-07228a5b1b0d"</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">"BPMNEdge_sequenceFlow-d450f4a5-4e6f-4b3e-8451-07228a5b1b0d"</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"35.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"38.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"42.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"36.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"42.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"36.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"80.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"36.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>bpmndi<span style="color: #339933;">:</span>BPMNEdge<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>bpmndi<span style="color: #339933;">:</span>BPMNEdge bpmnElement<span style="color: #339933;">=</span><span style="color: #0000ff;">"sequenceFlow-e77d6d4d-9c90-4abe-979b-55562296a412"</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">"BPMNEdge_sequenceFlow-e77d6d4d-9c90-4abe-979b-55562296a412"</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"460.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"75.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"460.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"117.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"490.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"117.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"490.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"230.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"430.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"230.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"410.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"220.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>bpmndi<span style="color: #339933;">:</span>BPMNEdge<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>bpmndi<span style="color: #339933;">:</span>BPMNEdge bpmnElement<span style="color: #339933;">=</span><span style="color: #0000ff;">"sequenceFlow-8146a86e-12d1-4a93-9e2d-a48daa266830"</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">"BPMNEdge_sequenceFlow-8146a86e-12d1-4a93-9e2d-a48daa266830"</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"570.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"110.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"582.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"110.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"582.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"190.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"620.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"190.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>bpmndi<span style="color: #339933;">:</span>BPMNEdge<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>bpmndi<span style="color: #339933;">:</span>BPMNEdge bpmnElement<span style="color: #339933;">=</span><span style="color: #0000ff;">"sequenceFlow-d47de415-a158-43f4-8a68-6c28a92011c2"</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">"BPMNEdge_sequenceFlow-d47de415-a158-43f4-8a68-6c28a92011c2"</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"720.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"190.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"732.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"190.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"732.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"110.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"770.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"112.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>bpmndi<span style="color: #339933;">:</span>BPMNEdge<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>bpmndi<span style="color: #339933;">:</span>BPMNEdge bpmnElement<span style="color: #339933;">=</span><span style="color: #0000ff;">"sequenceFlow-d94c0587-5717-4229-a236-c861b3cfcf36"</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">"BPMNEdge_sequenceFlow-d94c0587-5717-4229-a236-c861b3cfcf36"</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"480.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"190.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"492.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"190.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"492.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"110.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"530.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"110.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>bpmndi<span style="color: #339933;">:</span>BPMNEdge<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>bpmndi<span style="color: #339933;">:</span>BPMNEdge bpmnElement<span style="color: #339933;">=</span><span style="color: #0000ff;">"sequenceFlow-bb80e463-aeaa-400f-b4e0-93411ebf9d03"</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">"BPMNEdge_sequenceFlow-bb80e463-aeaa-400f-b4e0-93411ebf9d03"</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"480.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"30.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"492.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"30.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"492.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"110.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"530.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"110.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>bpmndi<span style="color: #339933;">:</span>BPMNEdge<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>bpmndi<span style="color: #339933;">:</span>BPMNEdge bpmnElement<span style="color: #339933;">=</span><span style="color: #0000ff;">"sequenceFlow-a205db56-b336-492d-92b1-3c7996441546"</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">"BPMNEdge_sequenceFlow-a205db56-b336-492d-92b1-3c7996441546"</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"330.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"34.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"342.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"34.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"342.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"30.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"380.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"30.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>bpmndi<span style="color: #339933;">:</span>BPMNEdge<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;</span>bpmndi<span style="color: #339933;">:</span>BPMNEdge bpmnElement<span style="color: #339933;">=</span><span style="color: #0000ff;">"sequenceFlow-7c3caf15-06b9-4a7b-880a-a19977c7c4c8"</span> id<span style="color: #339933;">=</span><span style="color: #0000ff;">"BPMNEdge_sequenceFlow-7c3caf15-06b9-4a7b-880a-a19977c7c4c8"</span><span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"720.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"30.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"732.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"30.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"732.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"110.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
        <span style="color: #339933;">&lt;</span>omgdi<span style="color: #339933;">:</span>waypoint x<span style="color: #339933;">=</span><span style="color: #0000ff;">"770.0"</span> y<span style="color: #339933;">=</span><span style="color: #0000ff;">"112.0"</span><span style="color: #339933;">&gt;&lt;/</span>omgdi<span style="color: #339933;">:</span>waypoint<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>bpmndi<span style="color: #339933;">:</span>BPMNEdge<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;/</span>bpmndi<span style="color: #339933;">:</span>BPMNPlane<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;/</span>bpmndi<span style="color: #339933;">:</span>BPMNDiagram<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>definitions<span style="color: #339933;">&gt;</span></pre></div><br>
<h1>LoanApplication.java</h1><br>
<div class="geshifilter"><pre class="java geshifilter-java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> LoanApplication <span style="color: #000000; font-weight: bold;">implements</span> <a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+serializable"><span style="color: #003399;">Serializable</span></a> <span style="color: #009900;">{</span>
 
   <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000066; font-weight: bold;">long</span> serialVersionUID <span style="color: #339933;">=</span> 1L<span style="color: #339933;">;</span>
 
   <span style="color: #000000; font-weight: bold;">private</span> <a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+string"><span style="color: #003399;">String</span></a> customerName<span style="color: #339933;">;</span>
   <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">long</span> income<span style="color: #339933;">;</span>
   <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">long</span> requestedAmount<span style="color: #339933;">;</span>
   <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">boolean</span> creditCheckOk<span style="color: #339933;">;</span>
   <span style="color: #000000; font-weight: bold;">private</span> <a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+string"><span style="color: #003399;">String</span></a> explanation<span style="color: #339933;">;</span>
   <span style="color: #000000; font-weight: bold;">private</span> <a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+string"><span style="color: #003399;">String</span></a> emailAddress<span style="color: #339933;">;</span>
   <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">long</span> loanAmount<span style="color: #339933;">;</span>
 
   <span style="color: #000000; font-weight: bold;">public</span> <a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+string"><span style="color: #003399;">String</span></a> getCustomerName<span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span>
     <span style="color: #000000; font-weight: bold;">return</span> customerName<span style="color: #339933;">;</span>
  <span style="color: #009900;">}</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> setCustomerName<span style="color: #009900;">(</span><a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+string"><span style="color: #003399;">String</span></a> customerName<span style="color: #009900;">)</span> <span style="color: #009900;">{</span>
     <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">customerName</span> <span style="color: #339933;">=</span> customerName<span style="color: #339933;">;</span>
  <span style="color: #009900;">}</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">long</span> getIncome<span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span>
     <span style="color: #000000; font-weight: bold;">return</span> income<span style="color: #339933;">;</span>
  <span style="color: #009900;">}</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> setloanAmount<span style="color: #009900;">(</span><span style="color: #000066; font-weight: bold;">long</span> loanamount<span style="color: #009900;">)</span> <span style="color: #009900;">{</span>
     <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">loanAmount</span> <span style="color: #339933;">=</span> loanamount<span style="color: #339933;">;</span>
  <span style="color: #009900;">}</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">long</span> getloanAmount<span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span>
        <span style="color: #000000; font-weight: bold;">return</span> loanAmount<span style="color: #339933;">;</span>
     <span style="color: #009900;">}</span>
      <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> setIncome<span style="color: #009900;">(</span><span style="color: #000066; font-weight: bold;">long</span> income<span style="color: #009900;">)</span> <span style="color: #009900;">{</span>
        <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">income</span> <span style="color: #339933;">=</span> income<span style="color: #339933;">;</span>
     <span style="color: #009900;">}</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">long</span> getRequestedAmount<span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span>
     <span style="color: #000000; font-weight: bold;">return</span> requestedAmount<span style="color: #339933;">;</span>
  <span style="color: #009900;">}</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> setRequestedAmount<span style="color: #009900;">(</span><span style="color: #000066; font-weight: bold;">long</span> requestedAmount<span style="color: #009900;">)</span> <span style="color: #009900;">{</span>
     <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">requestedAmount</span> <span style="color: #339933;">=</span> requestedAmount<span style="color: #339933;">;</span>
  <span style="color: #009900;">}</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">boolean</span> isCreditCheckOk<span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span>
     <span style="color: #000000; font-weight: bold;">return</span> creditCheckOk<span style="color: #339933;">;</span>
  <span style="color: #009900;">}</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> setCreditCheckOk<span style="color: #009900;">(</span><span style="color: #000066; font-weight: bold;">boolean</span> creditCheckOk<span style="color: #009900;">)</span> <span style="color: #009900;">{</span>
     <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">creditCheckOk</span> <span style="color: #339933;">=</span> creditCheckOk<span style="color: #339933;">;</span>
  <span style="color: #009900;">}</span>
   <span style="color: #000000; font-weight: bold;">public</span> <a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+string"><span style="color: #003399;">String</span></a> getExplanation<span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span>
     <span style="color: #000000; font-weight: bold;">return</span> explanation<span style="color: #339933;">;</span>
  <span style="color: #009900;">}</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> setExplanation<span style="color: #009900;">(</span><a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+string"><span style="color: #003399;">String</span></a> explanation<span style="color: #009900;">)</span> <span style="color: #009900;">{</span>
     <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">explanation</span> <span style="color: #339933;">=</span> explanation<span style="color: #339933;">;</span>
  <span style="color: #009900;">}</span>
   <span style="color: #000000; font-weight: bold;">public</span> <a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+string"><span style="color: #003399;">String</span></a> getEmailAddress<span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span>
     <span style="color: #000000; font-weight: bold;">return</span> emailAddress<span style="color: #339933;">;</span>
  <span style="color: #009900;">}</span>
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> setEmailAddress<span style="color: #009900;">(</span><a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+string"><span style="color: #003399;">String</span></a> emailAddress<span style="color: #009900;">)</span> <span style="color: #009900;">{</span>
     <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">emailAddress</span> <span style="color: #339933;">=</span> emailAddress<span style="color: #339933;">;</span>
  <span style="color: #009900;">}</span>
<span style="color: #009900;">}</span></pre></div><p></p>

<p></p><h1>CreateApplicationTask.java</h1>
<div class="geshifilter"><pre class="java geshifilter-java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> CreateApplicationTask <span style="color: #000000; font-weight: bold;">implements</span> JavaDelegate <span style="color: #009900;">{</span>
 
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> execute<span style="color: #009900;">(</span>DelegateExecution execution<span style="color: #009900;">)</span> <span style="color: #009900;">{</span>
      LoanApplication la <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> LoanApplication<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
      la.<span style="color: #006633;">setCreditCheckOk</span><span style="color: #009900;">(</span><span style="color: #009900;">(</span><a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+boolean"><span style="color: #003399;">Boolean</span></a><span style="color: #009900;">)</span> execution.<span style="color: #006633;">getVariable</span><span style="color: #009900;">(</span><span style="color: #0000ff;">"creditCheckOk"</span><span style="color: #009900;">)</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
      la.<span style="color: #006633;">setCustomerName</span><span style="color: #009900;">(</span><span style="color: #009900;">(</span><a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+string"><span style="color: #003399;">String</span></a><span style="color: #009900;">)</span> execution.<span style="color: #006633;">getVariable</span><span style="color: #009900;">(</span><span style="color: #0000ff;">"name"</span><span style="color: #009900;">)</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
      la.<span style="color: #006633;">setIncome</span><span style="color: #009900;">(</span><span style="color: #009900;">(</span><a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+long"><span style="color: #003399;">Long</span></a><span style="color: #009900;">)</span> execution.<span style="color: #006633;">getVariable</span><span style="color: #009900;">(</span><span style="color: #0000ff;">"income"</span><span style="color: #009900;">)</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
      la.<span style="color: #006633;">setRequestedAmount</span><span style="color: #009900;">(</span><span style="color: #009900;">(</span><a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+long"><span style="color: #003399;">Long</span></a><span style="color: #009900;">)</span> execution.<span style="color: #006633;">getVariable</span><span style="color: #009900;">(</span><span style="color: #0000ff;">"loanAmount"</span><span style="color: #009900;">)</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
      la.<span style="color: #006633;">setEmailAddress</span><span style="color: #009900;">(</span><span style="color: #009900;">(</span><a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+string"><span style="color: #003399;">String</span></a><span style="color: #009900;">)</span> execution.<span style="color: #006633;">getVariable</span><span style="color: #009900;">(</span><span style="color: #0000ff;">"emailAddress"</span><span style="color: #009900;">)</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
      execution.<span style="color: #006633;">setVariable</span><span style="color: #009900;">(</span><span style="color: #0000ff;">"loanApplication"</span>, la<span style="color: #009900;">)</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">}</span>
<span style="color: #009900;">}</span></pre></div>
<h1>ProcessStartExecutionListener.java</h1>
<div class="geshifilter"><pre class="java geshifilter-java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> ProcessStartExecutionListener <span style="color: #000000; font-weight: bold;">implements</span> ExecutionListener <span style="color: #009900;">{</span>
 
 
   @Override
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> notify<span style="color: #009900;">(</span>DelegateExecution execution<span style="color: #009900;">)</span> <span style="color: #000000; font-weight: bold;">throws</span> <a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+exception"><span style="color: #003399;">Exception</span></a> <span style="color: #009900;">{</span>
 
      LoanRequestReceivedEvent event <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> LoanRequestReceivedEvent<span style="color: #009900;">(</span>
         execution.<span style="color: #006633;">getId</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span>,
         <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+date"><span style="color: #003399;">Date</span></a><span style="color: #009900;">(</span><span style="color: #009900;">)</span>.<span style="color: #006633;">getTime</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span>,
         <span style="color: #009900;">(</span><a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+integer"><span style="color: #003399;">Integer</span></a><span style="color: #009900;">)</span> execution.<span style="color: #006633;">getVariable</span><span style="color: #009900;">(</span><span style="color: #0000ff;">"loanAmount"</span><span style="color: #009900;">)</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
 
      EventSender.<span style="color: #006633;">send</span><span style="color: #009900;">(</span>event<span style="color: #009900;">)</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">}</span>
<span style="color: #009900;">}</span></pre></div>
<h1>ProcessEndEvent.java</h1>
<div class="geshifilter"><pre class="java geshifilter-java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> ProcessEndExecutionListener <span style="color: #000000; font-weight: bold;">implements</span> ExecutionListener <span style="color: #009900;">{</span>
 
   @Override
   <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> notify<span style="color: #009900;">(</span>DelegateExecution execution<span style="color: #009900;">)</span> <span style="color: #000000; font-weight: bold;">throws</span> <a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+exception"><span style="color: #003399;">Exception</span></a> <span style="color: #009900;">{</span>
      LoanRequestProcessedEvent event <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> LoanRequestProcessedEvent <span style="color: #009900;">(</span>
         execution.<span style="color: #006633;">getId</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span>,
         <span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+date"><span style="color: #003399;">Date</span></a><span style="color: #009900;">(</span><span style="color: #009900;">)</span>.<span style="color: #006633;">getTime</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span>,
         <span style="color: #009900;">(</span><a href="http://www.google.com/search?hl=en&q=allinurl%3Adocs.oracle.com+javase+docs+api+boolean"><span style="color: #003399;">Boolean</span></a><span style="color: #009900;">)</span> execution.<span style="color: #006633;">getVariable</span><span style="color: #009900;">(</span><span style="color: #0000ff;">"requestApproved"</span><span style="color: #009900;">)</span>,
         <span style="color: #cc66cc;">10</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
      EventSender.<span style="color: #006633;">send</span><span style="color: #009900;">(</span>event<span style="color: #009900;">)</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">}</span>
<span style="color: #009900;">}</span></pre></div><p></p></div></div>
3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
Where is your NPE actually occurring? And what is the stack trace? The code you have in your listener actually looks fine to me…

Error org.activiti.interceptor.Commandtext - Error while
java.lang.NullPointerExeption at org.bpmnwithactiviti.Chapter5.listener.ProcessStartExecutionListener.notify(ProcessStartExecutionListener.java:16)

jbarrez
Star Contributor
Star Contributor
Is this the same post as the other one I just responded to?