A process diagram editing framework focused on business customization, compatible with various process editing needs

A process diagram editing framework focused on business customization, compatible with various process editing needs

2022-10-19 0 1,100
Resource Number 46107 Last Updated 2025-02-21
¥ 0USD Upgrade VIP
Download Now Matters needing attention
Can't download? Please contact customer service to submit a link error!
Value-added Service: Installation Guide Environment Configuration Secondary Development Template Modification Source Code Installation

This issue recommends a flowchart editing framework based on TS development – LogicFlow</ p>

A process diagram editing framework focused on business customization, compatible with various process editing needs插图

LogicFlow is a flowchart editing framework developed by Didi Experience Platform technology. It provides a series of necessary functions for flowchart interaction and editing, as well as simple and flexible node customization, plugins, and other extension mechanisms, making it easy for us to quickly meet the needs of class flowcharts in business systems. At present, LogicFlow has supported multiple operational systems such as IVR, work order flow, and intelligent robots under customer service business, which have been validated in different process configuration requirements of each system</ p>

Features

High scalability: compatible with various customized process editing requirements of products, the vast majority of modules are implemented in the form of plugins, supporting free insertion and removal of each module

Re execution: flowcharts can fully express business logic without being limited by process engines

Professional: A framework focused on editing business process diagrams

Use

Install

# npm
$ npm install @logicflow/core @logicflow/extension --save

Code Example

//Create container
< div id="container">& lt;/div>;</ span>

//Prepare data
const data = {
//Node
nodes: [
{
id: 21,
type: 'rect',
x: 100,
y: 200,
text: {
value:"Rectangular node"
x: 100,
y: 200,
},
},
{
id: 50,
type: 'circle',
x: 300,
y: 400,
text: {
value:"Circular node"
x: 300,
y: 400,
},
},
],
//Edge
edges: [
{
type: 'polyline',
sourceNodeId: 50,
targetNodeId: 21,
},
],
};</ span>
//Rendering Canvas
const lf = new LogicFlow({
container: document.querySelector('#container'),
width: 700,
height: 600,
});</ span>

lf.render(data);</ span>

Core competencies

Quick setup of flowchart editor

provides the necessary skills for editing flowcharts, which is also the fundamental ability of LogicFlow:

    • The ability to draw graphs. Drawing nodes and lines of various shapes based on SVG, and providing basic nodes (rectangles, circles, polygons, etc.) and lines (lines, polylines, curves)

Various interactive capabilities make the graph come to life. React to various mouse events (hover, click, drag, etc.) based on nodes, lines, and graphs. For example, dragging nodes, creating edges by dragging, adjusting lines, double clicking nodes to edit text, etc

The ability to improve editing efficiency. Provide grid, alignment lines, previous and next steps, keyboard shortcuts, image zooming in and out, and other supporting capabilities to help users improve editing efficiency

  • provides rich APIs, and the host development interacts with LogicFlow through API parameter calling and event listening

 

The following is an example flowchart created using LogicFlow’s built-in nodes and supporting capabilities:

A process diagram editing framework focused on business customization, compatible with various process editing needs插图1

Based on business scenario expansion

When basic capabilities cannot meet business needs, it is necessary to expand based on business scenarios</ p>

  • Set the style of all elements on the graph, such as the size and color of various nodes, lines, anchor points, arrows, alignment lines, etc., to meet the needs of front-end style adjustment
  • API extension. Support registering custom methods on LogicFlow, such as providing image download methods through API extensions
  • Customize nodes and lines. The built-in graphic nodes such as rectangles and circles often cannot meet practical business needs, and it is necessary to define nodes with business significance. LogicFlow provides a way for users to customize nodes with custom graphics and business data, such as the “approval” node in process approval scenarios
  • Extension component. LogicFlow provides an HTML layer and a series of coordinate transformation logic on the SVG layer, and supports registering components at the HTML layer. Independent research and development can use LogicFlow’s API to develop components based on any View framework, such as right-click menus for nodes, control panels, etc
  • Data conversion adapter. The default exported graph data from LogicFlow may not be suitable for all businesses. In this case, custom conversions can be made through the adapter API when inputting and outputting graph data from LogicFlow, such as converting to BPMN standard map data
  • Built in partial expansion capability. Based on the above expansion capabilities, we also provide a separate extension package to store nodes, components, etc. with universality that have been accumulated under the current business, such as nodes and data adapters for BPMN specifications, with default menus. Please note that extensions can be installed separately and support on-demand import

