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 »

You can create a trigger in JSCAPE server that can handle if any of the events misfires or through some exception. It can also be used to log the information of the files send to the partner that failed due to some exception. Follow the below steps to configure a misfire handing event:

  1. Run the JSCAPE application server manager.
  2. Go to "Domains" tab and select the domain.
  3. After selecting the domain click on the "Edit" button at the bottom.
  4. Select the "Triggers" option from the left pane.
  5. Create a new trigger with Event type selected as "TriggerErrorEvent".(See Figure63)


Figure63: Trigger Event Type Screen

  1. Define the trigger condition and proceed to define trigger action.
  2. Add a trigger action as "SQL Query" and configure the parameters as defined below.

    SQL Query Action parameters:
    Jdbc url: Provide the jdbc url of the Adeptia Log Database
    Username: Username of the Adeptia Log Database
    Password: Password for the Adeptia Log database
    Use the following QUERY in the SQL Query trigger action:

    UPDATE AU_AS2LOG SET AU_ERROR_MESSAGE='%ActionMessage%', AU_STATUS='ERROR' WHERE AU_FILE_NAME='%TriggerErrorMessage%'

  3. After that click on Ok.
  4. Select the newly created Trigger from Trigger manage page and click on "Apply" to make the new changes into effect.



  • No labels