Viewing Underlying Code of Workflow
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello Alteryx Community!
I'm wondering if there is any way to view the underlying code behind a workflow. I found some resources for viewing underlying R-code, but can this be done for an entire workflow that does not include R tools?
Thank you in advance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
If you're referring to the XML code, there's a couple of ways:
- In Alteryx Designer: Options > User Settings > Edit User Settings > Advanced > Display XML in Properties Window. This will allow you to view the XML code of individual tools and the entire workflow as you work in Alteryx designer.
- Alteryx Designer workflows (.yxmd/.yxmc/.yxwz/.bak) can also be opened in text editing programs (like Notepad++). This will allow you to view the same XML code in another program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you!! Just curious, could you also use the XML window to code a workflow instead of dragging and dropping tools? (Not that anyone would want to :)) Or, could you add annotations in plain English to each line of code?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Yes, but it gets very complex to edit tools and their connections. That being said, XML editing is very handy if you want to edit formula contents, or update dependency/file paths..
You can open workflows in Alteryx Designer by inputting them as a text file (set delimiter \0). This would allow you parse/edit the workflow contents within Alteryx Designer. Combine this knowledge with the likes of the Directory Input and Dynamic Input tools and I've edited hundred of workflows in a matter of minutes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
That's fantastic. It really sparks my thinking about whether they'll be able to bring in a Diff functionality in order to have effective Version Control over workflows... as pondered here and hacked together here.
There is a platform for bioinformatics researchers that does very effective diff-based version control of underlying XML code, in exactly this way. Worth checking it out here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
This is really awesome! I've been wondering whether I could develop a "meta" workflow to analyze other workflows. As part of our publishing process we want to ensure certain design standards such as No SELECT *, filtering early in the workflow, disabled browse and performance profiling tools, etc. to get better performance. Looks like the approach of opening as XML in text and then parsing will meet this requirement. Thanks Charlie S !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Would it also be possible to edit the workflow properties from notepad? Because I have a macro (.xymc file, I checked) I've been working on that saved as an app workflow for whatever reason, and now when I try to open it, Alteryx crashes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Did you ever find a solution to the XML Meta data question? We have the same situation/question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi there:
I was able to resolve the issue by starting a clean document, copying over all the node and connection data in the correct areas, and then deleting the macro input and output tools
