GetDate
License for TIBCO Software Use Only!
Section contains description of Process " GetDate.process " .
Modification time: 2023/04/20 10:31:06
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:

Process starter activity:
Name: Start
Description: The beginning of the process.
Input Parameters:
- - GetInformationRequest (XML Element Reference, required )
Process end activity:
Name: End
Output Parameters:
- - GetInformationResponse (XML Element Reference, required )
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
[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/DateTimeSource code
<xsl:choose xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" 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)
-
+
root
(Complex Type,
required
)
- Input bindings:
Mapping table
Target Source /root/DateTime current-date() Mapping tree
root DateTime = current-date()Source code
<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: