You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/scripts/examples/script-steps.mdx
+17-18Lines changed: 17 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,17 @@
1
1
---
2
-
title: 'Workflow Steps Example'
3
-
description: 'Example demonstrating how to use workflow steps to create visual progress tracking in scripts'
4
-
icon: 'workflow'
2
+
title: 'Script Steps Example'
3
+
description: 'Example demonstrating how to use script steps to create visual progress tracking in scripts'
5
4
---
6
5
7
-
This example demonstrates how to use the workflow API to create visual progress tracking for a data processing script. The workflow steps provide users with clear feedback about what the script is doing at each stage.
6
+
This example demonstrates how to use the script API to create visual progress tracking for a data processing script. The script steps provide users with clear feedback about what the script is doing at each stage.
8
7
9
8
10
9
```javascript
11
-
// Data Processing Script with Workflow Steps
10
+
// Data Processing Script with Script Steps
12
11
// This script processes customer data and generates a summary report
13
12
14
-
// Step 1: Initialize the workflow
15
-
workflow.step({
13
+
// Step 1: Initialize the script step
14
+
script.step({
16
15
title:'Initializing Data Processing',
17
16
description:'Setting up the data processing pipeline',
18
17
icon:'database',
@@ -24,7 +23,7 @@ const customerTable = await input.tableAsync('Select the customer table to proce
24
23
constorderTable=awaitinput.tableAsync('Select the orders table:');
25
24
26
25
// Step 2: Data validation
27
-
workflow.step({
26
+
script.step({
28
27
title:'Validating Data Structure',
29
28
description:'Checking table structure and field compatibility',
0 commit comments