Based on the expanded capabilities mentioned above, front-end R&D can flexibly develop the required nodes, components, etc. according to the needs of actual business scenarios. Here are two flowcharts based on the extension capabilities of LogicFlow:

BPMN:

A process diagram editing framework focused on business customization, compatible with various process editing needs插图2

Approval process:

A process diagram editing framework focused on business customization, compatible with various process editing needs插图3

Tool Example

Vue application demo

Source code address:
https://github.com/xinxin93/logicflow_vue_demo

A process diagram editing framework focused on business customization, compatible with various process editing needs插图4

Example drawing tool

LogicFlow not only supports the development of fixed overall styles such as bpmn.exe, but also focuses on generating data that can be executed by the process engine as a flowchart tool. It also supports the implementation of free control style drawing tools such as ProcessOn</ p>

Source code address:
http://logic-flow.org/mvp/index.html

A process diagram editing framework focused on business customization, compatible with various process editing needs插图5

Example of vue3 node red style

Source code address:
https://github.com/Logic-Flow/logicflow-node-red-vue3

A process diagram editing framework focused on business customization, compatible with various process editing needs插图6

—END—

Open source license: Apache2.0

资源下载此资源为免费资源立即下载
Telegram:@John_Software

Disclaimer: This article is published by a third party and represents the views of the author only and has nothing to do with this website. This site does not make any guarantee or commitment to the authenticity, completeness and timeliness of this article and all or part of its content, please readers for reference only, and please verify the relevant content. The publication or republication of articles by this website for the purpose of conveying more information does not mean that it endorses its views or confirms its description, nor does it mean that this website is responsible for its authenticity.

Ictcoder Free source code A process diagram editing framework focused on business customization, compatible with various process editing needs https://ictcoder.com/kyym/a-process-diagram-editing-framework-focused-on-business-customization-compatible-with-various-process-editing-needs.html

Share free open-source source code

Q&A
  • 1, automatic: after taking the photo, click the (download) link to download; 2. Manual: After taking the photo, contact the seller to issue it or contact the official to find the developer to ship.
View details
  • 1, the default transaction cycle of the source code: manual delivery of goods for 1-3 days, and the user payment amount will enter the platform guarantee until the completion of the transaction or 3-7 days can be issued, in case of disputes indefinitely extend the collection amount until the dispute is resolved or refunded!
View details
  • 1. Heptalon will permanently archive the process of trading between the two parties and the snapshots of the traded goods to ensure that the transaction is true, effective and safe! 2, Seven PAWS can not guarantee such as "permanent package update", "permanent technical support" and other similar transactions after the merchant commitment, please identify the buyer; 3, in the source code at the same time there is a website demonstration and picture demonstration, and the site is inconsistent with the diagram, the default according to the diagram as the dispute evaluation basis (except for special statements or agreement); 4, in the absence of "no legitimate basis for refund", the commodity written "once sold, no support for refund" and other similar statements, shall be deemed invalid; 5, before the shooting, the transaction content agreed by the two parties on QQ can also be the basis for dispute judgment (agreement and description of the conflict, the agreement shall prevail); 6, because the chat record can be used as the basis for dispute judgment, so when the two sides contact, only communicate with the other party on the QQ and mobile phone number left on the systemhere, in case the other party does not recognize self-commitment. 7, although the probability of disputes is very small, but be sure to retain such important information as chat records, mobile phone messages, etc., in case of disputes, it is convenient for seven PAWS to intervene in rapid processing.
View details
  • 1. As a third-party intermediary platform, Qichou protects the security of the transaction and the rights and interests of both buyers and sellers according to the transaction contract (commodity description, content agreed before the transaction); 2, non-platform online trading projects, any consequences have nothing to do with mutual site; No matter the seller for any reason to require offline transactions, please contact the management report.
View details

Related Article

make a comment
No comments available at the moment
Official customer service team

To solve your worries - 24 hours online professional service