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

Service Bus Message Broker stuck in "Starting" state

$
0
0

I have a Workflow Manager and Service Bus farm configured and working. I am trying to add a second server to the farm. During configuration, as the second host is being added through Add-SBHost, there is an attempt made to stop and start Service Bus services on the first host. The start fails because the Service Bus Message Broker service gets stuck in the "Starting" state. It retries this 3 times, each try taking around 7 minutes and each time the failure ending with a message that looks like this:

ServiceBus Broker service failed to start, retry count 1. Exception message: Operation timed out..  Stack Trace:   at System.Fabric.FabricRuntime.Create(Action fabricExitCallback)

  at Microsoft.Cloud.ServiceBus.MessageContainerHost.Ring.Join()

  at Microsoft.Cloud.ServiceBus.MessageContainerHost.MessageContainerHostComponent.Open()

  at Microsoft.Cloud.HostingModel.ComponentHost.OpenComponent(IComponent component, RequestTracker tracker)

  at Microsoft.Cloud.HostingModel.ComponentHost.Open()

  at Microsoft.ServiceBus.MessageBroker.Backend.OnStart(String[] args)

This error is preceded by 2 others that present no more information than the above does:

TrackingId: f8ff41e9-53e0-48fc-b4de-b7505d4d5f7b, SubsystemId: NoSystemTracker. Failed to open Messaging Host Component System.TimeoutException: Operation timed out. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80071BFF

  at System.Fabric.Interop.NativeRuntime.FabricEndCreateRuntime(IFabricAsyncOperationContext context)

  at System.Fabric.FabricRuntime.NativeFabricRuntimeFactory.InitializeFabricRuntimeEndWrapper(FabricRuntime runtime, AsyncCallOutAdapter adapter)

  at System.Fabric.Interop.Utility.FinishNativeAsyncInvoke[TResult](String functionTag, Func`2 endFunc, TaskCompletionSource`1 source, AsyncCallOutAdapter adapter, Boolean expectCompletedSynchronously)

  --- End of inner exception stack trace ---

  at System.Fabric.FabricRuntime.Create(Action fabricExitCallback)

  at Microsoft.Cloud.ServiceBus.MessageContainerHost.Ring.Join()

  at Microsoft.Cloud.ServiceBus.MessageContainerHost.MessageContainerHostComponent.Open()

and...

Windows Fabric Runtime create failed Exception System.TimeoutException: Operation timed out. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80071BFF

  at System.Fabric.Interop.NativeRuntime.FabricEndCreateRuntime(IFabricAsyncOperationContext context)

  at System.Fabric.FabricRuntime.NativeFabricRuntimeFactory.InitializeFabricRuntimeEndWrapper(FabricRuntime runtime, AsyncCallOutAdapter adapter)

  at System.Fabric.Interop.Utility.FinishNativeAsyncInvoke[TResult](String functionTag, Func`2 endFunc, TaskCompletionSource`1 source, AsyncCallOutAdapter adapter, Boolean expectCompletedSynchronously)

  --- End of inner exception stack trace ---

  at System.Fabric.FabricRuntime.Create(Action fabricExitCallback)

  at Microsoft.Cloud.ServiceBus.MessageContainerHost.Ring.Join()

The Windows Fabric Runtime creation itself seems to be retried 6 times, each try taking around 70 seconds and each time it fails, the following information message is posted to the log:

Windows Fabric Runtime create failed (Retries left 6) Exception System.TimeoutException: Operation timed out. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80071BFF

  at System.Fabric.Interop.NativeRuntime.FabricEndCreateRuntime(IFabricAsyncOperationContext context)

  at System.Fabric.FabricRuntime.NativeFabricRuntimeFactory.InitializeFabricRuntimeEndWrapper(FabricRuntime runtime, AsyncCallOutAdapter adapter)

  at System.Fabric.Interop.Utility.FinishNativeAsyncInvoke[TResult](String functionTag, Func`2 endFunc, TaskCompletionSource`1 source, AsyncCallOutAdapter adapter, Boolean expectCompletedSynchronously)

  --- End of inner exception stack trace ---

  at System.Fabric.FabricRuntime.Create(Action fabricExitCallback)

  at Microsoft.Cloud.ServiceBus.MessageContainerHost.Ring.Join()

