GetDate

Section contains description of Process " GetDate.process " .

Folder description:

Folder Description
/PantherBW/ProcessDefinitions/BusinessLogic The folder that contain the main procedures....

Process description:

The process gets current date from the system....

Process definition:

Full process path: PantherBW/ProcessDefinitions/BusinessLogic/GetDate.process

Diagram:

Start End SetDate Null From: Start To: SetDate From: SetDate To: End From: SetDate To: Null From: Null To: End

Process starter activity:

Name: Start

Description: The beginning of the process.

Input Parameters:

Process end activity:

Name: End

Output Parameters:

Return bindings:
  • Mapping table

    Target Source
    /[WHEN]<$_error>/GetInformationResponse/ResultCode -1
    /[WHEN]<$_error>/GetInformationResponse/[IF]<$_error/ns:ErrorReport/StackTrace>/ResultMessage $_error/ns:ErrorReport/StackTrace
    /[OTHERWISE]/GetInformationResponse/ResultCode 0
    /[OTHERWISE]/GetInformationResponse/[IF]<$SetDate/root/DateTime>/DateTime $SetDate/root/DateTime
  • Mapping tree

    Mapping
    [CHOOSE] 
     [WHEN] < $_error >
      GetInformationResponse
       ResultCode = -1
       [IF] < $_error/ns:ErrorReport/StackTrace >
        ResultMessage = $_error/ns:ErrorReport/StackTrace
     [OTHERWISE] 
      GetInformationResponse
       ResultCode = 0
       [IF] < $SetDate/root/DateTime >
        DateTime = $SetDate/root/DateTime
  • Source code

    Mapping
            <xsl:choose xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pfx="http://www.tibco.com/schemas/pantherbw/PantherBW/ProcessDefinitions/Schema/Schema.xsd" xmlns:ns="http://www.tibco.com/pe/EngineTypes">
                <xsl:when test="$_error">
                    <pfx:GetInformationResponse>
                        <pfx:ResultCode>
                            <xsl:value-of select="-1"/>
                        </pfx:ResultCode>
                        <xsl:if test="$_error/ns:ErrorReport/StackTrace">
                            <pfx:ResultMessage>
                                <xsl:value-of select="$_error/ns:ErrorReport/StackTrace"/>
                            </pfx:ResultMessage>
                        </xsl:if>
                    </pfx:GetInformationResponse>
                </xsl:when>
                <xsl:otherwise>
                    <pfx:GetInformationResponse>
                        <pfx:ResultCode>
                            <xsl:value-of select="0"/>
                        </pfx:ResultCode>
                        <xsl:if test="$SetDate/root/DateTime">
                            <pfx:DateTime>
                                <xsl:value-of select="$SetDate/root/DateTime"/>
                            </pfx:DateTime>
                        </xsl:if>
                    </pfx:GetInformationResponse>
                </xsl:otherwise>
            </xsl:choose>
        

Activities:

Name: Null

  • Type: com.tibco.plugin.timer.NullActivity
  • Resource Type: ae.activities.null
  • Description: The error branch.

Name: SetDate

  • Type: com.tibco.plugin.mapper.MapperActivity
  • Resource Type: ae.activities.MapperActivity
  • Description: The component where we get the current date.
  • Configuration:
    • + root (Complex Type, required )
      • - DateTime(xsd:date,required)
  • Input bindings:
    • Mapping table

      Target Source
      /root/DateTime current-date()
    • Mapping tree

      Mapping
      root
       DateTime = current-date()
    • Source code

      Mapping
                  <root xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pfx="http://www.tibco.com/schemas/pantherbw/PantherBW/ProcessDefinitions/Schema/Schema.xsd" xmlns:ns="http://www.tibco.com/pe/EngineTypes">
                      <DateTime>
                          <xsl:value-of select="current-date()"/>
                      </DateTime>
                  </root>
              

Transitions:

  • From: Null -To: End
    • Label:
    • Condition: Success
    • Description:
  • From: SetDate -To: End
    • Label:
    • Condition: Success
    • Description:
  • From: SetDate -To: Null
    • Label:
    • Condition: Error
    • Description:
  • From: Start -To: SetDate
    • Label:
    • Condition: Success
    • Description: