Step {i + 1}

{#if isTrigger}

Trigger Script When a flow is 'Pull', the first step is a trigger script. Trigger scripts are scripts that must return a list which are the new items to be treated one by one by the rest of the flow, usually the list of new items since last time the flow was run. One can retrieve the item in the next step using `previous_result._value`. To easily compute the diff, windmill provides some helpers under the form of `getInternalState` and `setInternalState`.

{/if}

{#if 'path' in mod.value && mod.value.path} {mod.value.path} {/if} {#if 'language' in mod.value && mod.value.language} Inline {mod.value.language} {/if} {#if !('path' in mod.value) && !('language' in mod.value)} Select a script {/if}

{#if open == i}
{#if shouldPick} pickScript(e.detail.path, i)} on:new={(e) => createInlineScriptModule(e.detail.language, i, mode)} /> {/if} {#if mod.value.type === 'rawscript'}
loadSchema(i)} formatAction={() => loadSchema(i)} />

Move the focus outside of the text editor to recompute the input schema or press Ctrl/Cmd+S

{/if} {#if !shouldPick}

Step inputs

{/if}
{#if !shouldPick}
{ previewResults.set(toResults(e.detail)) }} />
{/if} {/if} {#if open == i}
{:else}
{/if}