Workflow tasks cleaner icon
Module Id
workflow-tasks-cleaner
Group Id
org.foo.modules
Updated
Requires Jahia
8.1.6.1
Author
Florent BOURASSE
Category
Tools and Utilities
Status
COMMUNITY info

Workflow tasks cleaner group_work

This is a custom module to clean automatically exited or completed workflow tasks (publication, etc).

Dependencies & Dependants

Dependencies
  • NONE
Dependants
  • NONE

Changelog 1.0.3

What's Changed

  • fix: clean up and delete exited and completed workflow tasks
  • Fix issues with the queries deleting too many entries in jbpm_people_assignm_pot_owners, jbpm_people_assignments_bas tables
  • Add two new commands: 
    • workflow-cleaner:list

      List all current workflow tasks with human-readable values for task states.

    • workflow-cleaner:task

      Manage a workflow task.

      • Options:

        • -id (required): The task id.
        • --fix: Try to fix the task (reassign groups/users).
        • --delete: Delete the task.

FAQ

How to use

In the tools

  • Go to the page "Karaf command line" (JAHIA_URL/modules/tools/karaf.jsp) and execute the command workflow-cleaner:clean

Background job

Properties:

Name Value Description
jahia.workflow.tasks.cleaner.job.cronExpression 0 30 2 * * ? Crontab expression for the job

How To Install

Installation

  • In Jahia, go to "Administration --> Server settings --> System components --> Modules"
  • Upload the JAR workflow-tasks-cleaner-X.X.X.jar
  • Check that the module is started

License

MIT License

Copyright (c) 2022 - present Florent BOURASSÉ

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.