How do you keep InvokeWorkflow arguments consistent?

Hi,

I am wondering what approaches the community has for the scenario:

  • year-old UiPath Studio process
  • many maintainers
  • argument drift: (some) arguments were added sporadically
  • but not all references to that workflow with their InvokeWorkflow activitiy updated, ideally only in “tests”.

A few years ago I wrote a small script that reads the .xaml files as text, and keeps some counters. Robust, but nothing more than a personal utility script. (That was before SY-USG-015 existed.)
I am planning to update this and want to call for comments and knowledge sharing.

Hi @cprima

In my opinion, workflow arguments are user-defined and therefore the responsibility of the developer to maintain. Whenever a new argument is introduced to a workflow, it should be consistently defined and updated across every Invoke Workflow activity that references it. The fact that some invocations remain outdated likely suggests that this discipline wasn’t followed during development - rather than it being a tooling gap, it seems more like a process and ownership issue that wasn’t enforced across the team.

what’s your thought on that?

Ownership and awareness are indeed my challenge.
I have service ownership of processes that are <7.5 years old. So there is a long history on “external”, freelancer or internal developers.

Which leaves me as “reviewer”, owner and partly also developer in that akward spot.

Most likely I will begin with a standalone PowerShell script, that clones all repos in a github organization, and analyze with rule SY-USG-015.


As a developer, I am a bit scared to click on a problematic InvokeWorkflow’s “import arguments”. Because it feels “backbox” or even “black hole”. If arguments were removed that would ripple through the whole calling workflow.
Maybe I should rely on Git “show changes” and undo – haven’t really done that.


Conceptually, I think “analyze” is too little.
Would even prefer if “validate project” returned a big fat warning – or even declared “invalid”. Wrong InvokeWorkflow arguments are the equivalent of CS1501: No overload
That should not be valid.

In UiPath, contract validation is deferred, the drift tolerance is high because at design-time these are just files with serialized markup.


What REALLY motivates me: I am generating ~70% of my .xaml files in the terminal with a coding agent.
And I need to go extra miles to make the coding agent understand these drastic deviations from standard computer science tooling a.k.a. training data.

A per-repo script could be used as a Claude Code hook.
Ideally the LLM should get a big fat “invalid” as quickly as possible, and all locally before any CI/CD.
@alexandru