How jogetworkflow/jw-community works
Purpose and delivery
Joget is a Java-based no-code/low-code platform for designing, deploying, and operating application forms, data lists, user-facing portals, and business workflows. It is a Maven multi-module system; the deployable web application is wflow-consoleweb, while wflow-core, wflow-directory, wflow-shark, and wflow-commons provide its domain runtime. Installer packaging is separate in wflow-install.
Runtime entry points
The primary runtime is a Servlet/JSP application, deployed to a Java servlet container (the installer includes Tomcat scripts/configuration). Container startup and request routing are defined by:
• wflow-consoleweb/src/main/webapp/WEB-INF/web.xml
• wflow-consoleweb/src/main/java/org/joget/apps/app/web/ContextListener.java
• wflow-consoleweb/src/main/resources/webApplicationContext.xml
Spring MVC controllers expose console, builder, userview, workflow, JSON/API, and setup endpoints. JSPs under WEB-INF/jsp render the server-side UI.
Application definition and builder domain
Versioned application artifacts—forms, data lists, userviews, process packages, resources, environment variables, and plugin defaults—are persisted and assembled by the app service layer. This is the boundary between visual builders and executable application definitions.
• wflow-core/src/main/java/org/joget/apps/app/service/AppServiceImpl.java
• wflow-core/src/main/java/org/joget/apps/app/dao/AppDefinitionDaoImpl.java
• wflow-core/src/main/java/org/joget/apps/app/model/AppDefinition.java
Builder-facing controllers manage these artifacts and return pages/JSON to browser-based builders:
• wflow-consoleweb/src/main/java/org/joget/apps/app/controller/FormBuilderWebController.java
• wflow-consoleweb/src/main/java/org/joget/apps/app/controller/ProcessBuilderWebController.java
• wflow-consoleweb/src/main/java/org/joget/apps/app/controller/UserviewBuilderWebController.java
Forms, data, and userviews
Forms are composable element trees with pluggable load/store/options binders, validation, permissions, file handling, and dynamic form-data tables. Data lists bind/filter/export records. Userviews compose menus, pages, themes, and permissions into end-user apps.
• wflow-core/src/main/java/org/joget/apps/form/service/FormServiceImpl.java
• wflow-core/src/main/java/org/joget/apps/form/dao/FormDataDaoImpl.java
• wflow-core/src/main/java/org/joget/apps/datalist/service/DataListService.java
• wflow-core/src/main/java/org/joget/apps/userview/service/UserviewService.java
Flow: HTTP controller → resolved app/version definition → form/list/userview service → binders/DAOs/plugins → rendered JSP/FreeMarker or JSON response.
Workflow execution
Workflow abstractions model packages, processes, activities, assignments, participants, tools, decisions, deadlines, and variables. wflow-shark implements these interfaces on the Enhydra Shark/XPDL engine and manages persistence, assignments, tool execution, auditing, and deadline threads.
• wflow-wfengine/src/main/java/org/joget/workflow/model/service/WorkflowManager.java
• wflow-shark/src/main/java/org/joget/workflow/model/service/WorkflowManagerImpl.java
• wflow-shark/src/main/java/org/joget/workflow/shark/DeadlineChecker.java
• wflow-core/src/main/java/org/joget/apps/app/service/AppWorkflowHelper.java
Identity, security, and extension boundaries
The directory module owns users, organizations, groups, roles, authentication delegation, identity-provider plugins, and MFA interfaces. Web security layers add session/authentication handling, host filtering, CSRF protection, and plugin request filters.
• wflow-directory/src/main/java/org/joget/directory/model/service/DirectoryManagerImpl.java
• wflow-directory/src/main/java/org/joget/directory/model/service/IdentityProviderManager.java
• wflow-consoleweb/src/main/java/org/joget/apps/workflow/security/WorkflowAuthenticationProvider.java
• wflow-consoleweb/src/main/java/org/joget/apps/app/web/CSRFTokenFilter.java
Plugins are a central extensibility boundary: plugin interfaces cover application tools, audit trails, console pages, web filters, WebSockets, hash variables, form binders, workflow decisions, and UI components.
• wflow-plugin-base/src/main/java/org/joget/plugin/base/PluginManager.java
• wflow-plugin-base/src/main/java/org/joget/plugin/base/Plugin.java
• wflow-plugin-base/src/main/java/org/joget/plugin/base/PluginWebFilter.java
Persistence and infrastructure
Spring/Hibernate map platform, directory, workflow, reporting, and form-data models to a relational database. The code explicitly supports MariaDB/MySQL, PostgreSQL, Oracle, and SQL Server through custom dialects. Dynamic data sources, Bitronix transaction configuration, Ehcache-style caching, filesystem resources, and optional Git integration sit beneath services.
• wflow-commons/src/main/java/org/joget/commons/util/DynamicDataSourceManager.java
• wflow-commons/src/main/java/org/hibernate/dialect/CustomMariaDBDialect.java
• wflow-commons/src/main/resources/commonsApplicationContext.xml
• wflow-install/src/main/resources/setup/sql/jwdb-mysql.sql
The installer ships setup SQL, sample apps, embedded MariaDB data, Tomcat configuration, and startup scripts; production deployments can instead use externally managed infrastructure.
Main entry points: AppServiceImpl.java App definition service · webApplicationContext.xml MVC endpoints · DynamicDataSourceManager.java Persistence infrastructure · WorkflowManagerImpl.java Shark workflow engine
Components 16
Web runtime
- Servlet container · Tomcat hosts the deployable console web application.
wflow-consoleweb/src/main/webapp/WEB-INF/web.xml - Spring bootstrap
wflow-consoleweb/src/main/java/org/joget/apps/app/web/ContextListener.java - MVC endpoints · Console, builder, userview, workflow, API, and setup controllers.
wflow-consoleweb/src/main/resources/webApplicationContext.xml - Visual builders · Form, process, and userview builders manage versioned artifacts.
wflow-consoleweb/src/main/java/org/joget/apps/app/controller/FormBuilderWebController.java - Server UI responses
wflow-consoleweb/src/main/webapp/WEB-INF/jsp - Web security · Session authentication, host filtering, CSRF, and plugin filters.
wflow-consoleweb/src/main/java/org/joget/apps/workflow/security/WorkflowAuthenticationProvider.java
Application domain
- App definition service · Assembles and resolves versioned application artifacts.
wflow-core/src/main/java/org/joget/apps/app/service/AppServiceImpl.java - Versioned app definitions · Forms, lists, userviews, process packages, resources, and settings.
wflow-core/src/main/java/org/joget/apps/app/dao/AppDefinitionDaoImpl.java - Form runtime · Executes element trees, binders, validation, permissions, and form data.
wflow-core/src/main/java/org/joget/apps/form/service/FormServiceImpl.java - Userviews and data lists · Composes end-user apps and binds, filters, or exports records.
wflow-core/src/main/java/org/joget/apps/datalist/service/DataListService.java
Workflow runtime
- Workflow API
wflow-wfengine/src/main/java/org/joget/workflow/model/service/WorkflowManager.java - Shark workflow engine · Executes XPDL processes, assignments, tools, audits, and deadlines.
wflow-shark/src/main/java/org/joget/workflow/model/service/WorkflowManagerImpl.java
Platform services
- Directory and identity · Users, organizations, roles, authentication delegation, IdP plugins, and MFA.
wflow-directory/src/main/java/org/joget/directory/model/service/DirectoryManagerImpl.java - Plugin platform · Loads extensible tools, binders, UI, filters, workflow decisions, and integrations.
wflow-plugin-base/src/main/java/org/joget/plugin/base/PluginManager.java - Persistence infrastructure · Dynamic data sources, transactions, cache, filesystem resources, and SQL dialects.
wflow-commons/src/main/java/org/joget/commons/util/DynamicDataSourceManager.java
Delivery
- Installer package · Ships Tomcat setup, SQL, sample apps, and embedded MariaDB data.
wflow-install/src/main/resources/build.xml
Connections 23
- Servlet container → Spring bootstrap: starts
- Spring bootstrap → MVC endpoints: initializes
- MVC endpoints → Web security: secured by
- MVC endpoints → Visual builders: routes builder requests
- MVC endpoints → App definition service: resolves applications
- Visual builders → App definition service: manages artifacts
- App definition service → Versioned app definitions: loads and persists
- App definition service → Form runtime: invokes
- App definition service → Userviews and data lists: invokes
- App definition service → Workflow API: starts and queries workflow
- Form runtime → Plugin platform: uses binders and UI extensions
- Userviews and data lists → Plugin platform: uses extensions
- Workflow API → Shark workflow engine: implemented by
- Shark workflow engine → Plugin platform: executes tools and decisions
- Web security → Directory and identity: authenticates through
- Shark workflow engine → Directory and identity: resolves participants
- Versioned app definitions → Persistence infrastructure: stored through
- Form runtime → Persistence infrastructure: stores dynamic form data
- Directory and identity → Persistence infrastructure: stores identities
- Shark workflow engine → Persistence infrastructure: stores workflow state
- MVC endpoints → Server UI responses: renders
- Installer package → Servlet container: provisions Tomcat deployment
- Installer package → Persistence infrastructure: provisions database setup