CalculateBonitaService

Section contains description of Process " CalculateBonitaService.process " .

Folder description:

Folder Description
  No description

Process description:

Get and prepare input parameters for process CalculateBonita. Then send request with calculated bonita.

Process definition:

Full process path: ProcessDefinitions/CalculateBonita/CalculateBonitaService.process

Diagram:

InputParameters JMSQueueReceiver End CalculateBonita Obligators SOAPRequestReply Reply to JMS Message From: InputParameters JMSQueueReceiver To: Obligators SOAPRequestReply From: Obligators SOAPRequestReply To: CalculateBonita From: CalculateBonita To: Reply to JMS Message From: Reply to JMS Message To: End

Process starter activity:

Name: InputParameters JMSQueueReceiver

  • Property Name: InputParameters JMSQueueReceiver
    • Type: com.tibco.plugin.jms.JMSQueueEventSource
    • Resource Type: ae.activities.JMSQueueEventSource
    • Description: Get JMS message with CalculateBonita message selector and InputParameters
    • Configuration:
      • PermittedMessageType = XML Text
      • SessionAttributes
        • transacted = false
        • acknowledgeMode = 1 (Auto)
        • maxSessions = 1
        • destination = %%ENV%%.%%CalculateBonitaJMSQueueName%%
        • selector = Part='CalculateBonita'
      • ConfigurableHeaders
        • JMSDeliveryMode = PERSISTENT
        • JMSExpiration = 0
        • JMSPriority = 4
      • ConnectionReference = /SharedConnections/CalculateBonitaEMSConnection.sharedjmscon
      • ApplicationProperties = /SharedResources/JMSApplicationProperties.sharedjmsapp
      • OutDataxsdString

Process end activity:

Name: End

Activities:

Name: CalculateBonita

  • Type: com.tibco.pe.core.CallProcessActivity
  • Resource Type: ae.process.subprocess
  • Description: Calculate pretender's bonita from InputParameters and Obligator records
  • Configuration:
  • Input bindings:
    • Mapping table

      Target Source
      /InputParameters/MonthIncrement $InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/MonthIncrement
      /InputParameters/Value $InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/Value
      /InputParameters/RealtyValue $InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/RealtyValue
      /InputParameters/Problem $Obligators-SOAPRequestReply/outputMessage/ns2:Obligator/ns2:Problem
      /InputParameters/Loan $Obligators-SOAPRequestReply/outputMessage/ns2:Obligator/ns2:Value
      /InputParameters/Refund $Obligators-SOAPRequestReply/outputMessage/ns2:Obligator/ns2:Refund + $InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/Refund
    • Mapping tree

      Mapping
      InputParameters
       MonthIncrement = $InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/MonthIncrement
       Value = $InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/Value
       RealtyValue = $InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/RealtyValue
       Problem = $Obligators-SOAPRequestReply/outputMessage/ns2:Obligator/ns2:Problem
       Loan = $Obligators-SOAPRequestReply/outputMessage/ns2:Obligator/ns2:Value
       Refund = $Obligators-SOAPRequestReply/outputMessage/ns2:Obligator/ns2:Refund + $InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/Refund
    • Source code

      Mapping
                  <InputParameters xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pfx2="http://xmlns.example.com/1171360277608/GetObligatorServiceOperationImpl" xmlns:ns="http://www.tibco.com/namespaces/tnt/plugins/jms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns2="http://www.tibco.com/schemas/GrantingCredit/SharedConnections/Schema1.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.tibco.com/pe/DeployedVarsType" xmlns:pfx="http://www.tibco.com/xmlns/ae2xsd/2002/05/EMS/CalculateBonitaAESchema" xmlns:pfx3="http://www.tibco.com/xmlns/ae2xsd/2002/05/EMS/AESchema">
                      <MonthIncrement>
                          <xsl:value-of select="$InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/MonthIncrement"/>
                      </MonthIncrement>
                      <Value>
                          <xsl:value-of select="$InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/Value"/>
                      </Value>
                      <RealtyValue>
                          <xsl:value-of select="$InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/RealtyValue"/>
                      </RealtyValue>
                      <Problem>
                          <xsl:value-of select="$Obligators-SOAPRequestReply/outputMessage/ns2:Obligator/ns2:Problem"/>
                      </Problem>
                      <Loan>
                          <xsl:value-of select="$Obligators-SOAPRequestReply/outputMessage/ns2:Obligator/ns2:Value"/>
                      </Loan>
                      <Refund>
                          <xsl:value-of select="$Obligators-SOAPRequestReply/outputMessage/ns2:Obligator/ns2:Refund + $InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/Refund"/>
                      </Refund>
                  </InputParameters>
              

