Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.
SOLVED

Need to Know if Workflow is running on a Server or on Designer

ralph2048
7 - Meteor

I have a workflow that reacts differently when run on Alteryx Designer and when running on Alteryx Server. The reason is my workstation has more apps loaded than on the server, and big brother won't let me install them on the server. 

 

I want to be able to tell which environment I am operating in so I can disable the features the server cannot handle. 

 

How can i detect which environment I am running in? 

I tried looking at all of the constants (Engine types) but did not find anything really useful that absolutely positively stated the execution environment.

 

the only HINT was that the TempFilePath had the word "Staging" in it. But that is a easily broken test.

 

If there is none, perhaps it is time to add another Engine class for this. Perhaps Engine.Platform?

 

6 REPLIES 6
cadyb
Alteryx
Alteryx

Could you use a Run Command Tool to do a command line query for the machine name?

 

Cady 

ralph2048
7 - Meteor

Well that is a interesting idea.... But around here - servers change every 3 years when the lease runs out. So it seems to me that this is also something that will be inevitably broken. 

 

I am hoping to find something that is directly tied to the fact that their is a Alteryx server on this machine. 

 

I can't seem to find where Alteryx binaries are located on my machine for designer.

 

I am not sure if I want to go to the pains of looking in the registry - but that might have some component that states if there is a Alteryx server there.

Elie
5 - Atom

You can try to check by simply opening Help>About and you can check if this is the server or notScreenshot (137).png

ralph2048
7 - Meteor

that works manually, but I want to programatically do it in a work flow so It will react differently based on that information.

 

Right now I ask it what my computer name is and then if the name is different, I assume it is the server that is running it. very fragile.

patrick_digan
17 - Castor
17 - Castor

@ralph2048 How about this formula that checks the registry:

 

IF Contains(ReadRegistryString('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion', 'ProductName'),"Server") Then "Server" Else "Desktop" Endif

 

ralph2048
7 - Meteor

Hey this one looks very promising - I will have to try it out.