...
We need to always have our Joget Workflow Source Code ready and builded built by following following this guideline.
The following tutorial is prepared with a Macbook Pro and the Joget Source Code is version 58.0-Snapshot. 1. Please refer to the the Guideline for developing Developing a pluginPlugin article for other platform commands.
...
Thai |
---|
เราจำเป็นต้องให้ซอร์สโค้ด Joget Workflow ของเราพร้อมและสร้างโดยปฏิบัติตาม this guideline บทช่วยสอนต่อไปนี้จัดทำขึ้นด้วย Macbook Pro และรหัสแหล่งที่มาของ Joget เป็นรุ่น 58.0.1 โปรดอ้างอิง -Snapshot โปรดอ้างอิง Guideline for developing Developing a pluginPlugin สำหรับคำสั่งแพลตฟอร์มอื่น ๆ สมมติว่าไดเรกทอรีโฟลเดอร์ของเรามีดังนี้ |
Code Block |
---|
- Home
- joget
- plugins
- jw-community
-5.0.1 |
The "plugins" directory is the folder we will create and store all our plugins and the "jw-community" directory is where the Joget Workflow Source code is stored.
...
Code Block | ||
---|---|---|
| ||
cd joget/plugins/ ~/joget/jw-community/5.0.1/wflow-plugin-archetype/create-plugin.sh org.joget slack_webhook 58.0.1-Snapshot |
Then, the shell script will ask us to key in a version number for the plugin and ask us for a confirmation before it generates the maven project.
...
Code Block | ||
---|---|---|
| ||
Define value for property 'version': 1.0-SNAPSHOT: : 58.0.0-Snapshot [INFO] Using property: package = org.joget Confirm properties configuration: groupId: org.joget artifactId: slack_webhook version: 5.0.0 package: org.joget Y: : y |
...
After completing the properties option to collect input, we can work on the main methods method of the plugin which is execute methodexecute method.
Thai |
---|
หลังจากเสร็จสิ้นตัวเลือกคุณสมบัติเพื่อรวบรวมอินพุตเราสามารถทำงานกับวิธีการหลักของปลั๊กอินซึ่งเป็นวิธีการดำเนินการ |
...
Thai |
---|
มาสร้างปลั๊กอินของเรากัน เมื่อกระบวนการสร้างเสร็จสิ้นเราจะพบไฟล์ "slack_webhook-5.0.0.jar" ที่สร้างขึ้นภายใต้ไดเรกทอรี "slack_webhook / target" จากนั้นลองอัปโหลดปลั๊กอินไปที่ Manage Plugins หลังจากอัปโหลดไฟล์ jar ให้ตรวจสอบอีกครั้งว่ามีการอัปโหลดและเปิดใช้งานปลั๊กอินอย่างถูกต้อง |
Check the Slack Webhook Tool is available in process tool mapping.
Thai |
---|
ตรวจสอบว่า Slack Webhook Tool พร้อมใช้งานในการแมปเครื่องมือกระบวนการ |
Now, let us configure the Incoming Webhooks in Slack platform.
...
Thai |
---|
กำหนดค่า Slack Webhook Tool |
The message is received in Slack.
...