Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

2. How to solve the problem?

We will develop a Process Tool/ Post Form Post Submission Processing Plugin to send message to Slack

...

Create a "SlackWebhookTool" class under "org.joget" package. Then, extend the class with org.joget.plugin.base.DefaultApplicationPlugin abstract class. Please refer to Process Tool/ Post Form Post Submission Processing Plugin. We will need to implement org.joget.plugin.base.PluginWebSupport interface class as well to provide a send test message button in plugin properties page. Please refer to Web Service Plugin.

...

Let's build our plugin. Once the building process is done, we will find a "slack_webhook_filter-5.0.0.jar" file created under "slack_webhook/target" directory.

Then, let's upload the plugin jar to Manage Plugins. After uploading the jar file, double check that the plugin is uploaded and activated correctly..

Image Added

Check the Slack Webhook Tool is available in process tool mapping.

Image Added

Now, let us configure the Incoming Webhooks in Slack platform.

  1. Go to your_team.slack.com/services/new.
  2. Search for Incoming WebHook and click in Add
  3. Choose Channel to Post and press Add Incoming WebHooks Integration
  4. Into Setup Instructions, you've a WebHook URL. This is the argument will use for the "Webhook URL" later. Then, copy it.

Configure the Slack Webhook Tool.

Image Added

Image Added

The message is received in Slack.

Image Added 

8. Take a step further, share it or sell it

...