How to create Activiti Parallel Tasks with Spring JPA + Spring Boot Example » grokonez

How to create Activiti Parallel Tasks with Spring JPA + Spring Boot Example » grokonez

This tutorial shows you a Spring Boot example which is integrated with Activiti Parallel Tasks and Spring JPA.

https://grokonez.com/java-integration/activiti-parallel-tasks-jpa-with-spring-boot-example

How to create Activiti Parallel Tasks with Spring JPA + Spring Boot Example

This tutorial shows you a Spring Boot example which is integrated with Activiti Parallel Tasks and Spring JPA.

Related Articles:

I. Technology

- Java 1.8 - Maven 3.3.9 - Spring Tool Suite – Version 3.8.1.RELEASE - Spring Boot: 1.5.3.RELEASE

II. Overview

1. Goal

To build a Spring Boot application that helps to manage process as below: activiti-parallel-spring-boot
  • We will create a group of persons and use Spring JPA to store their information.

  • Then we assign:

  • Check Hardware and Do Meeting to John.

  • Check Software and Check Firmware to David.

  • Write Report to Katherin.

  • John's tasks and David's tasks can be handled in parallel. David doesn't need to wait for any task which is assigned to John be done.

  • Katherin is the assignee of Write Report task only if Check Hardware, Check Software and Check Firmware are done.

  • After report is done, 'notification' message will be shown in the System Console.

    2. Project Structure

    activiti-parallel-spring-boot-structure
  • Process definition will be written under XML format in process/process.bpmn20.xml file.

  • MyService provides service methods for Controller such as: startProcess(), getTasks(), completeTask(). Those functions can be done with help of some @Autowired objects which are instances of these classes:

  • RepositoryService

  • RuntimeService

  • TaskService

  • PersonRepository

  • PersonRepository is an interface extends JpaRepository for implementing repository methods on Person entities.

  • SpringParallelActivitiApplication class contains Bean that calls MyService's creating persons method when starting the application.

  • MyController is a REST Controller which has request mapping methods for RESTful requests such as: /process, /tasks, /completetask.

  • pom.xml contains dependencies for:

  • Activiti Spring Boot Starter Basic, Activiti Spring Boot Starter JPA

  • Spring Boot Starter Web

  • H2 database

  • Groovy: scripting engine for running Script Task in process.

    Notes: We must add Groovy Jar file (groovy-all-2.4.10.jar) to make it work.

More at:

https://grokonez.com/java-integration/activiti-parallel-tasks-jpa-with-spring-boot-example

How to create Activiti Parallel Tasks with Spring JPA + Spring Boot Example

activiti springjpa springboot parallel

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

How to quick start Activiti - a Java BPM Engine with SpringBoot » grokonez

Digitizing a business process is one of the toughest challenges. Java BPM Engine Activiti is a light-weight workflow & Business Process Management solution.

Simple Steps to Activate Starz | activate.starz.com

To know about the Activate Starz follow the procedure here. Visit link activate.starz.com to get the activation code for Starz Activate.

Hbo go Activate Frontier? Call US 18447380444

Activate and watch HBO Go Frontier To watch HBO Go, on Frontier streaming device, follow the important steps given below. • Go to the channel store to download Frontier. • Open the HBO Go channel and select the link log in or [Activate...

mcafee.com/activate | Enter activation code | McAfee activate

Mcafee.com/activate: Login and download McAfee from www.mcafee.com/activate. Open the installed software, type the McAfee activation code, and get started.

3 Essential Steps To Take To Prepare For An Active Shooter

Preparing for an active shooter is something that not many of us consider. But, gone are the days when active shooter training barely crossed the minds of people. Now, many businesses, and companies h...