AccountState

Section contains description of Process " AccountState.process " .

Folder description:

Folder Description
  No description

Process description:

Main communication process. Receive input parameters. Call CalculateBonita process and at the end send result.

Process definition:

Full process path: ProcessDefinitions/AccountState.process

Diagram:

Autentification HTTPReceiver End AccountState SOAPRequestReply Bonita JMSQueueRequestor AccountState SendHTTPResponse FailedAutentification SendHTTPResponse From: Autentification HTTPReceiver To: AccountState SOAPRequestReply From: AccountState SOAPRequestReply To: Bonita JMSQueueRequestor From: Bonita JMSQueueRequestor To: AccountState SendHTTPResponse From: AccountState SendHTTPResponse To: End From: FailedAutentification SendHTTPResponse To: End From: AccountState SOAPRequestReply To: FailedAutentification SendHTTPResponse

Process starter activity:

Name: Autentification HTTPReceiver

  • Property Name: Autentification HTTPReceiver
    • Type: com.tibco.plugin.http.HTTPEventSource
    • Resource Type: httppalette.httpEventSource
    • Description: Receive input client autentification information from HTTP
    • Configuration:
      • outputMode = String
      • defaultEncoding = ISO8859_1
      • inputOutputVersion = 5.3.0
      • newMimeSupport = true
      • sharedChannel = /SharedConnections/IOHTTPConnection.sharedhttp
      • customField
        • row
          • attribute = Name
          • attributeType = string
          • attributeCard = required
        • row
          • attribute = Password
          • attributeType = string
          • attributeCard = required
      • Headers
        • + root (Complex Type, required )
          • - Accept(xsd:string,optional)
          • - Accept-Charset(xsd:string,optional)
          • - Accept-Encoding(xsd:string,optional)
          • - Content-Type(xsd:string,optional)
          • - Content-Length(xsd:string,optional)
          • - Connection(xsd:string,optional)
          • - Cookie(xsd:string,optional)
          • - Pragma(xsd:string,optional)

Process end activity:

Name: End

Activities:

Name: AccountState SOAPRequestReply

  • Type: com.tibco.plugin.soap.SOAPSendReceiveActivity
  • Resource Type: ae.activities.SOAPSendReceiveUI
  • Description: SOAPRequest on GetAccountState process and get reply with result
  • Configuration:
    • timeout = 0
    • service = pfx:GetAccountStateService
    • servicePort = UserName_sp_SOAPEventSource
    • operation = GetAccountStateOperation
    • soapAction = /ProcessDefinitions/GetAccountState/GetAccountStateService
    • endpointURL = %%AccountStateServiceEndpointURL%%
  • Input bindings:
    • Mapping table

      Target Source
      /inputMessage/Name $Autentification-HTTPReceiver/ProcessStarterOutput/parameters/Name
    • Mapping tree

      Mapping
      inputMessage
       Name = $Autentification-HTTPReceiver/ProcessStarterOutput/parameters/Name
    • Source code

      Mapping
                  <inputMessage xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pfx="http://xmlns.example.com/1171610171437/GetAccountStateOperationImpl" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pfx2="http://www.tibco.com/xmlns/ae2xsd/2002/05/EMS/CalculateBonitaAESchema" xmlns:ns="http://www.tibco.com/schemas/AccountState/SharedResources/Schema.xsd" xmlns:ns1="http://www.tibco.com/pe/DeployedVarsType" xmlns:ns2="http://www.tibco.com/namespaces/tnt/plugins/jms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:pfx3="http://xmlns.example.com/1171360277608/GetObligatorServiceOperationImpl">
                      <ns:Name>
                          <xsl:value-of select="$Autentification-HTTPReceiver/ProcessStarterOutput/parameters/Name"/>
                      </ns:Name>
                  </inputMessage>
              

Name: AccountState SendHTTPResponse

  • Type: com.tibco.plugin.http.HTTPResponseActivity
  • Resource Type: httppalette.httpWebResponse
  • Description: Send result as HTTP
  • Configuration:
    • closeConnection = true
    • eventSource = Autentification HTTPReceiver
    • Headers
      • + root (Complex Type, required )
        • - StatusLine(xsd:string,optional)
        • - Content-Type(xsd:string,optional)
        • - Set-Cookie(xsd:string,optional)
        • - Pragma(xsd:string,optional)
        • - Location(xsd:string,optional)
  • Input bindings:
    • Mapping table

      Target Source
      /ResponseActivityInput/asciiContent concat("<H1>Account state</H1><B>Account no: </B>",$AccountState-SOAPRequestReply/outputMessage/ns:Account/ns:Number, "<BR><B>Name: </B>", $AccountState-SOAPRequestReply/outputMessage/ns:Account/ns:Name, "<BR><B>Value: </B>", $AccountState-SOAPRequestReply/outputMessage/ns:Account/ns:Value, "<BR><B>Account status: </B>", (if($Bonita-JMSQueueRequestor/ns2:ActivityOutput/Body/pfx2:PretenderBonita/Bonita <= 0) then "Basic" else if($Bonita-JMSQueueRequestor/ns2:ActivityOutput/Body/pfx2:PretenderBonita/Bonita = 1) then "Normal" else if($Bonita-JMSQueueRequestor/ns2:ActivityOutput/Body/pfx2:PretenderBonita/Bonita = 2) then "Bronze" else if($Bonita-JMSQueueRequestor/ns2:ActivityOutput/Body/pfx2:PretenderBonita/Bonita = 3) then "Silver" else "Gold"))
    • Mapping tree

      Mapping
      ResponseActivityInput
       asciiContent = concat("<H1>Account state</H1><B>Account no: </B>",$AccountState-SOAPRequestReply/outputMessage/ns:Account/ns:Number,
        "<BR><B>Name: </B>", $AccountState-SOAPRequestReply/outputMessage/ns:Account/ns:Name,
        "<BR><B>Value: </B>", $AccountState-SOAPRequestReply/outputMessage/ns:Account/ns:Value,
        "<BR><B>Account status: </B>",
        (if($Bonita-JMSQueueRequestor/ns2:ActivityOutput/Body/pfx2:PretenderBonita/Bonita <= 0) then "Basic" else
        if($Bonita-JMSQueueRequestor/ns2:ActivityOutput/Body/pfx2:PretenderBonita/Bonita = 1) then "Normal" else
        if($Bonita-JMSQueueRequestor/ns2:ActivityOutput/Body/pfx2:PretenderBonita/Bonita = 2) then "Bronze" else
        if($Bonita-JMSQueueRequestor/ns2:ActivityOutput/Body/pfx2:PretenderBonita/Bonita = 3) then "Silver" else
        "Gold"))
    • Source code

      Mapping
                  <ResponseActivityInput xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pfx="http://xmlns.example.com/1171610171437/GetAccountStateOperationImpl" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pfx2="http://www.tibco.com/xmlns/ae2xsd/2002/05/EMS/CalculateBonitaAESchema" xmlns:ns="http://www.tibco.com/schemas/AccountState/SharedResources/Schema.xsd" xmlns:ns1="http://www.tibco.com/pe/DeployedVarsType" xmlns:ns2="http://www.tibco.com/namespaces/tnt/plugins/jms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:pfx3="http://xmlns.example.com/1171360277608/GetObligatorServiceOperationImpl">
                      <asciiContent>
                          <xsl:value-of select="concat(&#34;&lt;H1&gt;Account state&lt;/H1&gt;&lt;B&gt;Account no: &lt;/B&gt;&#34;,$AccountState-SOAPRequestReply/outputMessage/ns:Account/ns:Number,&#xA;&#34;&lt;BR&gt;&lt;B&gt;Name: &lt;/B&gt;&#34;, $AccountState-SOAPRequestReply/outputMessage/ns:Account/ns:Name,&#xA;&#34;&lt;BR&gt;&lt;B&gt;Value: &lt;/B&gt;&#34;, $AccountState-SOAPRequestReply/outputMessage/ns:Account/ns:Value,&#xA;&#34;&lt;BR&gt;&lt;B&gt;Account status: &lt;/B&gt;&#34;,&#xA;(if($Bonita-JMSQueueRequestor/ns2:ActivityOutput/Body/pfx2:PretenderBonita/Bonita &lt;= 0) then &#34;Basic&#34; else&#xA;if($Bonita-JMSQueueRequestor/ns2:ActivityOutput/Body/pfx2:PretenderBonita/Bonita = 1) then &#34;Normal&#34; else&#xA;if($Bonita-JMSQueueRequestor/ns2:ActivityOutput/Body/pfx2:PretenderBonita/Bonita = 2) then &#34;Bronze&#34; else&#xA;if($Bonita-JMSQueueRequestor/ns2:ActivityOutput/Body/pfx2:PretenderBonita/Bonita = 3) then &#34;Silver&#34; else&#xA;&#34;Gold&#34;))"/>
                      </asciiContent>
                  </ResponseActivityInput>
              

