GetAccountState

Section contains description of Process " GetAccountState.process " .

Folder description:

Folder Description
  No description

Process description:

Load AccountState of concrete user's account from xml file

Process definition:

Full process path: ProcessDefinitions/GetAccountState/GetAccountState.process

Diagram:

Start End ReadFile Accounts ParseXML AccountsList Assign NullAccount Assign ActualAccount Null From: start To: Null From: start To: Assign ActualAccount From: Assign ActualAccount To: end From: Null To: end From: Start To: ReadFile Accounts From: ReadFile Accounts To: ParseXML AccountsList From: ParseXML AccountsList To: Assign NullAccount From: Assign NullAccount To: CycleGroup From: CycleGroup To: End

Process starter activity:

Name: Start

Description: Start process with account owner name.

Input Parameters:

  • - Name (XML Element Reference, required )

Process end activity:

Name: End

Output Parameters:

  • - Account (XML Element Reference, required )
Return bindings:
  • Mapping table

    Target Source
    /Account [COPY-OF] < $Schema0/pfx:Account >
  • Mapping tree

    Mapping
    Account = [COPY-OF] < $Schema0/pfx:Account >
  • Source code

    Mapping
            <xsl:copy-of 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:pfx="http://www.tibco.com/schemas/AccountState/SharedResources/Schema.xsd" xmlns:ns1="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:ns2="http://www.tibco.com/namespaces/tnt/plugins/file/v2" xmlns:xsd="http://www.w3.org/2001/XMLSchema" select="$Schema0/pfx:Account"/>
        

Process variables:

Schema: Schema0

Activities:

Name: Assign ActualAccount

  • Type: com.tibco.pe.core.AssignActivity
  • Resource Type: ae.activities.assignActivity
  • Description: Assign Account data when the owner name and input name are same
  • Configuration:
    • variableName = Schema0
  • Input bindings:
    • Mapping table

      Target Source
      /Account [COPY-OF] < $ParseXML-AccountsList/pfx:AccountsList[$AccountIndex]/pfx:Account >
    • Mapping tree

      Mapping
      Account = [COPY-OF] < $ParseXML-AccountsList/pfx:AccountsList[$AccountIndex]/pfx:Account >
    • Source code

      Mapping
                      <xsl:copy-of 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:pfx="http://www.tibco.com/schemas/AccountState/SharedResources/Schema.xsd" xmlns:ns1="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:ns2="http://www.tibco.com/namespaces/tnt/plugins/file/v2" xmlns:xsd="http://www.w3.org/2001/XMLSchema" select="$ParseXML-AccountsList/pfx:AccountsList[$AccountIndex]/pfx:Account"/>
                  

Name: Assign NullAccount

  • Type: com.tibco.pe.core.AssignActivity
  • Resource Type: ae.activities.assignActivity
  • Description: Set default result as null Account structure
  • Configuration:
    • variableName = Schema0
  • Input bindings:
    • Mapping table

      Target Source
      /Account/Number ""
      /Account/Name ""
      /Account/Value 0
      /Account/MonthIncrement 0
      /Account/Password ""
    • Mapping tree

      Mapping
      Account
       Number = ""
       Name = ""
       Value = 0
       MonthIncrement = 0
       Password = ""
    • Source code

      Mapping
                  <pfx:Account 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:pfx="http://www.tibco.com/schemas/AccountState/SharedResources/Schema.xsd" xmlns:ns1="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:ns2="http://www.tibco.com/namespaces/tnt/plugins/file/v2" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                      <pfx:Number>
                          <xsl:value-of select="&#34;&#34;"/>
                      </pfx:Number>
                      <pfx:Name>
                          <xsl:value-of select="&#34;&#34;"/>
                      </pfx:Name>
                      <pfx:Value>
                          <xsl:value-of select="0"/>
                      </pfx:Value>
                      <pfx:MonthIncrement>
                          <xsl:value-of select="0"/>
                      </pfx:MonthIncrement>
                      <pfx:Password>
                          <xsl:value-of select="&#34;&#34;"/>
                      </pfx:Password>
                  </pfx:Account>
              

