Skip to content

Commit 8a81672

Browse files
committed
update workflows
1 parent 08d30da commit 8a81672

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎docs/references/formulas/index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Formulas reference
3-
description: Use Nordcraft’s built-in formulas to transform data, calculate values, and apply conditional logic across your entire app.
3+
description: Use Nordcraft’s built-in formulas to transform data, calculate values, and apply conditional logic across your entire website.
44
---
55

66
# Formulas reference

‎docs/workflows/overview/index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn about workflows in Nordcraft as event-driven sequences that e
55

66
# Workflows overview
77

8-
A workflow in Nordcraft is a series of actions that are executed on certain events. It can contain complex logic and trigger behaviors.
8+
A workflow in Nordcraft is a series of actions that are executed on certain events. Workflows can contain conditional logic and trigger behaviors.
99

1010
::: dev
1111
The way workflows work in Nordcraft is very similar to functions in JavaScript.

‎docs/workflows/recursive-workflows/index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ Click on the [kbd]Start[kbd] button to start the timer. It will count down to 0.
1616
@@@
1717

1818
::: warning
19-
Make sure you have a break condition, sleep timers or other measures in place so that the workflow does not call itself infinitely and cause an endless loop, which may cause a blue screen of death.
19+
Make sure you have a break condition, sleep timers or other measures in place so that the workflow does not call itself infinitely and cause an endless loop, which may cause the Nordcraft editor to crash.
2020
:::

‎docs/workflows/working-with-workflows/index.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
title: Working with workflows
3-
description: Create event-triggered and reusable workflows with parameters and sequential action nodes to implement interaction logic in your Nordcraft app.
3+
description: Create event-triggered and reusable workflows with parameters and sequential action nodes to implement interaction logic in your Nordcraft website.
44
---
55

66
# Working with workflows
77

8-
Learn how to create event-triggered and reusable workflows with parameters and sequential action nodes to implement interaction logic in your Nordcraft app.
8+
Learn how to create event-triggered and reusable workflows with parameters and sequential action nodes to implement interaction logic in your Nordcraft project.
99

1010
## Create a workflow
1111

12-
You can create a workflown on any event in Nordcraft. This can be a standard JavaScript event on an element, a custom [event on a component](/components/interface-and-lifecycle#adding-events) or lifecycle events like `On load` or `On attribute change`.
12+
You can create a workflow on any event in Nordcraft. This can be a standard JavaScript event on an element, a custom [event on a component](/components/interface-and-lifecycle#adding-events) or lifecycle events like `On load` or `On attribute change`.
1313

1414
![The events panel is visible on the right of the editor. An onClick event has been created, and its dialog window is open. The onClick event sets the wasClicked variable to true, and then runs a workflow named increaseCounter. The workflow is identified by an icon representing three square orange nodes connected together with branches.|16/9](create-workflow-on-event.webp 'Create a workflow'){https://editor.nordcraft.com/projects/docs_examples/branches/main/components/screenshot-workflows?canvas-height=800&canvas-width=800&selection=nodes.root.events.onClick&rightpanel=events}
1515

@@ -31,12 +31,12 @@ To create a reusable workflow:
3131
3. Add [nodes](#nodes) to create your workflow logic
3232

3333
::: tip
34-
Create reusable workflows to keep your logic trees managable or if you need to use the same functionality multiple times.
34+
Create reusable workflows to keep your logic managable or if you need to use the same functionality multiple times.
3535
:::
3636

3737
## Parameters and events
3838

39-
When a workflow is triggered by an event, you have access to the event's data within the formulas of the workflow, enabling you to react to the data of the event.
39+
When a workflow is triggered by an event, you have access to the event's data within the formulas of the workflow, so you can configure how to react to the data of the event.
4040

4141
![The formula editor has been opened from the set action in an onClick event. In the formula editor, event data from the click event is available to be selected, such as x and y coordinates, and whether the alt key was held down. The event list is scrollable, so there are many more data points available for this event.|16/9](workflow-event-data.webp 'Use event data')
4242

@@ -52,7 +52,7 @@ To create a parameter:
5252

5353
## Nodes
5454

55-
A node is an action or a piece of logic that is executed sequentially. Nodes are the visual language in Nordcraft that you use to compose the desired logic. There are several built-in nodes like `Set variable`, `Set session cookies` or `Switch`. You can also call custom [actions](/actions/overview) or reusable workflows. This way you can create nested workflows and individual pieces of logic that are composable.
55+
A node is an action an instruction or a piece of logic that is executed sequentially. There are several built-in nodes like `Set variable`, `Set session cookies` or `Switch`. You can also call custom [actions](/actions/overview) or reusable workflows. This way you can create nested workflows and individual pieces of logic that are composable.
5656

5757
![The attributes panel is visible on the right of the editor, and a workflow named increaseCounter has been selected from the workflow list, meaning its dialog is open. The plus button has been clicked at the bottom of the workflow, displaying a dropdown menu of available nodes to add to the workflow. Tthere is the option to set variables defined in the component, the option to run the increaseCounter workflow, and to add a switch case. The dropdown list is scrollable so there are more options available which are not visible in the image.|16/9](create-workflow-node.webp 'Create nodes')
5858

@@ -67,7 +67,7 @@ You can copy and paste nodes in a workflow or between workflows via the context
6767

6868
### Sequential execution
6969

70-
Workflows execute their nodes sequentially. However, this does not necessarily mean each step waits for the previous one to finish completely, which is what synchronous execution would require.
70+
Workflows execute their nodes sequentially. However, this does not necessarily mean each step waits for the previous one to finish completely.
7171

7272
### Sequential and asynchronous execution
7373

0 commit comments

Comments
 (0)