Quantcast
Channel: Workflow Manager 1.0 forum
Viewing all articles
Browse latest Browse all 897

Add Custom Activity to a Workflow (Sharepoint 2013)

$
0
0

Hello,

I have a development environment with two servers:

Server1: Domain Controller, SQL Server and Workflow Manager

Server2: SharePoint Farm (2013) + Visual Studio.

In step 1, I develop a workflow with SingleTask , LookUpSPList, WriteToHistory, ...

I deploy my workflow and I can test it in my environment without problem.

In Step 2, I develop a custom code activity, and I try to use it in my workflow.

After doing these steps:

On the Workflow Manager Server:

     - Copy activity assembly to following locations:

          > %ProgramFiles%\Workflow Manager\1.0\Workflow\Artifacts

          > %ProgramFiles%\Workflow Manager\1.0\Workflow\WFWebRoot\bin

     - Add your activity class to the white-list

          > Copy AllowedTypes.xml  also to above two locations

     - Restart “Workflow Manager backend” service

* On SharePoint box you have to:

     - Copy activity assembly to SharePoint box and install it in the GAC.

     - Reset IIS

I deploy my workflow.

When I try to activate feature, I have this message:

Error occurred in deployment step 'Activate Features': Microsoft.Workflow.Client.ActivityValidationException: Workflow XAML failed validation due to the following errors:
Invalid type(s) 'TestActivity.TestCodeActivity'.
HTTP headers received from the server - ActivityId: 245e1654-c371-4894-877d-bdfc8e199bae. NodeId: ADDC. Scope: /sharepoint/default/55970cea-4d71-4a9d-8273-b144c64b08cb/6f465a87-16c3-4312-8283-8f6594c399f2. Client ActivityId : 263a39fc-8d9f-42dd-99a6-de7631748b80. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result)
at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)


Viewing all articles
Browse latest Browse all 897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>