Name: Null

  • Type: com.tibco.plugin.timer.NullActivity
  • Resource Type: ae.activities.null
  • Description: Do nothing

Name: ParseXML AccountsList

  • Type: com.tibco.plugin.xml.XMLParseActivity
  • Resource Type: ae.activities.XMLParseActivity
  • Description: Parse text input to xml according to Accounts xsd schema
  • Configuration:
    • inputStyle = text
    • xsdVersion = default
    • validateOutput = true
    • term
  • Input bindings:
    • Mapping table

      Target Source
      /xmlString $ReadFile-Accounts/ns1:ReadActivityOutputTextClass/fileContent/textContent
    • Mapping tree

      Mapping
      xmlString = $ReadFile-Accounts/ns1:ReadActivityOutputTextClass/fileContent/textContent
    • Source code

      Mapping
                  <xmlString 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:pfx="http://www.tibco.com/schemas/AccountState/SharedResources/Schema.xsd" xmlns:ns1="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:ns2="http://www.tibco.com/namespaces/tnt/plugins/file/v2" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                      <xsl:value-of select="$ReadFile-Accounts/ns1:ReadActivityOutputTextClass/fileContent/textContent"/>
                  </xmlString>
              

Name: ReadFile Accounts

  • Type: com.tibco.plugin.file.FileReadActivity
  • Resource Type: ae.activities.FileReadActivity
  • Description: Read file as text
  • Configuration:
    • encoding = text
  • Input bindings:
    • Mapping table

      Target Source
      /ReadActivityInputClass/fileName $_globalVariables/ns:GlobalVariables/DefaultAccountsFile
    • Mapping tree

      Mapping
      ReadActivityInputClass
       fileName = $_globalVariables/ns:GlobalVariables/DefaultAccountsFile
    • Source code

      Mapping
                  <ns2:ReadActivityInputClass 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:pfx="http://www.tibco.com/schemas/AccountState/SharedResources/Schema.xsd" xmlns:ns1="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:ns2="http://www.tibco.com/namespaces/tnt/plugins/file/v2" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                      <fileName>
                          <xsl:value-of select="$_globalVariables/ns:GlobalVariables/DefaultAccountsFile"/>
                      </fileName>
                  </ns2:ReadActivityInputClass>
              

Transitions:

  • From: Assign ActualAccount -To: end
    • Label:
    • Condition: Success
    • Description:
  • From: Assign NullAccount -To: CycleGroup
    • Label:
    • Condition: Success
    • Description:
  • From: CycleGroup -To: End
    • Label:
    • Condition: Success
    • Description:
  • From: Null -To: end
    • Label:
    • Condition: Success
    • Description:
  • From: ParseXML AccountsList -To: Assign NullAccount
    • Label:
    • Condition: Success
    • Description:
  • From: ReadFile Accounts -To: ParseXML AccountsList
    • Label:
    • Condition: Success
    • Description:
  • From: Start -To: ReadFile Accounts
    • Label:
    • Condition: Success
    • Description:
  • From: start -To: Assign ActualAccount
    • Label:
    • Condition: $Start/pfx:Name = $ParseXML-AccountsList/pfx:AccountsList/pfx:Account[$AccountIndex]/pfx:Name
    • Description:
  • From: start -To: Null
    • Label:
    • Condition: Success
    • Description:

Groups:

  • Name: CycleGroup
    • Type: com.tibco.pe.core.LoopGroup
    • Resource Type: ae.process.group
    • Configuration:
      • groupType = repeat
      • serializable = false
      • indexSlot = AccountIndex
      • activityOutputName =
      • repeatCondition = ($AccountIndex >= $ParseXML-AccountsList/pfx:AccountsList/@Count) or ($ParseXML-AccountsList/pfx:AccountsList/pfx:Account[$AccountIndex]/pfx:Name =$Start/pfx:Name)
      • accumulateOutput = false