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,461
Resource Number 46107 Last Updated 2025-02-21
¥ 0HKD 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/a-process-diagram-editing-framework-focused-on-business-customization-compatible-with-various-process-editing-needs/

Share free open-source source code

Q&A
  • 1. Automatic: After making an online payment, click the (Download) link to download the source code; 2. Manual: Contact the seller or the official to check if the template is consistent. Then, place an order and make payment online. The seller ships the goods, and both parties inspect and confirm that there are no issues. ICTcoder will then settle the payment for the seller. Note: Please ensure to place your order and make payment through ICTcoder. If you do not place your order and make payment through ICTcoder, and the seller sends fake source code or encounters any issues, ICTcoder will not assist in resolving them, nor can we guarantee your funds!
View details
  • 1. Default transaction cycle for source code: The seller manually ships the goods within 1-3 days. The amount paid by the user will be held in escrow by ICTcoder until 7 days after the transaction is completed and both parties confirm that there are no issues. ICTcoder will then settle with the seller. In case of any disputes, ICTcoder will have staff to assist in handling until the dispute is resolved or a refund is made! If the buyer places an order and makes payment not through ICTcoder, any issues and disputes have nothing to do with ICTcoder, and ICTcoder will not be responsible for any liabilities!
View details
  • 1. ICTcoder will permanently archive the transaction process between both parties and snapshots of the traded goods to ensure the authenticity, validity, and security of the transaction! 2. ICTcoder cannot guarantee services such as "permanent package updates" and "permanent technical support" after the merchant's commitment. Buyers are advised to identify these services on their own. If necessary, they can contact ICTcoder for assistance; 3. When both website demonstration and image demonstration exist in the source code, and the text descriptions of the website and images are inconsistent, the text description of the image shall prevail as the basis for dispute resolution (excluding special statements or agreements); 4. If there is no statement such as "no legal basis for refund" or similar content, any indication on the product that "once sold, no refunds will be supported" or other similar declarations shall be deemed invalid; 5. Before the buyer places an order and makes payment, the transaction details agreed upon by both parties via WhatsApp or email can also serve as the basis for dispute resolution (in case of any inconsistency between the agreement and the description of the conflict, the agreement shall prevail); 6. Since chat records and email records can serve as the basis for dispute resolution, both parties should only communicate with each other through the contact information left on the system when contacting each other, in order to prevent the other party from denying their own commitments. 7. Although the probability of disputes is low, it is essential to retain important information such as chat records, text messages, and email records, in case a dispute arises, so that ICTcoder can intervene quickly.
View details
  • 1. As a third-party intermediary platform, ICTcoder solely protects transaction security and the rights and interests of both buyers and sellers based on the transaction contract (product description, agreed content before the transaction); 2. For online trading projects not on the ICTcoder platform, any consequences are unrelated to this platform; regardless of the reason why the seller requests an offline transaction, please contact the administrator to report.
View details

Related Source code

ICTcoder Customer Service

24-hour online professional services