Calling one workflow from another

ToadMan8's picture

I have a workflow that, given a user, returns the technical support person who should respond to the given user's request. I want to call this workflow from many other workflows. I established an input and output variable in the project, and the model is valid. I published it as a DLL, but when I import the DLL into my other projects, it doesn't generate any new components. How do I use the model from other projects?

Thanks!!

reecardo's picture

You could deploy the workflow

You could deploy the workflow as a web service and call the webservice via a generated WS component. Optionally, you could turn this workflow into a decision project, publish it as an executable, and call it using the Shell Execute component.

ToadMan8's picture

hrm...

I made a .exe and it shows the input var when I run it at the command line, then it says it completed successfully but doesn't give me output. When I use the Shell Commands component in the workflow I am trying to call it from, it returns the following:

Name: System.String[]
Command: System.String[]
Arguments: System.String[]
CommandToExecute: System.String[]

and Workflow considers those vars singles, so I can't use the array functions like "Build Text from Elements"

reecardo's picture

Have you tried going the web

Have you tried going the web service route? I completely overlooked the fact that this returns output. Usually I go the web service route for stuff that outputs stuff, and executables for workhorses that don't return output.

ToadMan8's picture

This did it!

This worked for me, and is a reasonably eloquent way of pulling it off, thank you!