Blog Posts BPMN DMN

Manage Processes and Tasks using Kogito consoles

Blog: Drools & jBPM Blog

This is an introduction to web-based Kogito consoles that allow you to manage processes and tasks. It covers two different consoles available on Kogito: Management console and Task console.

Setup

At present, to run the Management console and Task console applications, you need supporting services like data-index, job services, Kafka and infinispan running. To make this process simple, we have a dedicated example application here, which you can clone and run on your machine.

The steps to run the example application are as follows:

  1. Clone repository
  1. Install dependencies
  1. Run docker images
  1.  Start runtimes and create a process
curl -H "Content-Type: application/json" -H "Accept: application/json" -X POST http://localhost:8080/hiring -d @- << EOF
{  
    "candidate": {
        "name": "Harry Potter",
        "email": "harrypotter@example.com",
        "salary": 30000,
        "skills": "Java, Kogito"
    }
}
EOF
  1. Open consoles
Management console

The Kogito Management Console is a user interface for viewing the state of all available Kogito services and managing process instances. This console is developed using two powerful and currently trending technologies: React and Apollo GraphQL.

You can use the Management console to:

The Management Console uses three key components of Kogito in order to provide the results, and these are prerequisites to run the Management console application:

Kogito Data Index Service

Enables the Management Console to access stored events related to process instances and domain data from the Kogito services. Document briefing about the data index service can be found here.

Kogito Process Management add-on

This enables the Management Console to interact with the process data from your Kogito services through the add-on REST endpoint /management/processes.

<dependency>
  <groupId>org.kie.kogito</groupId>
  <artifactId>kogito-addons-quarkus-process-management</artifactId>
</dependency>
Kogito Process SVG add-on

Enables the process SVG diagram for process instance execution path view. 

<dependency>
  <groupId>org.kie.kogito</groupId>
  <artifactId>kogito-addons-quarkus-process-svg</artifactId>
</dependency>

There are three main sections available on Management console UI, that allows you to interact with your process instances and domain data.

Process Instances

Use this tab to find process and subprocess instances by status or business key.

When you select a process instance on the Process Instances page, it redirects you to the Process Details page, providing the process instance details, including interactions with the process instance.

Domain Explorer

Use this tab to explore your process instances in the Kogito services using specific data of the domain. When you select a domain, you can use the same domain to set the filters and columns. The filters and columns are used to localize the domain data and access the related process instances.

Jobs

Use this tab to view a list of available jobs, filter them by status, and perform actions for individual jobs, such as view details, reschedule, or cancel.

Task console

The Kogito Task Console is a user interface for viewing and interacting with user tasks in Kogito process services. Task console currently allows you to view your assigned tasks and their details, and move them to the next phase of their lifecycle.

The Task Console requires Kogito services to use the Kogito Data Index Service.

Kogito Data Index Service

The Data Index Service enables the Task Console to access stored events related to tasks and domain data from your Kogito services. The Kogito Data Index Service requires Infinispan or MongoDB persistence and Apache Kafka messaging for the Kogito service. Document briefing about the data index service can be found here.

At present, there are two main sections available on the Task console:

Task Inbox

The Task Inbox page lists the available user tasks that you can interact with, using the toolbar options at the top to filter the tasks. You can also search for tasks by full or partial name.

Task Details

Select a task name to view its details and interact with it. Depending on the current phase of the selected task, you can select from its available actions, such as Abort, Release, Skip, or Complete, to move it to the next phase.

Conclusion

This was an overview of the features that are currently available on Kogito consoles. We are continuing to include more features, enabling consoles to be more powerful and delivering more capabilities to interact with processes, tasks, and jobs along with other Kogito services.

And that’s all for today. Thanks for reading! 😃

The post Manage Processes and Tasks using Kogito consoles appeared first on KIE Community.

Leave a Comment

Get the BPI Web Feed

Using the HTML code below, you can display this Business Process Incubator page content with the current filter and sorting inside your web site for FREE.

Copy/Paste this code in your website html code:

<iframe src="https://www.businessprocessincubator.com/content/manage-processes-and-tasks-using-kogito-consoles/?feed=html" frameborder="0" scrolling="auto" width="100%" height="700">

Customizing your BPI Web Feed

You can click on the Get the BPI Web Feed link on any of our page to create the best possible feed for your site. Here are a few tips to customize your BPI Web Feed.

Customizing the Content Filter
On any page, you can add filter criteria using the MORE FILTERS interface:

Customizing the Content Filter

Customizing the Content Sorting
Clicking on the sorting options will also change the way your BPI Web Feed will be ordered on your site:

Get the BPI Web Feed

Some integration examples

BPMN.org

XPDL.org

×