I have a workflow where I need to potentially fetch multiple items based on a collection, and then create an item based on those results, so I created a subprocess that starts with a script task to create an empty list that then gets appended to as necessary later on. However, when I try to troubleshoot or validate this, I get this error:
Workflow validation failed with the following errors:
Element Activity_0udl8nd: The Enrichment Input Parameter ifsBpaEnrichmentRegisteredVariables cannot be defined on an element other than Service Task.
I have created workflows with script tags and no service tasks before, including one where the script is the first item, with no trouble; I could call execution.get/setVariable just fine to perform logic on data fed into the workflow or fetched via an API. I have found literally nothing about ifsBpaEnrichmentRegisteredVariables in the community, and there is no logical connection I can think of that explains why script tasks are fine elsewhere but not here.