How to Remove a Custom Plugin

This article provides steps on how to remove a custom plugin from Ephesoft Transact. Custom plugins must be removed from all batch classes.

Note: Take a backup of the database before removing a custom plugin from your workflow.

  1. Execute the following queries using your Ephesoft Transact directory <Ephesoft DB Name>.
  2. Select the ID as PLUGIN_ID from the custom plugin where the plugin_name is ‘%PLUGIN_NAME%’;
  3. From the PLUGIN_ID, delete from plugin_dependency where plugin_id = PLUGIN_ID;
  4. Select ID as PLUGIN_CONFIG_ID from plugin_config where plugin_id = PLUGIN_ID;
    • Delete the ID from plugin_config_sample_value where plugin_config_id = PLUGIN_CONFIG_ID;
    • Delete the ID from plugin_config where plugin_id = PLUGIN_ID;
  1. Delete from plugin where id = PLUGIN_ID;
  2. Delete the plugin configurations from the application-Context.xml file in the Ephesoft installation directory sample: <import resource=”classpath:/META-INF/applicationContext-XXX-plugin.xml”/>
  3. Remove the custom plugin .jar file from the <Ephesoft Installation Directory>\Application\WEB-INF\lib folder.
  4. Remove the added plugin configuration file from the <Ephesoft Installation Directory>\SharedFolders\workflows\plugins.
  5. Restart Ephesoft Transact.

You have successfully removed a custom plugin from Ephesoft Transact.

For Ephesoft Transact .2019.1 or above, perform the following steps:

  1. Remove the custom plugin folders located in the <Ephesoft Installation Directory>\SharedFolders\export-batch-folder folder.
  2. Open the server.xml file located in the <Ephesoft Installation Directory>\JavaAppServer\conf folder.
  3. Verify the location of the customPluginJars. A sample location is provided below:

<PostResources base=”$

{shared.folders}

\customPluginJars”

className=”org.apache.catalina.webresources.DirResourceSet” readOnly=”true”

webAppMount=”/WEB-INF/lib”/>

  1. Navigate to the <Ephesoft Installation Directory>\SharedFolders\customPluginJars folder as displayed in the server.xml file.
  2. Remove the customPlugin.jar file from that folder.