You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Introduction

The Scheduler Plugin is a userview menu for Joget Enterprise and Professional to schedule jobs to run at a specific date and time. You can use this plugin to trigger any process tools (except the Form Data Update Tool, which runs only in a process flow). 

For example, you can program the Scheduler Plugin to call a JSON POST API plugin to execute a process start at 8:00 am every day in September. Your process could be designed to update some database tables and send out an email notification.

The Scheduler Plugin uses the Java Cron Expression to determine the trigger time. A Cron Expression is a string consisting of six or seven subexpressions (fields) that describe individual details of the schedule. These fields, separated by white space, can contain any of the allowed values with various combinations of the allowed characters for that field. Only future dates are allowed in the cron expression field.

This plugin source code is available in a new open-source repository at https://github.com/jogetoss/. JogetOSS is a community-led team for open-source software related to the Joget no-code/low-code application platform. Projects under JogetOSS are community-driven and community-supported, and you are welcome to contribute to the projects.

Plugin Info

Plugins Available in the Bundle:

  1. Scheduler Tool

This plugin bundle is compatible with Joget DX 7.0.7 and onwards.


Expected Outcome

To be able to create scheduled tasks inside the app through the UI menu.

Figure 1: Scheduler Menu

Get Started

Steps

Where to get the plugin

Refer to the source code or the marketplace page.


How to install and use the plugin

 1. You can choose to create your own app or import the sample app below.

2. To access the Scheduler menu in your app, simply add a Scheduler menu inside your UI.

Figure 2: Scheduler UI Builder


3. Publish and run the UI.

4, Access the Scheduler Menu and create a new task.

Figure 3: Create a new task


5. In this example, we will create a task that creates a new record every day at 00:00.


Scheduler Menu Properties

Configure Scheduler

NameDescription
Job NameJob label.
Cron ExpressionA cron expression is a string comprising five or six fields separated by white space that represents a set of times, normally as a schedule to execute some routine.
AppSelected app.
Plugin

Select from a list of tools to schedule:

  • BeanShell
  • Counter Increment
  • SQL Query
  • Email
  • Export Form Email
  • File Add Image Tool
  • Update Form Date

and many more.


Source Code and Plugin Download

For Joget DX Enterprise & Professional editions, you can download at the marketplace: https://marketplace.joget.org/jw/web/userview/mp/mpp/_/vad?id=scheduler_v6-1.


For source code,

  1. Please visit https://github.com/jogetoss/scheduler for the plugin source code.
  2. You can find the latest release at https://github.com/jogetoss/scheduler/releases.
  3. Upload the plugin to your Joget by navigating to Settings > Manage Plugins > Upload Plugin as admin.

Download Demo App

  • No labels