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:
- Run the JSCAPE application server manager.
- Go to "Domains" tab and select the domain.
- After selecting the domain click on the "Edit" button at the bottom.
- Select the "Triggers" option from the left pane.
- Create a new trigger with Event type selected as "TriggerErrorEvent".(See Figure63)
Figure63: Trigger Event Type Screen
- Define the trigger condition and proceed to define trigger action.
- 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%' - After that click on Ok.
- Select the newly created Trigger from Trigger manage page and click on "Apply" to make the new changes into effect.