Can anyone throw some light on what could be causing this failure? I am hoping the answer is not uninstall everything and reinstall.


Messaging and Message Brokers

$
0
0

Hi There,

I wanted to know if we're able to use message brokers other than Microsoft's Service Bus? Our organization uses Active MQ, and I am getting push back about using a different messaging broker.

Thanks for your help!

Deploying WF as a Services

$
0
0

Hi There,

I wanted to know if we're able to deploy a workflow as a service in WFM 1.0? I would like to be able to manage these "WF Services," whose job it is to execute the workflow when called, in AppFabric or IIS. If so, how do we go about doing this?

Thanks!

Have any ISVs built an "enterprise class" BPM solution on top of Workflow Manager?

$
0
0

Have any ISVs built an "enterprise class" BPM solution on top of Workflow Manager?

...does anyone know of anyone planning to deliver a BPM solution based on WM?

Michael


Xpert Search Agents for Microsoft web sites: http://www.parallelspace.net/MicrodeX


HttpSend to call custom wcf service

$
0
0

Hi,

I've developed a workflow in Visual Studio and that is invoking a custom WCF service that I've developed.  But the workflow gets '401 Unauthorized' while try to access the cusom service. I've used a network monitor to find out the details. However the workflow can access the SharePoint contents using out of the box REST API.

After investigating the http traffic, I've found while the workflow is calling REST API, the http header 'authorization' has access-token filled automatically. However while my custom workflow is invoked by workflow, the authorization header is just 'Bearer', so access-token is missing. Is there any way I can access the token in workflow and pass it in header to call my custom wcf server? Or is there any suggestion on how to call custom wcf service from sharepoint workflow 2013?


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


Publish and start a workflow using CSOM

$
0
0

Hi,

I have a requirement to publish and start a SharePoint 2013 workflow form a re-hosted designer. I have managed to extract the xaml from the designer and published it using CSOM

These are the general steps I followed

  1.        Get workflow service manager instance
  2.        Get workflow deployment service instance
  3.        Create a WorkflowDefinition object
  4.        Save and Publish definition using workflow deployment service

Now that I have published this workflow how do I start it using CSOM ?

Rest Api documentation?

$
0
0
Where is the documentation for the Workflow Manager Rest API? I realize I can use the WorkflowManagementClient, but I also want to access it from a non .net client.

Workflow in sharepoint 2013

$
0
0

Hi

We are trying to install workflow on the same SharePoint 2013 farm .we are getting the following issue.we have tried the non -admin account for set up the workflow azure service and still facing the issue .we have installed march PU. workflow is getting cancelled with the below error

