IoT Automation Controller Workflow Component Dropdown Menu Empty

Hi,

Environment Version
MES Version: 10.2.16
Controller Workflow Component Version: 10.2.16-202607241

The automation workflow list in the component dropdown menu shows empty when following these steps:

  1. Create a new controller page
  2. Add a new sub-workflow component task
  3. The automation workflow dropdown is empty

However, if I save the page first, the list populates correctly:

  1. Create a new controller page
  2. Click Save
  3. Add a new sub-workflow component task
  4. The automation workflow dropdown now shows the list

Is this a known issue, or is the dropdown expected to only populate after the page is saved?

Component Workflow

{
	"id": "task_2310",
	"reference": {
		"name": "workflow",
		"package": {
			"name": "@criticalmanufacturing/connect-iot-controller-engine-core-tasks",
			"version": "10.2.16-202607241"
		}
	},
	"settings": {
		"automationWorkflow": null,
		"executeWhenAllInputsDefined": false,
		"contextsExpirationInMilliseconds": 60000,
		"executionExpirationInMilliseconds": 1200000,
		"inputs": [],
		"outputs": []
	}
}

Hi @Dama_Wei,

The workflow task allows you to run either shared workflows or workflows with a task workflow start and end inside your controller. If the subworkflow you want to reference is part of the controller, it will only appear in the dropdown when you save the controller. This is in order for the system to generate a UID for it and to make sure it has passed at least once the on save validations.

This is known issue since v10.2.6, already have ticket

In v11.x I believe this is already fixed, with the change to Automation Task Libraries, the mechanism was rewritten from scratch