vendredi 5 décembre 2014

Workflow Custom Activity deploy in multi server environment



I have been working on a project that involves developing a custom workflow activity for SharePoint 2013. I am developing it in a single server environment working with http. My problem occurs when deploying to multi-server environment with https (WFE, APP). My question is how to deploy my solution to the new environment.


The steps:



  • Create a project - c# activity library

  • Add a workflow activity, add .xml

  • Deploy the .dll and .xml of project to: "C:\ProgramFiles\Workflow%20Manager\1.0\Workflow\Artifacts" "C:\ProgramFiles\Workflow Manager\1.0\Workflow\WFWebRoot\bin"

  • net stop"Workflow Manager Backend"

  • net start "Workflow Manager Backend"

  • Deploy .DLL to GAC

    • Created MSI using install shield in VS2010 to add .DLL to GAC

    • Verify .DLL in GAC by going to c:\windows\assembly and %windir%\Microsoft.NET\assembly



  • iisrest

  • Deploy WSP to SharePoint, activate feature, open SharePoint Designer 2013 and choose the custom action that now appears when creating a 2013 workflow


To recap we have workflow manager on the APP server and and the workflow client on the WFE. We deployed the .DLL and .XML to the workflow manager (APP) only. The .DLL is deployed to/in the GAC on the WFE and the APP. We are able to see and create the activity in Designer 2013 and we deploy the workflow to a normal SharePoint list. When we run the workflow we do not get any errors in the ULS logs, event viewer or Workflow Manager Debug Logs (event viewer also). The site is not created though. We believe the issue is that the custom C# (.DLL) is not being ran.


This all works fine and dandy on my single server environment. Workflow is working like a charm. How can we trouble shoot what the issue is if we are not finding any errors? Is there a step that we missed or some other place we need to look for logs? Would the ULS logs show the site creation or show running our custom code? Currently it does not show anything when we run the workflow.


Let me know if this is unclear or if anyone needs more information. Thanks








0 commentaires:

Enregistrer un commentaire