SendEmail

Section contains description of Process " SendEmail.process " .

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:

Start End Send Mail Null From: Start To: Send Mail From: Send Mail To: End From: Send Mail To: Null From: Null To: End

Process starter activity:

Name: Start

Description: The beginning of the SendEmail process.

Input Parameters:

Process end activity:

Name: End

Output Parameters:

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

    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>
        

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)
  • 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

      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="&#34;test&#34;"/>
                      </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: