Skip to content

Commit 2f518c9

Browse files
committed
Add final nodes documentation
1 parent 878d7dc commit 2f518c9

5 files changed

Lines changed: 413 additions & 2 deletions

File tree

src/app/[teamId]/docs/layout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export default function Layout({ children, params }: { children: ReactNode, para
2323
<ScrollToTop />
2424
<DocsLayout tree={source.pageTree} {...baseOptions} disableThemeSwitch sidebar={{
2525
collapsible: false,
26+
defaultOpenLevel: 1
2627
}}>
2728
{children}
2829
</DocsLayout>

src/app/docs/layout.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ export default function Layout({ children }: { children: ReactNode }) {
1313
<RootProvider>
1414
<ScrollToTop/>
1515
<HomepageNavigation/>
16-
<DocsLayout tree={landingSource.pageTree} {...baseOptions} disableThemeSwitch>
16+
<DocsLayout tree={landingSource.pageTree} {...baseOptions} disableThemeSwitch sidebar={{
17+
defaultOpenLevel: 1
18+
}}>
1719
{children}
1820
</DocsLayout>
1921
</RootProvider>

src/components/processEditor/nodes/AndSplitNode.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {Handle, NodeProps, Position} from 'reactflow';
33
import useStore, {handleStyle} from "@/stores/store";
44
import {OptionsDefinition, OptionsStructureType, OptionsText} from "@/model/OptionsModel";
55
import {setDefaultValues} from "@/components/processEditor/toolbars/dynamicOptions/DynamicOptions";
6-
import {ActivityNodeData} from "@/components/processEditor/nodes/ActivityNode";
76
import {X} from "lucide-react";
87

98
export type AndSplitNodeData = {
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: Parallel Gateway
3+
description: The Parallel Gateway is used to create parallel paths in a process. It allows multiple paths to be executed simultaneously.
4+
---
5+
6+
import { Split, Merge } from "lucide-react";
7+
8+
## Structure
9+
10+
There are two nodes that are used to create parallel paths in a process: the **Split** and **Join** nodes. The Split node is used to create multiple paths, while the Join node is used to merge those paths back together. Split paths should always be joined with a Join node. The Split node has one incoming connection and multiple outgoing connections, while the Join node has multiple incoming connections and one outgoing connection.
11+
12+
<div className="flex flex-row items-start justify-start gap-8 flex-wrap mt-16">
13+
<div className="flex flex-col items-center">
14+
<div style={{
15+
transform: "rotateY(0deg) rotate(45deg)",
16+
borderRadius: 6,
17+
boxShadow: "0px 0px 5px 1px #14803c"
18+
}} className="flex h-14 w-14 justify-center items-center border-2 border-primary" >
19+
<Split style={{ transform: "rotate(45deg)" }} className="w-6 h-6" />
20+
</div>
21+
<p>Split</p>
22+
</div>
23+
<div className="flex flex-col items-center">
24+
<div style={{
25+
transform: "rotateY(0deg) rotate(45deg)",
26+
borderRadius: 6,
27+
boxShadow: "0px 0px 5px 1px #14803c"
28+
}} className="flex h-14 w-14 justify-center items-center border-2 border-primary" >
29+
<Merge style={{ transform: "rotate(45deg)" }} className="w-6 h-6" />
30+
</div>
31+
<p>Join</p>
32+
</div>
33+
</div>
34+
35+
Both nodes do not have any options and work automatically. The Split node will create a new path for each outgoing connection, and the Join node will wait for all incoming connections to be completed before continuing to the next step in the process. This allows for parallel execution of multiple paths in a workflow.

0 commit comments

Comments
 (0)