Name: Obligators SOAPRequestReply

  • Type: com.tibco.plugin.soap.SOAPSendReceiveActivity
  • Resource Type: ae.activities.SOAPSendReceiveUI
  • Description: SOAPRequest on GetObligator process and get reply with result
  • Configuration:
    • timeout = 0
    • service = pfx2:GetObligatorService
    • servicePort = ObligatorName_sp_SOAPEventSource
    • operation = GetObligatorServiceOperation
    • soapAction = /ProcessDefinitions/GetObligator/GetObligatorService
    • endpointURL = %%GetObligatorServiceEndpointURL%%
    • useProxy = false
    • requireBasicAuth = false
    • basicHttpAuthIdentity =
  • Input bindings:
    • Mapping table

      Target Source
      /inputMessage/Name $InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/Name
    • Mapping tree

      Mapping
      inputMessage
       Name = $InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/Name
    • Source code

      Mapping
                  <inputMessage xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pfx2="http://xmlns.example.com/1171360277608/GetObligatorServiceOperationImpl" xmlns:ns="http://www.tibco.com/namespaces/tnt/plugins/jms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns2="http://www.tibco.com/schemas/GrantingCredit/SharedConnections/Schema1.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.tibco.com/pe/DeployedVarsType" xmlns:pfx="http://www.tibco.com/xmlns/ae2xsd/2002/05/EMS/CalculateBonitaAESchema" xmlns:pfx3="http://www.tibco.com/xmlns/ae2xsd/2002/05/EMS/AESchema">
                      <ns2:Name>
                          <xsl:value-of select="$InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/Name"/>
                      </ns2:Name>
                  </inputMessage>
              

Name: Reply to JMS Message

  • Type: com.tibco.plugin.jms.JMSReplyActivity
  • Resource Type: ae.activities.JMSReplyActivity
  • Description: Send JMS reply with calculated bonita
  • Configuration:
    • PermittedMessageType = XML Text
    • SessionAttributes
      • transacted = false
      • acknowledgeMode = 1
      • maxSessions = 1
    • ConfigurableHeaders
      • JMSDeliveryMode = PERSISTENT
      • JMSExpiration = 0
      • JMSPriority = 4
      • EventSource = InputParameters JMSQueueReceiver
    • ApplicationProperties = /SharedResources/JMSApplicationProperties.sharedjmsapp
    • InDataxsdString
  • Input bindings:
    • Mapping table

      Target Source
      /ActivityInput/OtherProperties/Part "CalculateBonita"
      /ActivityInput/Body/PretenderBonita/[IF]<$InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/Name>/Name/@nil [COPY-OF] < $InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/Name/@xsi:nil >
      /ActivityInput/Body/PretenderBonita/[IF]<$InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/Name>/Name $InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/Name
      /ActivityInput/Body/PretenderBonita/Bonita $CalculateBonita/Bonita
    • Mapping tree

      Mapping
      ActivityInput
       OtherProperties
        Part = "CalculateBonita"
       Body
        PretenderBonita
         [IF] < $InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/Name >
          Name = $InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/Name
           @nil = [COPY-OF] < $InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/Name/@xsi:nil >
         Bonita = $CalculateBonita/Bonita
    • Source code

      Mapping
                  <ns:ActivityInput xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pfx2="http://xmlns.example.com/1171360277608/GetObligatorServiceOperationImpl" xmlns:ns="http://www.tibco.com/namespaces/tnt/plugins/jms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns2="http://www.tibco.com/schemas/GrantingCredit/SharedConnections/Schema1.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.tibco.com/pe/DeployedVarsType" xmlns:pfx="http://www.tibco.com/xmlns/ae2xsd/2002/05/EMS/CalculateBonitaAESchema" xmlns:pfx3="http://www.tibco.com/xmlns/ae2xsd/2002/05/EMS/AESchema">
                      <OtherProperties>
                          <Part>
                              <xsl:value-of select="&#34;CalculateBonita&#34;"/>
                          </Part>
                      </OtherProperties>
                      <Body>
                          <pfx:PretenderBonita>
                              <xsl:if test="$InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/Name">
                                  <Name>
                                      <xsl:copy-of select="$InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/Name/@xsi:nil"/>
                                      <xsl:value-of select="$InputParameters-JMSQueueReceiver/ns:ActivityOutput/Body/pfx:InputParameters/Name"/>
                                  </Name>
                              </xsl:if>
                              <Bonita>
                                  <xsl:value-of select="$CalculateBonita/Bonita"/>
                              </Bonita>
                          </pfx:PretenderBonita>
                      </Body>
                  </ns:ActivityInput>
              

Transitions:

  • From: CalculateBonita -To: Reply to JMS Message
    • Label:
    • Condition: Success
    • Description:
  • From: InputParameters JMSQueueReceiver -To: Obligators SOAPRequestReply
    • Label:
    • Condition: Success
    • Description:
  • From: Obligators SOAPRequestReply -To: CalculateBonita
    • Label:
    • Condition: Success
    • Description:
  • From: Reply to JMS Message -To: End
    • Label:
    • Condition: Success
    • Description: