CreateAccounts

Section contains description of Process " CreateAccounts.process " .

Folder description:

Folder Description
AccountState This application simulate get bank account state process which using rating of client bonita.
/ProcessDefinitions All process definitions
/ProcessDefinitions/XMLCreator Processes for creating default xml files

Process description:

Create default basic Accounts xml file

Process definition:

Full process path: ProcessDefinitions/XMLCreator/CreateAccounts.process

Diagram:

Start End WriteFile Accounts RenderXML Accounts From: Start To: RenderXML Accounts From: RenderXML Accounts To: WriteFile Accounts From: WriteFile Accounts To: End

Process starter activity:

Name: Start

Description:

Process end activity:

Name: End

Activities:

Name: RenderXML Accounts

  • Type: com.tibco.plugin.xml.XMLRendererActivity
  • Resource Type: ae.activities.XMLRendererActivity
  • Description:
  • Configuration:
    • renderAsText = text
    • validateInput = true
    • renderDefaultPrefix = true
    • textEncoding = UTF-8
    • term
  • Input bindings:
    • Mapping table

      Target Source
      /AccountsList/@Count 1
      /AccountsList/Account/Number 123456789
      /AccountsList/Account/Name "Jan Novak"
      /AccountsList/Account/Value 1545738
      /AccountsList/Account/MonthIncrement 75000
      /AccountsList/Account/Password "key"
    • Mapping tree

      Mapping
      AccountsList
       @Count = 1
       Account
        Number = 123456789
        Name = "Jan Novak"
        Value = 1545738
        MonthIncrement = 75000
        Password = "key"
    • Source code

      Mapping
                  <pfx:AccountsList xmlns:ns2="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns="http://www.tibco.com/pe/DeployedVarsType" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pfx="http://www.tibco.com/schemas/AccountState/SharedResources/Schema.xsd">
                      <xsl:attribute name="Count">
                          <xsl:value-of select="1"/>
                      </xsl:attribute>
                      <pfx:Account>
                          <pfx:Number>
                              <xsl:value-of select="123456789"/>
                          </pfx:Number>
                          <pfx:Name>
                              <xsl:value-of select="&#34;Jan Novak&#34;"/>
                          </pfx:Name>
                          <pfx:Value>
                              <xsl:value-of select="1545738"/>
                          </pfx:Value>
                          <pfx:MonthIncrement>
                              <xsl:value-of select="75000"/>
                          </pfx:MonthIncrement>
                          <pfx:Password>
                              <xsl:value-of select="&#34;key&#34;"/>
                          </pfx:Password>
                      </pfx:Account>
                  </pfx:AccountsList>
              

Name: WriteFile Accounts

  • Type: com.tibco.plugin.file.FileWriteActivity
  • Resource Type: ae.activities.FileWriteActivity
  • Description:
  • Configuration:
    • encoding = text
    • compressFile = None
  • Input bindings:
    • Mapping table

      Target Source
      /WriteActivityInputTextClass/fileName $_globalVariables/ns:GlobalVariables/DefaultAccountsFile
      /WriteActivityInputTextClass/textContent $RenderXML-Accounts/xmlString
    • Mapping tree

      Mapping
      WriteActivityInputTextClass
       fileName = $_globalVariables/ns:GlobalVariables/DefaultAccountsFile
       textContent = $RenderXML-Accounts/xmlString
    • Source code

      Mapping
                  <ns2:WriteActivityInputTextClass xmlns:ns2="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns="http://www.tibco.com/pe/DeployedVarsType" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pfx="http://www.tibco.com/schemas/AccountState/SharedResources/Schema.xsd">
                      <fileName>
                          <xsl:value-of select="$_globalVariables/ns:GlobalVariables/DefaultAccountsFile"/>
                      </fileName>
                      <textContent>
                          <xsl:value-of select="$RenderXML-Accounts/xmlString"/>
                      </textContent>
                  </ns2:WriteActivityInputTextClass>
              

Transitions:

  • From: RenderXML Accounts -To: WriteFile Accounts
    • Label:
    • Condition: Success
    • Description:
  • From: Start -To: RenderXML Accounts
    • Label:
    • Condition: Success
    • Description:
  • From: WriteFile Accounts -To: End
    • Label:
    • Condition: Success
    • Description: