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

SP List Item ID error

$
0
0

Env: VS 2012, SP2013, Win2012, WFM 1.0, SB 1.0, SB CU 1, WFM CU 1, SP Tools for VS, VS Update for Office tools

I have two solutions, one which deploys lists as features as a dependency feature to my list workflow feature, one which deploys List workflows as a feature with lists pre-existing on the SP site.

The second when deployed works fine (both are simple Sequence workflows with LookupSPListItemId, LookupSPList, LookupSPListItem, SingleTask, WritetoHistory objects - the lookups are to a secondary list to retrieve data for use in the SingleTask).

The first produces a Suspended state on the workflow with the following error once it hits the LookupSPListItemId:

System.FormatException: Expected hex 0x in '{0}'. at System.Guid.GuidResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument) at System.Guid.TryParseGuidWithHexPrefix(String guidString, GuidResult& result) at System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result) at System.Guid.Parse(String input) at System.Activities.CodeActivity
InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation) 

I tried making the listinstance feature (where the lists are activated on the sp site) a dependency in the feature for the workflow feature, tried recycling the site, the app pools (all involved) and rebooting the server after a deployment, all to no avail. The first solution simply fails.

Any ideas?


Workflow client app to a SharePoint workflow 2013 instance

$
0
0

I have created a SharePoint 2013 workflow (2013 workflow platform) created and published using SharePoint designer.

Can I create a console or wcf application that acts as a workflow client and communicate directly with the workflow I created, and not through SharePoint object model?

I may want to update workflow status, history, task or read state, tasks, read notifications.


Thanks, Roy Kim

correct Dynamic type for collection of JSON objects

$
0
0

Sequential Workflow application (is hosted on WF Manager 1.0) checks the workflow logic and based on the logic it invokesASP.NET Web API service to receive the data and returned to the client application.

So

  • WF application contains business logic or the workflow logic.
  • Web API Service provides JSON data (Collection of JSON objects)

The issue is "when the data is received from Web API service in WF application(Declarative workflow) how that JSON data(collection of JSON objects) can be returned to the client from WF application?

What type from the below used? 



All the above types are tried with no success, even the Dynamicvalue.

Your help and insight greatly appreciated.

Regards,





Apriori algorithm [association rule]


Workflows in Visual Studio 2012

$
0
0

Hello!

I'm developing workflows in VS 2012 for SharePoint 2013 and I'm facing with following issue.

When I need to update current item field of Lookup type (with UpdateSPListItem activity), I get an error

  400 Bad request for http://hostname/_vti_bin/client.svc/web/lists/getbyid(guid'list_guid')/Items(item_id)

And when I update fields of text type, it's ok.

I've tried different formats for updating:

  • [id] (as int and as string too)
  • [title] (as string)
  • [id];#[title]
  • DynamicValue, returned by LookupSPListItem

Nothing works.

But workflow developed in SP Designer 2013 works fine.

Any ideas would be appreciated.

Architecture: Windows workflow manager with ASP.NET Web API

$
0
0

Hi 

Intro:

Windows workflow manager 1.0  hosts Workflow applications (Declarative or Imperative) in multi-tenent environment and exposes Workflow applications as REST service. Workflow applications are built on top of windows workflow foundation.

Client application (MVC, Web Forms, WPF etc) can invoke workflow applications as REST service through WF Manager

Workflow applications run the automated business logic and return the output to the caller (client). Based on the workflow application out come data returned to the client by invoking ASP.NET Web API service.

In the investigation, MSDN provided samples and other community resources Workflow applications are NOT returning actual data that should returned to the client. WF application simply returning a Web API service URI to the client after running the business logic(workflow). 

Can you please suggest best practice here 'whether WF application has to return the data by invoking the ASP.NET Web API service' where client invokes the WF application?

In the investigation so far 'WF application(NOT only Declarative BUT code activity as well) failed to return the data that has received from Web API service as it is'. of course when the data is NOT manipulated in WF application, end client can directly invoke the ASP.NET Web API service to obtain the data based on the WF application out come, which involves two service calls (One to the WF service and second call to Web API Service).

Issue:

It is feasible to implement WCF service with WF where WCF exposes workflow as service and returns data based on the workflow out come. 

Now ASP.NET Web API has to replace WCF - there is no template support such as Web API - WF available.

As the WF application (through WF Manager) can not return collection of JSON objects that are returned from the Web API to the client, the archiecture is changed to 'Web API invoking the WF application, based on the WF business logic out come return the actual data from database to the client. Here Web API returns the data based on WF out come.' This is tested successfully.

Your help and architectural suggestion with best resources greatly appreciated on this.

Regards,


Apriori algorithm [association rule]

Provider Hosted App: workflow in sharepoint 2013

$
0
0

Hi

We have created a provider-hosted App.The app contains a list,workflow definition and a remote event receiver. We are trying to start the workflow from the remote event receiver .

We are getting an exception on the code which will start the workflow and after calling context.Executequery

  instanceService.StartWorkflowOnListItem(subscriptions[0], properties.ItemEventProperties.ListItemId, args);
                context.ExecuteQuery();

{The request was aborted: The request was canceled. Client ActivityId : d2d4349c-9d84-b06d-6127-af6b0a47fa81.
   at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)
   at Microsoft.Workflow.Client.WorkflowManager.StartInternal(String workflowName, WorkflowStartParameters startParameters)
   at Microsoft.SharePoint.WorkflowServices.FabricWorkflowManagementClient.StartInstance(String serviceGroupName, String workflowName, String monitoringParam, String activationKey, IDictionary`2 payload)
   at Microsoft.SharePoint.WorkflowServices.FabricWorkflowInstanceProvider.StartWorkflow(WorkflowSubscription subscription, IDictionary`2 payload)
   at Microsoft.SharePoint.WorkflowServices.FabricWorkflowInstanceProvider.StartWorkflowOnListItem(WorkflowSubscription subscription, Int32 itemId, IDictionary`2 payload)
   at Microsoft.SharePoint.WorkflowServices.WorkflowInstanceServiceServerStub.StartWorkflowOnListItem_MethodProxy(WorkflowInstanceService target, XmlNodeList xmlargs, ProxyContext proxyContext)
   at Microsoft.SharePoint.WorkflowServices.WorkflowInstanceServiceServerStub.InvokeMethod(Object target, String methodName, XmlNodeList xmlargs, ProxyContext proxyContext, Boolean& isVoid)
   at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, XmlNodeList args, ProxyContext proxyContext, Boolean& isVoid)
   at Microsoft.SharePoint.Client.ClientMethodsProcessor.InvokeMethod(Object obj, String methodName, XmlNodeList xmlargs, Boolean& isVoid)
   at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessMethod(XmlElement xe)
   at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessOne(XmlElement xe)
   at Microsoft.SharePoint.Client.ClientMethodsProcessor.ProcessStatements(XmlNode xe)
   at Microsoft.SharePoint.Client.ClientMethodsProcessor.Process()}

code is as follows and the line of code where we are facing the issue is highlighted 

public void ProcessOneWayEvent(SPRemoteEventProperties properties)
        {
            if (properties.EventType != SPRemoteEventType.ItemAdded)
                return;

            // build client context using S2S
            using (ClientContext context = TokenHelper.CreateRemoteEventReceiverClientContext(properties))
            {
              
                Web web = context.Web;

                // create a collection of name/value pairs to pass to the workflow upon starting
                var args = new Dictionary<string, object>();
                args.Add("RemoteEventReceiverPassedValue", "Hello from the Remote Event Receiver! - " + DateTime.Now.ToString());
  WorkflowServicesManager wsm = new WorkflowServicesManager(context, web);
  context.Load(wsm);
  context.ExecuteQuery();
  WorkflowSubscriptionService subscriptionService = wsm.GetWorkflowSubscriptionService();
  context.Load(subscriptionService);
  context.ExecuteQuery();

  var subscriptions = subscriptionService.EnumerateSubscriptionsByList(properties.ItemEventProperties.ListId);

  WorkflowInstanceService instanceService = wsm.GetWorkflowInstanceService();
      context.Load(instanceService);
                context.ExecuteQuery();
                instanceService.StartWorkflowOnListItem(subscriptions[0], properties.ItemEventProperties.ListItemId, args);
                context.ExecuteQuery();

 }
 }


Girish



Workflow Manager 1.0 Tracking

$
0
0

The main Workflow Manager 1.0 page (http://msdn.microsoft.com/en-us/library/windowsazure/jj193471(v=azure.10).aspx) list tracking as one of the features. However, I haven't seen any information on how to enable or access it. Everything I have run across isn't for Workflow Manager. I checked all the SQL tables and the event viewer and don't see anything that resembles tracking information.

Is there some way to turn on tracking so I get a list of activities run either in SQL or in the event viewer? 

Can WorkFlow Manager run on plain Windows Server 2008?

$
0
0
The prerequisites for WorkFlow Manger say Server 2008 R2.  Is there any reason why it would not run on plain Server 2008? 

Services.odata.org is down. How do I do error handling in the sample app?

$
0
0

I'm working on the Workflow Manager sample activity tutorial, but the Northwind OData service is down.  Fiddler says I get this:

HTTP/1.1 500 ( Forefront TMG detected a proxy chain loop. There is a problem with the configuration of the Forefront TMG routing policy. Please contact your server administrator.  )

Connection: Keep-Alive

Content-Length: 4042

Content-Type: text/html

Pragma: no-cache

Cache-Control: no-cache

... html stuff here...

How should I handle this error in the tutorial?  I want to learn how to handle this event in a production system




State machine workflow example with WF Manager

$
0
0

Hi

Please point to 'State-Machine workflow example with WF Manager' please.

The 'Getting started example is 'Sequential workflow'.

Is the Workflow should return the data or output the URI for the service that provides the data? (Decouple)

Best regards,


Apriori algorithm [association rule]

Service Bus 1.0 cumulative update

$
0
0

Hello,

in order to install the 26/02/2013 version of the Microsoft Office Developer Tools for Visual Studio 2012, you need to install first the Service Bus 1.0 Cumulative Update 1.

The thing is that I can not install this update, I always get an error:

DownloadManager Information: 0 : Using cached file at C:\Users\Gilles\AppData\Local\Microsoft\Web Platform Installer\installers\ServiceBusCU1\5024FF633CA537CDB1C2903F97E1244457BAEE18\ServiceBus-KB2799752-x64-EN.exe instead of downloading from http://go.microsoft.com/fwlink/?LinkId=285191&CLCID=0x409
DownloadManager Information: 0 : Starting EXE command for product 'Service Bus 1.0 Cumulative Update 1'. Commandline is: 'C:\Users\Gilles\AppData\Local\Microsoft\Web Platform Installer\installers\ServiceBusCU1\5024FF633CA537CDB1C2903F97E1244457BAEE18\ServiceBus-KB2799752-x64-EN.exe /quiet'. Process Id: 6308
DownloadManager Information: 0 : Install exit code for product 'Service Bus 1.0 Cumulative Update 1' is '-1'
DownloadManager Error: 0 : Install return code for product 'Service Bus 1.0 Cumulative Update 1' is Failure
DownloadManager Information: 0 : Product Service Bus 1.0 Cumulative Update 1 done install completed
DownloadManager Information: 0 : Increasing current install to 2

if I run C:\Users\Gilles\AppData\Local\Microsoft\Web Platform Installer\installers\ServiceBusCU1\5024FF633CA537CDB1C2903F97E1244457BAEE18\ServiceBus-KB2799752-x64-EN.exe

I get : "an unexpected internal error has occured."

I am running Windows 8.

Somebody having the same issue?

Thx

Gilles


http://gilleslauwers.wordpress.com

New Workflow Manager Getting Started Tutorial posted

$
0
0

I have just posted a new Workflow Manager getting started tutorial:

Workflow Manager 1.0 Getting Started Tutorial

This is a 3 step tutorial which covers creating a custom activity, using it in a workflow, and publishing and invoking the workflow. It covers the use of the HttpSend activity, and several of the DynamicValue activities, as well as other control flow, primitives, and runtime activities.

There is a video walkthrough and a download of the completed tutorial here:

Workflow Manager 1.0 Getting Started Tutorial Download and Video Walkthrough

This download also includes the starter files for the tutorial.

Please check it out and let me know what you think, and what you would like to see for future tutorials.

Thanks,

Steve Danielson [Microsoft]
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm

Accidentally applied wrong security to a workflow. Unable to delete it.

$
0
0

Given that there is no documentation on how to use the Security classes in Workflow Manager, I made a mistake and am unable to delete the workflow I created.  

In addition, all the errors ask me to check an internal log file that I can't find anywhere or in the eventvewer.

I also asked this question on StackOverflow: http://stackoverflow.com/q/18192958/328397 

Bunch of Issues

$
0
0

I've been working with Workflow Manager (in SharePoint 2013) for a while and about to finish a project with few 2013 workflows. Few issues listed below:

  • Calling custom SharePoint WCF service from workflow running in SharePoint requires 'anonymous access' to be enabled. If anonymous access is not enabled then the workflow gets access denied error. Problem Reported.
  • Modifying and redeploying workflow from Visual Studio 2012 doesn't update workflow. Though few reported workarounds but these works sometimes, sometimes don't. Problem Reported.
  • After installing March Update, sometimes workflow manager can't access database. Problem Reported.
  • Enough activities are not there to work for a big projects. For example, if someone would like to call an external service with URL encoding some parameters, there's no activities to encode URL inside workflow. Problem Reported.
  • Even if workflow activities exist, they don't have enough options to configure. For example, n SingleTask activity in SharePoint, there's no way not to send 'assignment' notification for a task. When a task is assigned to a user, user get notified whether whether notification is disabled in the list level or not. Problem Reported.

These are all the issues I've been through for my current SharePoint 2013 project. And the scariest thing is that when you deploy workflow in test/prod and it fails, you get mad to find out what went wrong. If the workflow fails you need to search through your whole farm, workflow manage event viewer, log files, sharepoint log files, workflow database etc.

I would really like to know when the workflow manager will be ready enough? Is there's release plan for major bug fixes or improvements? If we would know what going to be fixed/released and when, we could plan for our projects accordingly whether we'll use workflow 2010 or 2013 in our next SharePoint 2013 projects.


Thanks,
Sohel Rana
http://ranaictiu-technicalblog.blogspot.com

SharePoint 2013 Local Install - Blocked Ports

$
0
0

Let me know if this is the wrong forum.

How do I fix these errors when joining another SharePoint 2013 Server to the Workflow Manager farm?

Error 1: Port Number 9355 specified for HTTPS port is blocked

Error 2: Port number 9002 specified for Internal Communication Port Range is blocked.

This question is also asked here.



Can't Uninstall Workflow Manager from On-Premise SharePoint 2013 Installation

$
0
0

Hi,

I'm trying to remove Workflow Manager from a SharePoint farm (SQL Server 2012, Windows Server 2012, one VM for SharePoint, one separate VM for SQL--installed Workflow on the SharePoint VM with HTTP over oAUTH option) following the instructions in http://msdn.microsoft.com/en-us/library/windowsazure/jj193489(v=azure.10).aspx. The goal is to reinstall Workflow Manager.

However, we've followed the instructions several times and we're still getting an error when we try to install saving that there already is a database connection.

It would be great if we could find the PowerShell commands to see what's still is remaining of the previous installation but have not been able to figure out what commands to use (the PowerShell commands to manage a Workflow Manager installation in a SharePoint 2013 Enterprise on-premise install seem to be all over the place-some in MSDN, some in AZURE support area, some in TECHNET).

Does anybody have any ideas? We don't want to blow away the farm and start again since we have content on the farm already.

Thanks!


Kathryn Birstein, Senior SharePoint Architect

After installing and configuring Workflow Manager and Service Bus, I'm getting 403.

$
0
0

I've spent the day installing SharePoint 2013 on a Windows Server 2012 environment. This server is not the domain controller. Following instructions on how to install and configure Workflow Manager and service bus, it appears although I'm following the instructions (and I get no errors), something is not working.

If I try to go to the website that it creates in IIS http://localhost:12291 I get a 403 error. Also if I perform the powershell query to get the port number "Get-WFFarm | ft WFMgmtHttpPort" I don't get any value returned to me.

Until I validate that the Workflow Manager is installed and working, I will not attempt to pair it to the SharePoint 2013 farm. Which hopefully makes this a Workflow Manager question not a SharePoint issue.

Can anyone offer any suggestions please? Should I even get a valid webpage if I hit localhost:12291? According to one walkthrough I've looked at I should get an XML display of workflow and security configurations.

Visual Studio 2012 taking over 1 hour to build and compile a workflow

$
0
0

I have a SharePoint 2013 workflow which i've developed in Visual Studio 2012.

When i attempt to build the workflow, it takes up to an hour or more to build. I tried logging the build using msbuild instead and have found that it is hanging for long periods of time at the ExpressionTranslationBuildTask task as shown in the following output:

Under that it extends to:

So it hangs for over an hour on that "TaskId:52" for whatever reason....

Ive tried clearing every cache under the sun related to TFS and Visual Studio 2012 but nothing works. Looking at the build output it has something to do with Workflow Manager, since that is the task its stuck on, i just don't what the issue is however....

Error when publishing WF containing custom code activity to workflow manager 1.0

$
0
0

Hello:

Workflow manager sounds every exciting to me, I am trying it out to see if it will work for me.

I downloaded "CustomCodeActivitySample" of workflow manager 1.0, and when I ran, I got following exception:

Workflow XAML failed validation due to the following errors:
Cannot create unknown type '{clr-namespace:HashActivity;assembly=HashActivity}ComputeHash'. HTTP headers received from the server - ActivityId: 2a1e4d9d-90bd-4f59-a1fc-d3673194dd54. NodeId: NDL0714. Scope: /CustomCodeActivitiesSample. Client ActivityId : 235d66c1-bbe6-4982-8242-833a6bc1f6b1.

more details:

Microsoft.Workflow.Client.ActivityValidationException was unhandled
  HResult=-2146233088
  Message=Workflow XAML failed validation due to the following errors:
Cannot create unknown type '{clr-namespace:HashActivity;assembly=HashActivity}ComputeHash'. HTTP headers received from the server - ActivityId: efe2c3cb-e6fd-4124-88a1-6c8e72aecb06. NodeId: NDL0714. Scope: /CustomCodeActivitiesSample. Client ActivityId : 73d7b773-be53-4a7b-b2d8-ba687e60a4f4.
  Source=Microsoft.Workflow.Client
  ActivityName=ProcessMovies
  ScopePath=/CustomCodeActivitiesSample
  StackTrace:
       at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)
       at Microsoft.Workflow.Client.WorkflowManagementClient.SendRequest[T](HttpWebRequest request, T content)
       at Microsoft.Workflow.Client.ActivityManager.Publish(ActivityDescription description, Boolean overwriteXClassName, Boolean terminateDependentInstances)
       at Microsoft.Workflow.Client.ActivityManager.Publish(ActivityDescription description)
       at Microsoft.Workflow.Samples.Common.WorkflowManagementClientExtensions.PublishWorkflow(WorkflowManagementClient client, String workflowName, String xamlFilePath, Collection`1 externalVariables, IDictionary`2 configValues, SubscriptionFilter activationFilter) in c:\WFM_C\C\Microsoft.Workflow.Samples.Common\WorkflowManagementClientExtensions.cs:line 45
       at Microsoft.Workflow.Samples.Common.WorkflowManagementClientExtensions.PublishWorkflow(WorkflowManagementClient client, String workflowName, String xamlFilePath, SubscriptionFilter activationFilter) in c:\WFM_C\C\Microsoft.Workflow.Samples.Common\WorkflowManagementClientExtensions.cs:line 29
       at CustomCodeActivitySample.Program.Main(String[] args) in c:\WFM_C\C\CustomCodeActivitySample\Program.cs:line 39
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: System.Net.WebException
       HResult=-2146233079
       Message=The remote server returned an error: (400) Bad Request.
       Source=Microsoft.Workflow.Common
       StackTrace:
            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)
       InnerException:

Thanks


ahorse

Simple questions (I hope) w SharePoint 2013

$
0
0

We're installing SP 2013 for the first time.  I stood up a few new SP farms with no problems.  Then one of the developers comes and asks me to install Workflow manager 1.0.  I understand the DB topology and account usage but I have two questions.

1. I have one development DB.  I have two sp 2013 farms I built as virts.  They will both use the same DB.  Can workflow manager administer workflows on both farms or do I need two separate installations of workflow manager and it's associated db's?

2. I went ahead and installed WFmanager on the second farm, slightly changing all of the DB names so they didn't interfere with the first installation.  Everything worked except the Service Bus configuration.  It keeps getting hung on on "port number 9355 specified for this https port is blocked" but neither the db nor this server have their FW's even turned on.  The workflow manager portion worked fine but at the end the installation told me to rerun the config wizard, and select "join a farm".  I did that, but at the last screen I get this same error.  I don't know where to go next, there is no FW problem.

So i'm left either fixing that, or possibly joining this server to the previous workflow farm if that's even possible.  The problem I see with joining this to the other farm is that the service accounts for SharePoint itself are all different.

Any help is greatly appreciated..

Viewing all 897 articles
Browse latest View live


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