How to create Activiti Message Event with Spring Boot Example
activiti
4
springboot
164
event
1
Male avatar

loveprogramming viết ngày 05/05/2021

https://grokonez.com/java-integration/activiti-message-event-spring-boot-example

How to create Activiti Message Event with Spring Boot Example

In this tutorial, we're gonna look at Activiti Message Event Example with Spring Boot.

Related Articles:

I. Activiti Message Event Overview

A Message Event is a named message that always directs towards a single receiver.

To define Message Event, we use messageEventDefinition element. For example:

<message id="messageId" name="messageName" />

<process id="simpleProcess" name="Simple Process">

    <startEvent id="start_one">
        <messageEventDefinition messageRef="messageId" />
    </startEvent>
    ...
</process>

Activiti Engine is not concerned with receiving messages. We have to implement our own infrastructure to deal with received messages. Then we can decide what to do with them.

In the example, we use message to trigger the start of a Process Instance. These are some methods (from Runtime Service):


ProcessInstance startProcessInstanceByMessage(String messageName);
ProcessInstance startProcessInstanceByMessage(String messageName, Map processVariables);
ProcessInstance startProcessInstanceByMessage(String messageName, String businessKey, Map processVariables);

II. Practice

1. Technology

  • Java 1.8
  • Maven 3.3.9
  • Spring Tool Suite – Version 3.8.4.RELEASE
  • Spring Boot: 1.5.3.RELEASE

More at:

https://grokonez.com/java-integration/activiti-message-event-spring-boot-example

How to create Activiti Message Event with Spring Boot Example

Bình luận


White
{{ comment.user.name }}
Bỏ hay Hay
{{comment.like_count}}
Male avatar
{{ comment_error }}
Hủy
   

Hiển thị thử

Chỉnh sửa

Male avatar

loveprogramming

545 bài viết.
97 người follow
Kipalog
{{userFollowed ? 'Following' : 'Follow'}}
Cùng một tác giả
Male avatar
1 0
Tutorial Link: (Link) (Ảnh) Django is a Pythonbased free and opensource web framework that follows the modeltemplateview architectural pattern. A...
loveprogramming viết 12 tháng trước
1 0
Male avatar
1 0
https://loizenai.com/angular11nodejspostgresqlcrudexample/ Angular 11 Node.js PostgreSQL Crud Example (Ảnh) Tutorial: “Angular 11 Node.js Postg...
loveprogramming viết 10 tháng trước
1 0
Male avatar
1 0
Angular Spring Boot jwt Authentication Example Github https://loizenai.com/angularspringbootjwt/ (Ảnh) Tutorial: ” Angular Spring Boot jwt Authe...
loveprogramming viết 10 tháng trước
1 0
{{like_count}}

kipalog

{{ comment_count }}

bình luận

{{liked ? "Đã kipalog" : "Kipalog"}}


Male avatar
{{userFollowed ? 'Following' : 'Follow'}}
545 bài viết.
97 người follow

 Đầu mục bài viết

Vẫn còn nữa! x

Kipalog vẫn còn rất nhiều bài viết hay và chủ đề thú vị chờ bạn khám phá!