SendEmail
License for TIBCO Software Use Only!
Section contains description of Process " SendEmail.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 which sends emails... |
Process definition:
Full process path: PantherBW/ProcessDefinitions/BusinessLogic/SendEmail.process
Diagram:

Process starter activity:
Name: Start
Description: The beginning of the SendEmail process.
Input Parameters:
- - SendEmailRequest (XML Element Reference, required )
Process end activity:
Name: End
Output Parameters:
- - SendEmailResponse (XML Element Reference, required )
Return bindings:
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
[CHOOSE] [WHEN] < $_error > SendEmailResponse ResultCode = -1 [IF] < $_error/ns3:ErrorReport/StackTrace > ResultMessage = $_error/ns3:ErrorReport/StackTrace [OTHERWISE] SendEmailResponse ResultCode = 0Source 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: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>
Activities:
Name: Null
- Type: com.tibco.plugin.timer.NullActivity
- Resource Type: ae.activities.null
- Description: SendEmail error branch
Name: Send Mail
- Type: com.tibco.plugin.mail.MailPubActivity
- Resource Type: ae.activities.MailActivityResource
- Description: sending of the email.....
- Configuration:
- newMimeSupport = true
- inputOutputVersion = $_globalVariables/ns1:GlobalVariables/PantherBW/Shared/Email/to
- authenticate = false
- nonRFC822 = false
- host = %%PantherBW/Shared/Email/SMTP%%
- InputHeaders
-
+
root
(Complex Type,
required
)
- - Content-Type(xsd:string,optional)
-
+
root
(Complex Type,
required
)
- Input bindings:
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
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:messageSource code
<ns:mailActivityInput xmlns:ns="http://www.tibco.com/namespaces/tnt/plugins/mail" 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: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>
Transitions:
-
From:
Null
-To:
End
- Label:
- Condition: Success
- Description:
-
From:
Send Mail
-To:
End
- Label:
- Condition: Success
- Description:
-
From:
Send Mail
-To:
Null
- Label:
- Condition: Error
- Description:
-
From:
Start
-To:
Send Mail
- Label:
- Condition: Success
- Description: