Symptoms:
System.getContext().getParameter("__metadata_resourceProperties").get("resourceId")
asyncWorkflow.execute(new Properties())
Aria Automation Orchestrator 8.16.2 - 8.18.1
It appears that some context de/reserialization issue occurs when the asynchronous workflow is started by the same scripting element.
VMware is aware of the issue and is working towards a solution.
Workaround:
Before testing the workaround please remove the old tokens to prevent the issue from re-occurring, to do so follow this article:
Selecting Dashboard > Largest token in UI crashes vCO service with 502, OK message