RequestorId: 3174fb11-4aa0-ee8b-8efb-92f98422b0a6. Details: System.ApplicationException: HTTP 401 {"error_description":"Invalid JWT token. Could not resolve issuer token."} {"x-ms-diagnostics":["3000006;reason=\"Token contains invalid signature.\";category=\"invalid_client\""],"SPRequestGuid":["3174fb11-4aa0-ee8b-8efb-92f98422b0a6"],"request-id":["3174fb11-4aa0-ee8b-8efb-92f98422b0a6"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"SPRequestDuration":["5"],"SPIisLatency":["1"],"Server":["Microsoft-IIS\/7.5"],"WWW-Authenticate":["Bearer realm=\"092fd493-1a18-4397-8326-37d135967e1c\",client_id=\"00000003-0000-0ff1-ce00-000000000000\",trusted_issuers=\"00000005-0000-0000-c000-000000000000@*,00000003-0000-0ff1-ce00-000000000000@092fd493-1a18-4397-8326-37d135967e1c\"","NTLM"],"X-Powered-By":["ASP.NET"],"MicrosoftSharePointTeamServices":["15.0.0.4420"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1; RequireReadOnly"],"Date":["Sun, 02 Jun 2013 18:31:33 GMT"]} at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)


Girish



Book marks using Workflow manager

$
0
0

Hi ,

Can I publish and resume book mark using Workflow manager.Is it possible .What could be other alternates?

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.

Can't start any 2013 workflow on Document Set item, when it is created using custom ASP item form

$
0
0

Hi,

I have created very simple ASP New item form which looks as follow:

    <asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
        <SharePoint:FormField runat="server" FieldName="Name" ControlMode="New"/>
        <SharePoint:FormField runat="server" FieldName="Title" ControlMode="New"/>
        <SharePoint:SaveButton runat="server" ControlMode="New"/>
        <SharePoint:GoBackButton runat="server" ControlMode="New"/>
    </asp:Content>

Set it as a New form for Document Set content type using SPD.
Also I created a new Document Library, where Document Set is one of the content types.
Now, when I add new Document Set in this library, I can see my simple form.



After pressing the Save button, I can see new item 123 as expected. 

After that I select it and try to run workflow (2013 SPD WF) on it, but it doesn't start and shows me the following error: "Something went wrong. To try again, reload the page and then start the workflow"



And I can see the following error in the ULS logs:

Failed to look up list item with Id 26 on list with Id 916aff44-93ff-4c93-aeca-b227e249a33a for call to StartWorkflowOnListItem() : System.ArgumentException: Value does not fall within the expected range.     at Microsoft.SharePoint.WorkflowServices.FabricWorkflowInstanceProvider.StartWorkflowOnListItem(WorkflowSubscription subscription, Int32 itemId, IDictionary`2 payload).

I can see that item with id=26 exists. At least I could see it using the following link:

http://mysite/mylist/Forms/Document%20Set/docsethomepage.aspx?ID=26&FolderCTID=0x0120D520005107FFFB3FE12644B0E708E265E4BA8D&List=916aff44-93ff-4c93-aeca-b227e249a33a&RootFolder=%2Frechenzentren%2FServers%2F123&RecSrc=%2Frechenzentren%2FServers%2F123


However, if I create new item using standard form, the same workflow starts well. Workflow is very simple and consists of the only log activity.

What I have tried:

1. Tried to use the same custom form to create item derived from Item in a list. In such a case workflow starts without any issues. So probably, the issue related only to Document Libraries or Document Set.
2. Tried to start 2010 SPD WF on this item. It works well. So, probably this issue is related only to new 2013 WF Manager's WF.
3. Compare all fields of the both items (created by standard and custom forms). The only difference, which I could see is that in the working item, MetaInfo field contains additional value "docset_SkipProvision:SW|True". I tried to add it to the incorrect item, but with no results.

My ideas why it happens:

1. I should do some additional work in my custom form when it comes to Document Set (SharePoint:SaveButton is not enough).
2. It is a bug in platform and standard form do something behind the scenes to overcome it (but what?)


Does anybody have some ideas, why it happens and what could I try for troubleshooting?
Every suggestions are very appreciated.

Kind regards, Michael

PS: Crosspost from SharePoint 2013 - Development and Programming 

WFM Roadmap?

$
0
0


Hi,

We are trying to decide if some future release of WFM can be used in a mission-critical high-throughput enterprise solution that we are building on top of Service Bus. Our stumbling blocks are:

1. We need workflow activation from any Service Bus subscription or queue. Right now, we have some glue code that reads from a service bus queue and calls the WFM client API, so 2 hops instead of one.

2. Even though our workflow notifications are delivered by the service bus, there is no way to access the brokered message header from the workflow (at least, we haven't found one). And I mean the whole header, not just to user properties.

3. We need to build and send a brokered message directly from an activity, to any service bus queue or topic.

It is frustrating to have WFM sitting on top of the excellent service bus, but with a half backed integration. Handling brokered messages directly from activities seems to be an obvious feature, sadly missing.

Is there a roadmap for WFM, and if so, are brokered messages activities on it?

Thanks


Installation issue - on Windows 7 - Require a "Token Provider Service"

$
0
0

Attempting to install on Windows 7 (Development/trialling)

Getting error:

Starting
Endpoint=sb://DavidT-7L.syncsoft.com.au/WorkflowDefaultNamespace;StsEndpoint=https://DavidT-7L.syncsoft.com.au:9355/WorkflowDefaultNamespace;RuntimePort=9354;ManagementPort=9355

Processing completed
Installing auto-generated certificate.
Granting 'Log on as Service' privilege to the RunAs account.
Workflow Manager configuration starting.
Configuring Workflow Manager runtime settings.
Could not successfully create management Service Bus entity 'WF_Management/WFTOPIC' with multiple retries within a timespan of 00:02:05.7892585.. The exception of the last retry is: The token provider service was not avaliable when obtaining a token for 'https://davidt-7l:9355/WorkflowDefaultNamespace/$STS/Windows/'..

Do I need an STS?  Do i have to install sharepoint (Foundation 2012) as well (for its STS)?

Any ideas?

Thanks

david tuke

Workflow manager without SharePoint?

$
0
0

Hi 

Like to use workflow manager as stand alone tool to host workflows that are implemented programatically.

Please inform whether it is feasible?

From Pluralsight WF course it is evident that Workflow manager requiresUser Profile application with SharePoint to send email alerts etc.

Objective is 'Implement workflows and host using Workflow manager and consume in .Net client applications.

Your help and invaluable info with resources is greatly appreciated.


Apriori algorithm [association rule]

Workflow Manager 1.0 in N-Tier architecture

$
0
0

WF Manager exposes Workflow applications as REST Services and provides other management tools such as ESB etc.

In order to adopt WF Manager in N-Tier architecture where SOA drives the development, below architecture is identified.

Sharing your expertise is greatly appreciated.

  • Client invokes the Web API service based on WF REST service workflow outcome.
  • WF Manager is responsible for only Workflow application - stand alone.
    When the WF service fails, the other service that is responsible to provide data still available.

In summary it follows separation of concern.

Example:- Approve workflow. Object state 

1. Client query WF service to obtain 'object state (State machine workflow)'
2. Based on the service response with object state client invokes the Web API service to interact with underlying database
3. Business logic is in client application that interact with both services(WF and Web API REST Services)

Best regards


Apriori algorithm [association rule]



PublishWorkflow error when workflow contains custom code activity

$
0
0

I've failed to get a custom code activity working within Workflow Manager 1.0 even though I believe I've performed all of the guidance steps provided.

As other posts, I get the usual 'cannot create unknown type' error:

client.PublishWorkflow( workflowName, @"..\..\TestWorkflow.xaml" );

->

Cannot create unknown type '{wf://workflow.windows.net/$Current/$Activities}SendMailActivity'.

The activity is implemented as:

namespace SharedActivities { public sealed class SendMailActivity : CodeActivity {

...

I've created an AllowedTypes.xml file containing the following:

<?xml version="1.0" encoding="utf-8" ?><AllowedTypes><Assembly Name="SharedActivities"><Namespace Name="SharedActivities"><Type>SendMailActivity</Type></Namespace></Assembly></AllowedTypes>

The SharedActivities assembly has the following Post Build event command line

net stop "Workflow Manager Backend" %systemroot%\system32\inetsrv\appcmd stop apppool /apppool.name:"WorkflowMgmtPool" xcopy /y "$(TargetPath)" "C:\Program Files\Workflow Manager\1.0\Workflow\WFWebRoot\bin" xcopy /y "$(TargetPath)" "C:\Program Files\Workflow Manager\1.0\Workflow\Artifacts" copy /y $(ProjectDir)AllowedTypes.xml "C:\Program Files\Workflow Manager\1.0\Workflow\WFWebRoot\bin" copy /y $(ProjectDir)AllowedTypes.xml "C:\Program Files\Workflow Manager\1.0\Workflow\Artifacts" %systemroot%\system32\inetsrv\appcmd start apppool /apppool.name:"WorkflowMgmtPool" net start "Workflow Manager Backend"

Execution output :

1>------ Rebuild All started: Project: SharedActivities, Configuration: Debug Any CPU ------
1>  SharedActivities -> D:\Dev\Prototypes\WorkflowTest\SharedActivities\bin\Debug\SharedActivities.dll
1>  The Workflow Manager Backend service is stopping.......
1>  The Workflow Manager Backend service was stopped successfully.
1>  
1>  "WorkflowMgmtPool" successfully stopped
1>  D:\Dev\Prototypes\WorkflowTest\SharedActivities\bin\Debug\SharedActivities.dll
1>  1 File(s) copied
1>  D:\Dev\Prototypes\WorkflowTest\SharedActivities\bin\Debug\SharedActivities.dll
1>  1 File(s) copied
1>          1 file(s) copied.
1>          1 file(s) copied.
1>  "WorkflowMgmtPool" successfully started.
1>  The Workflow Manager Backend service is starting.
1>  The Workflow Manager Backend service was started successfully.
1>  
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

The assembly containing the custom activity is loaded into the Workflow host process.

I've configured my machine (development) to allow unsafe types.

Process Explorer/Powershell output

I've also uploaded my project so you can verify the implementation.

Thanks in advance, Adam

New Workflow Manager can replace K2 workflow product?

$
0
0

Hi,

Workflow manager 1.0 can replace K2 workflow? Can some one share what are the capabilities that K2 offers is already available as part of new workflow manager.

Thanks a lot in advance

Parag

Work flow manager 1.0 training course

$
0
0

Hi everybody,

could you suggest me a workflow manager 1.0 training path with courses, presentations and tutorials

Kind regards,

Samuele

Workflow in sharepoint 2013

$
0
0

Hi

We are trying to install workflow on the same SharePoint 2013 farm .we are getting the following issue.we have tried the non -admin account for set up the workflow azure service and still facing the issue .we have installed march PU. workflow is getting cancelled with the below error

RequestorId: 3174fb11-4aa0-ee8b-8efb-92f98422b0a6. Details: System.ApplicationException: HTTP 401 {"error_description":"Invalid JWT token. Could not resolve issuer token."} {"x-ms-diagnostics":["3000006;reason=\"Token contains invalid signature.\";category=\"invalid_client\""],"SPRequestGuid":["3174fb11-4aa0-ee8b-8efb-92f98422b0a6"],"request-id":["3174fb11-4aa0-ee8b-8efb-92f98422b0a6"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"SPRequestDuration":["5"],"SPIisLatency":["1"],"Server":["Microsoft-IIS\/7.5"],"WWW-Authenticate":["Bearer realm=\"092fd493-1a18-4397-8326-37d135967e1c\",client_id=\"00000003-0000-0ff1-ce00-000000000000\",trusted_issuers=\"00000005-0000-0000-c000-000000000000@*,00000003-0000-0ff1-ce00-000000000000@092fd493-1a18-4397-8326-37d135967e1c\"","NTLM"],"X-Powered-By":["ASP.NET"],"MicrosoftSharePointTeamServices":["15.0.0.4420"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1; RequireReadOnly"],"Date":["Sun, 02 Jun 2013 18:31:33 GMT"]} at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)


Girish


Start Worflow from url

$
0
0

Hi,

Exist a way to start a workflow in workflow manager 1.0 from browser url?

Viewing all 897 articles
Browse latest View live


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