Unknown macro: {next_previous_links}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The assets created with WSO2 ES have a defined lifecycle and will transition through different lifecycle states. If a specific user role requires to be notified when an asset moves from one state to another, you could do so by configuring the notifications of the ES. In ES, this is disabled by default. The admin needs to provide the required configuration details to enable it.

By default the author of an asset will be notified of the asset lifecycle transitions once the configurations are enabled on the ES.

The following sub-sections describe how to configure notifications for asset lifecycle transitions:

Configuring notifications for asset lifecycle transitions

Follow the instructions below to configure ES to enable password recovery:

  1. Create an email account that will be specifically used for WSO2 ES password recovery emails (e.g., no-reply@foo.com).

  2. Uncomment the mailto transportSender section in the <ES_HOME>/repository/conf/axis2/axis2.xml file, and configure the ES email account

     

    <transportSender name="mailto" class="org.apache.axis2.transport.mail.MailTransportSender">
          <parameter name="mail.smtp.from">esmailsample@gmail.com</parameter>
          <parameter name="mail.smtp.user">esmailsample</parameter>
          <parameter name="mail.smtp.password">esMailTest</parameter>
          <parameter name="mail.smtp.host">smtp.gmail.com</parameter>
          <parameter name="mail.smtp.port">587</parameter>
          <parameter name="mail.smtp.starttls.enable">true</parameter>
          <parameter name="mail.smtp.auth">true</parameter>
    </transportSender>

    Use the email address, username and password of the mail account you have set up, as the values for  {email-address} ,  {username} ,  {password} respectively.

    Example:

    <transportSender name="mailto" class="org.apache.axis2.transport.mail.MailTransportSender">
            <parameter name="mail.smtp.from">foo@gmail.com</parameter>
            <parameter name="mail.smtp.user">foo</parameter>
            <parameter name="mail.smtp.password">$foo1234</parameter>
            <parameter name="mail.smtp.host">smtp.gmail.com</parameter>
            <parameter name="mail.smtp.port">587</parameter>
            <parameter name="mail.smtp.starttls.enable">true</parameter>
            <parameter name="mail.smtp.auth">true</parameter>
    </transportSender>
  3. Navigate to the <ES_HOME>/repository/conf/axis2/axis2.xml file. 

    1. Uncomment the mailto transportSender section and configure the ES email account.

      <transportSender name="mailto" class="org.apache.axis2.transport.mail.MailTransportSender">
            <parameter name="mail.smtp.from">esmailsample@gmail.com</parameter>
            <parameter name="mail.smtp.user">esmailsample</parameter>
            <parameter name="mail.smtp.password">esMailTest</parameter>
            <parameter name="mail.smtp.host">smtp.gmail.com</parameter>
            <parameter name="mail.smtp.port">587</parameter>
            <parameter name="mail.smtp.starttls.enable">true</parameter>
            <parameter name="mail.smtp.auth">true</parameter>
      </transportSender>

      Use the email address, username and password of the mail account you have set up, as the values for {email-address}, {username}, {password}respectively.

      Example:

      <transportSender name="mailto" class="org.apache.axis2.transport.mail.MailTransportSender">
              <parameter name="mail.smtp.from">foo@gmail.com</parameter>
              <parameter name="mail.smtp.user">foo</parameter>
              <parameter name="mail.smtp.password">$foo1234</parameter>
              <parameter name="mail.smtp.host">smtp.gmail.com</parameter>
              <parameter name="mail.smtp.port">587</parameter>
              <parameter name="mail.smtp.starttls.enable">true</parameter>
              <parameter name="mail.smtp.auth">true</parameter>
      </transportSender>
    2. Replace  <phase name="MessageOut"/> in the OutFlow phaseOrder type with the following:

      This configuration is used to support emails with HTML content as the default email being sent includes html tags.

      <phase name="MessageOut">           
           <handler name="EmailTransformHandler" class="org.wso2.carbon.store.notifications.handler.EmailTransformHandler"/>
      </phase>

After the above configurations are enabled the authors of the respective asset will receive notifications when the assets moves from one lifecycle state to another.

 

  • No labels