CalculateBonita

Section contains description of Process " CalculateBonita.process " .

Folder description:

Folder Description
  No description

Process description:

Calculate pretender's bonita

Process definition:

Full process path: ProcessDefinitions/CalculateBonita/CalculateBonita.process

Diagram:

Start End Assign Bonita From: Start To: Assign Bonita From: Assign Bonita To: End

Process starter activity:

Name: Start

Description: Start of process with InputParameters structure

Input Parameters:

  • + InputParameters (Complex Type, required )
    • - MonthIncrement(xsd:long,required)
    • - Value(xsd:long,required)
    • - RealtyValue(xsd:long,required)
    • - Problem(xsd:boolean,required)
    • - Loan(xsd:long,required)
    • - Refund(xsd:long,required)

Process end activity:

Name: End

Output Parameters:

  • - Bonita(xsd:long,required)
Return bindings:
  • Mapping table

    Target Source
    /Bonita $Schema0/Bonita + (if(( $Start/InputParameters/Problem = 1) and ($Schema0/Bonita > 0))then -1 else 0) + (if($Start/InputParameters/Value >= 1000000)then floor($Start/InputParameters/Value div 1000000) else 0)
  • Mapping tree

    Mapping
    Bonita = $Schema0/Bonita +
     (if(( $Start/InputParameters/Problem = 1) and ($Schema0/Bonita > 0))then  -1 else 0)
     +
     (if($Start/InputParameters/Value >= 1000000)then floor($Start/InputParameters/Value div 1000000) else 0)
  • Source code

    Mapping
            <Bonita xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                <xsl:value-of select="$Schema0/Bonita +&#xA;(if(( $Start/InputParameters/Problem = 1) and ($Schema0/Bonita &gt; 0))then  -1 else 0)&#xA;+&#xA;(if($Start/InputParameters/Value &gt;= 1000000)then floor($Start/InputParameters/Value div 1000000) else 0)"/>
            </Bonita>
        

Process variables:

Schema: Schema0

  • - Bonita(xsd:long,required)

Activities:

Name: Assign Bonita

  • Type: com.tibco.pe.core.AssignActivity
  • Resource Type: ae.activities.assignActivity
  • Description: Bonita calculation
  • Configuration:
    • variableName = Schema0
  • Input bindings:
    • Mapping table

      Target Source
      /Bonita if($Start/InputParameters/MonthIncrement < 10000) then 0 else if((($Start/InputParameters/RealtyValue * 0.7)< (-$Start/InputParameters/Value))and (((-$Start/InputParameters/Value) + $Start/InputParameters/Loan)> 300000))then 0 else if($Start/InputParameters/MonthIncrement - $Start/InputParameters/Refund < 7000) then 0 else if($Start/InputParameters/MonthIncrement - $Start/InputParameters/Refund < 15000) then 1 else if($Start/InputParameters/MonthIncrement - $Start/InputParameters/Refund < 30000) then 2 else if($Start/InputParameters/MonthIncrement - $Start/InputParameters/Refund < 100000) then 3 else 4
    • Mapping tree

      Mapping
      Bonita = if($Start/InputParameters/MonthIncrement < 10000) then 0 else
       if((($Start/InputParameters/RealtyValue * 0.7)< (-$Start/InputParameters/Value))and
         (((-$Start/InputParameters/Value) + $Start/InputParameters/Loan)> 300000))then 0 else 
       if($Start/InputParameters/MonthIncrement - $Start/InputParameters/Refund < 7000) then 0 else
       if($Start/InputParameters/MonthIncrement - $Start/InputParameters/Refund < 15000) then 1 else
       if($Start/InputParameters/MonthIncrement - $Start/InputParameters/Refund < 30000) then 2 else
       if($Start/InputParameters/MonthIncrement - $Start/InputParameters/Refund < 100000) then 3 else 4
    • Source code

      Mapping
                  <Bonita xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                      <xsl:value-of select="if($Start/InputParameters/MonthIncrement &lt; 10000) then 0 else&#xA;if((($Start/InputParameters/RealtyValue * 0.7)&lt; (-$Start/InputParameters/Value))and&#xA;  (((-$Start/InputParameters/Value) + $Start/InputParameters/Loan)&gt; 300000))then 0 else &#xA;if($Start/InputParameters/MonthIncrement - $Start/InputParameters/Refund &lt; 7000) then 0 else&#xA;if($Start/InputParameters/MonthIncrement - $Start/InputParameters/Refund &lt; 15000) then 1 else&#xA;if($Start/InputParameters/MonthIncrement - $Start/InputParameters/Refund &lt; 30000) then 2 else&#xA;if($Start/InputParameters/MonthIncrement - $Start/InputParameters/Refund &lt; 100000) then 3 else 4"/>
                  </Bonita>
              

Transitions:

  • From: Assign Bonita -To: End
    • Label:
    • Condition: Success
    • Description:
  • From: Start -To: Assign Bonita
    • Label:
    • Condition: Success
    • Description: