Skip to main content

Workflow Service Panel

Workflow Definitions Folder Commands

Create Workflow Definition

Creates a new WorkflowDef in the selected project.

The creation form prompts for a name, description, user type, and task definitions. WorkflowDef names are required and cannot contain whitespace.

Task definitions are provided as a JSON array. Supported task _type values include:

  • REST_CONNECTOR
  • SCRIPT_EXECUTION
  • USER_INPUT
  • SWITCH
  • FORK_JOIN
  • DO_WHILE
  • HAYSTACK
  • MQTT_PUBLISH
  • AI_CONVERSE

Workflow Definition Commands

Run Workflow

Starts a new run for the selected WorkflowDef.

When the run is created, the extension opens the returned WorkflowRun JSON as a read-only document and shows the run ID and status.

Run Workflow with Input

Starts a new run for the selected WorkflowDef after prompting for optional top-level _inputParams.

The input params field accepts a JSON object and is passed to the Workflow Service when the run is created.

Show Workflow Runs

Opens the Workflow Runs tab in the Twinit Console for the selected WorkflowDef.

The console shows the 20 most recent runs, including status, created time, updated time, duration, tasks, task logs, and the run JSON.

View Definition JSON

Opens the selected WorkflowDef as a read-only JSON document.

Delete WorkflowDef

Deletes the selected WorkflowDef from the Workflow Service after confirmation.


Schedules Folder Commands

Create Schedule

Creates a time-based schedule for the selected WorkflowDef.

The schedule form prompts for a Quartz cron expression, a time zone, and optional _inputParams JSON. The cron expression must contain 6 or 7 whitespace-separated fields.

For example, 0 0 12 1/1 * ? runs the WorkflowDef daily at noon. The time zone defaults to UTC when not provided.


Schedule Commands

View Schedule JSON

Opens the selected schedule as a read-only JSON document.

Delete Schedule

Deletes the selected schedule trigger after confirmation.

If the deleted trigger is the last trigger on its schedule job, the Workflow Service also deletes the job.


Workflow Runs

The Workflow Runs tab in the Twinit Console is opened from the Show Workflow Runs command on a WorkflowDef.

From this tab you can refresh recent runs, select a run to inspect its tasks, view logs for workflow tasks, and review the selected run JSON.