automate Workflow Builder - add Workflow StepWith an open Workflow Builder Window, is there a JSL command to add a workflow step with arguments to specify the JSL code and the "Notes" for the step?
Automation and ScriptingRe: automate Workflow Builder - add Workflow StepIf you check scripting index for Workflow it is very limited

You can also check if there are any interesting commands using Show Properties on the workflow object

Some of these (like usually...) are not documented in scripting index but I would guess that none of these do what you are looking for. You might be able to write your own custom JSL to perform the actions you are looking for but it might require quite a lot (at one point I did start custom workflow script to allow for better report flow report creation but I never finished it). I would hope that JMP will make workflows easier to script in some future version of JMP.
Re: automate Workflow Builder - add Workflow StepOk, thanks.
The .jmpflow files have an easy structure, maybe I will add the changes there ...
Re: automate Workflow Builder - add Workflow Stepon my way - a helpful change:

Re: automate Workflow Builder - add Workflow Step+ 1 step:
wf = open("mainFlow.jmpflow");
wf << Include workflow ("c:\temp\myworkflow.jmpflow")nice : )
Re: automate Workflow Builder - add Workflow Stepwith the same idea:
wf << add custom step();<BR />wf << add custom step(Notes("hello")) // no additional effect<BR />wf << add custom step("hello") // no additional effect </CODE></P><P><CODE class=" language-jsl">
hm, unfortunately, without the possibility to specify the Notes and JSL settings?
Re: automate Workflow Builder - add Workflow StepTo run a workflow, one can try
nsteps= wf << Get Step Count;
wf <<START over=""></START>
this will work if none of the steps is disabled. Otherwise the wirst steps will be executed twice.
Unfortunately, there is no << get enabled step count().
Re: automate Workflow Builder - add Workflow StepThere is limited JSL to use with the workflow - those steps were added so you could open workflows and run them if you had maybe an automated script daily. Workflow is not really designed to be a JSL script that is written and added to - if you can do that, you can just write the JSL and use a script. If you are an advanced scripter, you can add custom steps to the workflows, but the workflow is to automate your runs, and also really valuable to assist those that may not know scripting or like to write the script themselves.
Re: automate Workflow Builder - add Workflow StepHi @Mandy_Chambers , thank you for the information.
@Mandy_Chambers wrote:
... you could open workflows and run them
What command can I use to run the workflow?
Re: automate Workflow Builder - add Workflow StepNames Default To Here( 1 );
wf = Open(
"$SAMPLE_WORKFLOWS/WorkflowBuilder.jmpflow"
);
wf << Resume();
Resume will execute or resume execution
Re: automate Workflow Builder - add Workflow Stepmany thanks 
Re: automate Workflow Builder - add Workflow Step@julian Building-Your-JMP-Ecosystem @ 17:44 min
+

soooo amazingly useful. I am totally excited!
Re: automate Workflow Builder - add Workflow Step#DiscoverySummit2025
@DonMcCormack
wf << Resume();
https://community.jmp.com/t5/Discussions/automate-Workflow-Builder-add-Workflow-Step/m-p/813759/highlight/true#M99541