I have a few workflow activities created that are using DLLs from third parties as well as a couple utility libraries I have. I am running into issues in Workflow with requiring the external libraries to be included in the Workflow installation directory only while publishing.
When the activities are installed, the activity DLL, third party DLLs, and workflow dependencies are installed into the activity installation directory in Windows (C:\Program Files\Cities Digital\Custom Activities). I add the custom activity DLL and all external dependencies as custom activity references in the Workflow Admin Console (server > Server Configuration > Custom Activities) and added the activities to the Workflow Designer Toolbox from the activity installation directory.
I am able to create my workflow and utilize functionality in the 3rd party dependencies from the activity proxy. When I publish the workflow, however, I am getting an error saying "Failed to publish workflow 'Workflow Name': Unknown custom activity detected: {Full type/assembly name} [0588-WF1] [0411-WF0]". If I copy all of my assemblies to the Workflow installation directory, I am then able to publish the workflow. The workflow is also able to run correctly when the assemblies are copied to the Workflow installation directory. After publishing, I deleted my assemblies from the Workflow installation directory and ran the workflow again. The workflow and custom activities are able to run successfully without any of my assemblies or the thrid party assemblies in the Workflow installation directory. I am also able to reproduce all of the above with only the activity DLL registered in the admin console and not the additional dependencies.
Note: The Workflow Server service and Workflow Designer were both restarted when copying assemblies and all tests were run with the Workflow Server and Workflow Designer on separate machines as well as the Workflow Server and Workflow Designer being on the same machine. The same results were found for both configurations in both Workflow 9.2 and 10.0.
Is there a fix available to not require the custom assemblies to be in the Workflow installation directory while publishing?