AccountState
License for TIBCO Software Use Only!
Section contains description of Process " AccountState.process " .
Modification time: 2023/04/20 10:31:06
Folder description:
| Folder | Description |
|---|---|
| AccountState | This application simulate get bank account state process which using rating of client bonita. |
| /ProcessDefinitions | All process definitions |
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:

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
- row
- 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)
-
+
root
(Complex Type,
required
)
Process end activity:
Name: End
Activities:
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)
-
+
root
(Complex Type,
required
)
- 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
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
<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("<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"))"/> </asciiContent> </ResponseActivityInput>
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
inputMessage Name = $Autentification-HTTPReceiver/ProcessStarterOutput/parameters/NameSource code
<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: 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
- - InputParameters (XML Element Reference, required )
- OutDataxsdString
- - PretenderBonita (XML Element Reference, required )
- 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
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 = 0Source code
<ns2:ActivityInput xmlns:ns2="http://www.tibco.com/namespaces/tnt/plugins/jms" 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: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=""CalculateBonita""/> </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)
-
+
root
(Complex Type,
required
)
- Input bindings:
Mapping table
Target Source /ResponseActivityInput/asciiContent "<H1>Autentification data failed</H1>" Mapping tree
ResponseActivityInput asciiContent = "<H1>Autentification data failed</H1>"Source code
<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=""<H1>Autentification data failed</H1>""/> </asciiContent> </ResponseActivityInput>
Transitions:
-
From:
AccountState SendHTTPResponse
-To:
End
- Label:
- Condition: Success
- Description:
-
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:
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: