Section contains description of Process " SendEmail.process " .
Folder | Description |
---|---|
/PantherBW/ProcessDefinitions/BusinessLogic | The folder that contain the main procedures.... |
Name: Start
Description: The beginning of the SendEmail process.
Input Parameters:
Name: End
Output Parameters:
Mapping table
Target | Source |
---|---|
/[WHEN]<$_error>/SendEmailResponse/ResultCode | -1 |
/[WHEN]<$_error>/SendEmailResponse/[IF]<$_error/ns3:ErrorReport/StackTrace>/ResultMessage | $_error/ns3:ErrorReport/StackTrace |
/[OTHERWISE]/SendEmailResponse/ResultCode | 0 |
Mapping tree
Mapping |
---|
[CHOOSE] [WHEN] < $_error > SendEmailResponse ResultCode = -1 [IF] < $_error/ns3:ErrorReport/StackTrace > ResultMessage = $_error/ns3:ErrorReport/StackTrace [OTHERWISE] SendEmailResponse ResultCode = 0 |
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:ns="http://www.tibco.com/namespaces/tnt/plugins/mail" xmlns:pfx="http://www.tibco.com/schemas/pantherbw/PantherBW/ProcessDefinitions/Schema/Schema.xsd" xmlns:ns2="http://xmlns.tibco.com/body" xmlns:ns1="http://www.tibco.com/pe/DeployedVarsType" xmlns:ns3="http://www.tibco.com/pe/EngineTypes"> <xsl:when test="$_error"> <pfx:SendEmailResponse> <pfx:ResultCode> <xsl:value-of select="-1"/> </pfx:ResultCode> <xsl:if test="$_error/ns3:ErrorReport/StackTrace"> <pfx:ResultMessage> <xsl:value-of select="$_error/ns3:ErrorReport/StackTrace"/> </pfx:ResultMessage> </xsl:if> </pfx:SendEmailResponse> </xsl:when> <xsl:otherwise> <pfx:SendEmailResponse> <pfx:ResultCode> <xsl:value-of select="0"/> </pfx:ResultCode> </pfx:SendEmailResponse> </xsl:otherwise> </xsl:choose> |
Mapping table
Target | Source |
---|---|
/mailActivityInput/from | $_globalVariables/ns1:GlobalVariables/PantherBW/Shared/Email/from |
/mailActivityInput/to | $_globalVariables/ns1:GlobalVariables/PantherBW/Shared/Email/to |
/mailActivityInput/subject | "test" |
/mailActivityInput/bodyElement/bodyText | $Start/pfx:SendEmailRequest/pfx:message |
Mapping tree
Mapping |
---|
mailActivityInput from = $_globalVariables/ns1:GlobalVariables/PantherBW/Shared/Email/from to = $_globalVariables/ns1:GlobalVariables/PantherBW/Shared/Email/to subject = "test" bodyElement bodyText = $Start/pfx:SendEmailRequest/pfx:message |
Source code
Mapping |
---|
<ns:mailActivityInput 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:ns="http://www.tibco.com/namespaces/tnt/plugins/mail" xmlns:pfx="http://www.tibco.com/schemas/pantherbw/PantherBW/ProcessDefinitions/Schema/Schema.xsd" xmlns:ns2="http://xmlns.tibco.com/body" xmlns:ns1="http://www.tibco.com/pe/DeployedVarsType" xmlns:ns3="http://www.tibco.com/pe/EngineTypes"> <from> <xsl:value-of select="$_globalVariables/ns1:GlobalVariables/PantherBW/Shared/Email/from"/> </from> <to> <xsl:value-of select="$_globalVariables/ns1:GlobalVariables/PantherBW/Shared/Email/to"/> </to> <subject> <xsl:value-of select=""test""/> </subject> <ns2:bodyElement> <bodyText> <xsl:value-of select="$Start/pfx:SendEmailRequest/pfx:message"/> </bodyText> </ns2:bodyElement> </ns:mailActivityInput> |