Name: Bonita JMSQueueRequestor

  • Type: com.tibco.plugin.jms.JMSQueueRequestReplyActivity
  • Resource Type: ae.activities.JMSQueueRequestReplyActivity
  • Description: JMS request on CalculateBonita process and get reply with result
  • Configuration:
    • PermittedMessageType = XML Text
    • SessionAttributes
      • transacted = false
      • acknowledgeMode = 1
      • maxSessions = 1
      • destination = %%ENV%%.%%CalculateBonitaJMSQueueName%%
    • ConfigurableHeaders
      • JMSDeliveryMode = PERSISTENT
      • JMSExpiration = 0
      • JMSPriority = 4
    • ConnectionReference = /SharedConnections/CalculateBonitaEMSConnection.sharedjmscon
    • ApplicationProperties = /SharedResources/JMSApplicationProperties.sharedjmsapp
    • InDataxsdString
    • OutDataxsdString
  • Input bindings:
    • Mapping table

      Target Source
      /ActivityInput/replyToQueue concat($_globalVariables/ns1:GlobalVariables/ENV,$_globalVariables/ns1:GlobalVariables/AccountStateJMSQueueName)
      /ActivityInput/OtherProperties/Part "CalculateBonita"
      /ActivityInput/Body/InputParameters/Name $AccountState-SOAPRequestReply/outputMessage/ns:Account/ns:Name
      /ActivityInput/Body/InputParameters/Value $AccountState-SOAPRequestReply/outputMessage/ns:Account/ns:Value
      /ActivityInput/Body/InputParameters/MonthIncrement $AccountState-SOAPRequestReply/outputMessage/ns:Account/ns:MonthIncrement
      /ActivityInput/Body/InputParameters/RealtyValue 0
      /ActivityInput/Body/InputParameters/Refund 0
    • Mapping tree

      Mapping
      ActivityInput
       replyToQueue = concat($_globalVariables/ns1:GlobalVariables/ENV,$_globalVariables/ns1:GlobalVariables/AccountStateJMSQueueName)
       OtherProperties
        Part = "CalculateBonita"
       Body
        InputParameters
         Name = $AccountState-SOAPRequestReply/outputMessage/ns:Account/ns:Name
         Value = $AccountState-SOAPRequestReply/outputMessage/ns:Account/ns:Value
         MonthIncrement = $AccountState-SOAPRequestReply/outputMessage/ns:Account/ns:MonthIncrement
         RealtyValue = 0
         Refund = 0
    • Source code

      Mapping
                  <ns2:ActivityInput xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pfx="http://xmlns.example.com/1171610171437/GetAccountStateOperationImpl" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pfx2="http://www.tibco.com/xmlns/ae2xsd/2002/05/EMS/CalculateBonitaAESchema" xmlns:ns="http://www.tibco.com/schemas/AccountState/SharedResources/Schema.xsd" xmlns:ns1="http://www.tibco.com/pe/DeployedVarsType" xmlns:ns2="http://www.tibco.com/namespaces/tnt/plugins/jms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:pfx3="http://xmlns.example.com/1171360277608/GetObligatorServiceOperationImpl">
                      <replyToQueue>
                          <xsl:value-of select="concat($_globalVariables/ns1:GlobalVariables/ENV,$_globalVariables/ns1:GlobalVariables/AccountStateJMSQueueName)"/>
                      </replyToQueue>
                      <OtherProperties>
                          <Part>
                              <xsl:value-of select="&#34;CalculateBonita&#34;"/>
                          </Part>
                      </OtherProperties>
                      <Body>
                          <pfx2:InputParameters>
                              <Name>
                                  <xsl:value-of select="$AccountState-SOAPRequestReply/outputMessage/ns:Account/ns:Name"/>
                              </Name>
                              <Value>
                                  <xsl:value-of select="$AccountState-SOAPRequestReply/outputMessage/ns:Account/ns:Value"/>
                              </Value>
                              <MonthIncrement>
                                  <xsl:value-of select="$AccountState-SOAPRequestReply/outputMessage/ns:Account/ns:MonthIncrement"/>
                              </MonthIncrement>
                              <RealtyValue>
                                  <xsl:value-of select="0"/>
                              </RealtyValue>
                              <Refund>
                                  <xsl:value-of select="0"/>
                              </Refund>
                          </pfx2:InputParameters>
                      </Body>
                  </ns2:ActivityInput>
              

Name: FailedAutentification SendHTTPResponse

  • Type: com.tibco.plugin.http.HTTPResponseActivity
  • Resource Type: httppalette.httpWebResponse
  • Description: Send message about failed autentification as HTTP
  • Configuration:
    • closeConnection = true
    • eventSource = Autentification HTTPReceiver
    • Headers
      • + root (Complex Type, required )
        • - StatusLine(xsd:string,optional)
        • - Content-Type(xsd:string,optional)
        • - Set-Cookie(xsd:string,optional)
        • - Pragma(xsd:string,optional)
        • - Location(xsd:string,optional)
  • Input bindings:
    • Mapping table

      Target Source
      /ResponseActivityInput/asciiContent "<H1>Autentification data failed</H1>"
    • Mapping tree

      Mapping
      ResponseActivityInput
       asciiContent = "<H1>Autentification data failed</H1>"
    • Source code

      Mapping
                  <ResponseActivityInput xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pfx="http://xmlns.example.com/1171610171437/GetAccountStateOperationImpl" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pfx2="http://www.tibco.com/xmlns/ae2xsd/2002/05/EMS/CalculateBonitaAESchema" xmlns:ns="http://www.tibco.com/schemas/AccountState/SharedResources/Schema.xsd" xmlns:ns1="http://www.tibco.com/pe/DeployedVarsType" xmlns:ns2="http://www.tibco.com/namespaces/tnt/plugins/jms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:pfx3="http://xmlns.example.com/1171360277608/GetObligatorServiceOperationImpl">
                      <asciiContent>
                          <xsl:value-of select="&#34;&lt;H1&gt;Autentification data failed&lt;/H1&gt;&#34;"/>
                      </asciiContent>
                  </ResponseActivityInput>
              

Transitions:

  • From: AccountState SOAPRequestReply -To: Bonita JMSQueueRequestor
    • Label:
    • Condition: ($Autentification-HTTPReceiver/ProcessStarterOutput/parameters/Name = $AccountState-SOAPRequestReply/outputMessage/ns:Account/ns:Name) and ($Autentification-HTTPReceiver/ProcessStarterOutput/parameters/Password = $AccountState-SOAPRequestReply/outputMessage/ns:Account/ns:Password)
    • Description:
  • From: AccountState SOAPRequestReply -To: FailedAutentification SendHTTPResponse
    • Label:
    • Condition: ($Autentification-HTTPReceiver/ProcessStarterOutput/parameters/Name !=$AccountState-SOAPRequestReply/outputMessage/ns:Account/ns:Name) or ($Autentification-HTTPReceiver/ProcessStarterOutput/parameters/Password !=$AccountState-SOAPRequestReply/outputMessage/ns:Account/ns:Password)
    • Description:
  • From: AccountState SendHTTPResponse -To: End
    • Label:
    • Condition: Success
    • Description:
  • From: Autentification HTTPReceiver -To: AccountState SOAPRequestReply
    • Label:
    • Condition: Success
    • Description:
  • From: Bonita JMSQueueRequestor -To: AccountState SendHTTPResponse
    • Label:
    • Condition: Success
    • Description:
  • From: FailedAutentification SendHTTPResponse -To: End
    • Label:
    • Condition: Success
    • Description: