Workflow Manager | Use of Subscribe Activity
Hi
I am new to workflow manager and exploring the use of pub/sub acitivities. What I have understood is to "Receive Notification" activity is some what similar to "Receive and Send Response" activity WF4.5. However, I did not understand
the use of "Subscribe" activity. I have downloaded, pub/sub sample activities from MSDN Using Pub/Sub Activities.
In this sample "Subscribe" activities has been used in "OrderTally.xaml" but not in "ProcessOrder.xaml". Can anyone please explain when to use "Subscribe" activity? Do we always have to use Subscribe with Receive
Notification activity?
Regards,
RK
Radhakrishna
>Plz let me know the use of lo_portal_manager->SUBSCRIBE_EVENT...and give some solution for my problem.
This method initializes the Portal Eventing framework and subscribes this applciation to listen for a particular portal event.
So first question - is your application running in the portal and is it still part of the portal page with the iView that produces this event. Are all the applications in iViews in this page running in the same domain - otherwise portal eventing fails becuase of cross site scripting security restrictions.
Similar Messages
-
Install workflow manager using DSC powershell
Hi,
i am trying to install workflow manager using DSC powershell.
I am using WebpiCmd.exe to install it.
Below is the DSC powershell script
configuration C_WFMgr
Node $AllNodes.NodeName
Script WF_Install
GetScript = { @{ Name = "WF_Install" } }
TestScript = {
$false
SetScript =
$currentPrincipal = New-Object Security.Principal.WindowsPrincipal( [Security.Principal.WindowsIdentity]::GetCurrent() )
if ($currentPrincipal.IsInRole( [Security.Principal.WindowsBuiltInRole]::Administrator ) -eq $false) {
(get-host).UI.RawUI.Backgroundcolor="DarkRed"
write-Verbose "Warning: PowerShell is not running as an Administrator.`n"
exit
else
#set-executionpolicy "Execution user account"
write-Verbose $currentPrincipal.Identity.Name
write-Verbose "Warning: PowerShell is running as an Administrator.`n"
Write-Verbose "Workflow Manager installation started.."
$cmd = "& 'C:\WorkflowManagerFiles\bin\WebpiCmd.exe' /Install /Products:WorkflowManager /XML:c:/WorkflowManagerFiles/feeds/latest/webproductlist.xml /log:C:/Users/backup/t1.txt
/AcceptEula"
Invoke-Expression $cmd | Write-Verbose
Below is the error message
Started downloading products...
Started installing Products...
Started installing: 'Execute ASP.NET IIS Registration tool
Started downloading: 'Workflow Manager Client 1.0 Refresh'
Downloaded: 'Workflow Manager Client 1.0 Refresh'
Started downloading: 'Service Bus 1.0'
Downloaded: 'Service Bus 1.0'
Started downloading: 'Workflow Manager 1.0'
Downloaded: 'Workflow Manager 1.0'
Install completed (Success): 'Execute ASP.NET IIS Registra
tion tool'
Execute ASP.NET IIS Registration tool : Installed
Started installing: 'Workflow Manager Client 1.0 Refresh'
Install completed (Failure): 'Workflow Manager Client 1.0
Refresh'
WorkflowClient : Failed.
Error opening installation log file. Verify that the speci
fied log file location exists and is writable.
Started installing: 'Service Bus 1.0'
Install completed (Failure): 'Service Bus 1.0'
ServiceBus : Failed.
Error opening installation log file. Verify that the speci
fied log file location exists and is writable.
DependencyFailed: Workflow Manager 1.0
Verifying successful installation...
Execute ASP.NET IIS Registration tool True
Workflow Manager Client 1.0 Refresh False
Log Location: C:\Windows\system32\config\systemprofile
\AppData\Local\Microsoft\Web Platform Installer\logs\install\2015-01-02T14.58.57\WorkflowManagerClient_x64.txt
Service Bus 1.0 False
Log Location: C:\Windows\system32\config\systemprofile
\AppData\Local\Microsoft\Web Platform Installer\logs\install\2015-01-02T14.58.57\Service_Bus.txt
Workflow Manager 1.0 False
Install of Products: FAILUREI am pretty sure that DSC requires WFM. If I am right then WFM is in use and cannot be replaced unless you specify another logfile location. Look at the DSC and see how to specify a new log location that can be used for the install.
If the MSU is built correctly then you will require a reboot to update the install.
Try just doing WFM alone until you work it out.
I also recommend posting in the Management forum for any other issues that might be known.
Management
DSC is a work in progress so many things have to be worked out as you need them. Be sure to get the latest kits. I think we are at Wave 9 now.
PowerShell
DSC Resource Kit Wave 9
¯\_(ツ)_/¯ -
Install workflow manager using DSC declarative configuration
I am trying to install workflow manager using below DSC powershell script.
Configuration
C_Pkg_WFInstall
Node $AllNodes.NodeName
Package C_Pkg_WFInstall
Ensure = "Present"
Name = "Workflow Manager Client 1.0"
Path = "C:\WorkflowManagerFiles\bin\WebpiCmd.exe"
Arguments =
"/Install /Products:'Workflow Manager Client 1.0' /XML:'c:/WorkflowManagerFiles/feeds/latest/webproductlist.xml' /log:'c:/users/backup/workflow.txt' /AcceptEula"
ProductId =
"A5ABAF5F-B5B6-44B3-B69F-2E13DC60FC9F"
$ConfigData
= @{
AllNodes = @(
NodeName =
"CHN-AERO-VM28";
C_Pkg_WFInstall
-ConfigurationData
$ConfigData –Verbose
Start-DscConfiguration
-Wait -force
-Verbose -Path
.\C_Pkg_WFInstall
And i get the below error
PowerShell provider MSFT_PackageResource
failed to execute Set-TargetResource functionality with error message: The return code -1 was not expected. Configuration is likely not
correct
+ CategoryInfo
: InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : ProviderOperationExecutionFailure
But while installing from command prompt window i could install the below list successfully
IdentifyingNumber : {A5ABAF5F-B5B6-44B3-B69F-2E13DC60FC9F}
Name : Workflow Manager Client 1.0
IdentifyingNumber : {04A7199E-565D-4654-88A3-80A9A7BADDD9}
Name : Workflow Manager 1.0
IdentifyingNumber : {F438C511-5A64-433E-97EC-5E5343DA670A}
Name : Service Bus 1.0
I tried with all the above 3 product ids, its not working.Thanks for your reply.
I get the below error in eventviewer - Applications and Services Log - Windows Powershell
The description for Event ID 600 from source PowerShell cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the
local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
Alias
Started
ProviderName=Alias
NewProviderState=Started
SequenceNumber=1
HostName=Default Host
HostVersion=4.0
HostId=979b4813-7bd4-47d7-9729-4166ae91e9c1
The handle is invalid
Log Name : Windows PowerShell
Source : PowerShell (PowerShell)
Event ID : 600
Task Category : Provider Lifecycle
I got the same error message in subsequent logs but the providername is different as below
ProviderName=Environment
ProviderName=FileSystem
ProviderName=Function
ProviderName=Registry
ProviderName=Variable
The description for Event ID 400 from source PowerShell cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local
computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
Available
None
NewEngineState=Available
PreviousEngineState=None
SequenceNumber=13
HostName=Default Host
HostVersion=4.0
HostId=979b4813-7bd4-47d7-9729-4166ae91e9c1
EngineVersion=4.0
RunspaceId=6374c946-1219-4870-bc51-528faae9671d
Log Name : Windows PowerShell
Source : PowerShell (PowerShell)
Event ID : 400
Task Category : Engine Lifecycle
But i believe the problem is with either the product name or product id, since it installs three products on one invoke, i dont know which product id we need to give. i tried with all the above 3 product ids. Its not working.
I think by default DSC powershell runs under system account "NT AUTHORITY\SYSTEM". -
Workflow Manager - Add-WFHost fails with "Could not load file" error
Hello! I'm not sure that its Sharepoint related topic but..
I'm trying to install Workflow Manager using Powershell. I'm successfully created ServiceBus farm, create namespace, Add-SBhost etc. Also, i created WF Farm using New-WFFarm.
Now i'm got SB Configuration and try to add my first host to WF Farm using standard cmdlets:
$SBClientConfiguration = Get-SBClientConfiguration -Namespaces 'WorkflowDefaultNamespace'
(it successfuly gives me some endpoint definitions)
Add-WFHost -WFFarmDBConnectionString $WFFarmDBConStr -RunAsPassword $ServiceAccountPassword -EnableFirewallRules $true -SBClientConfiguration $SBClientConfiguration -CertificateAutoGenerationKey $CertificateAutoGenerationKey
where
$WFFarmDBConStr is typical connection string, i also used this to Get-WFFarm with no errors.
$ServiceAccountPassword and $CertificateAutoGenerationKey are secure strings.
But trouble appears with SBClientConfiguration, cmdlet returns error:
"Cannot validate argument on parameter 'SBClientConiguration'. Could not load file or assebly 'Microsoft.ServiceBus, Version=1.8.0.0, Culture=neutral, PublicKeyToken=<SomeTokenSymbolsHere> or one of its dependencies. The system cannot
find the file specified."
What file it tries to load? I've installed all WorkflowManager binaries with
webpicmd /Install /Product:WorkflowManagerRefresh key and don't know, what can be cause.Hi lehus,
According to your description, my understanding is that you got an error when you configured Workflow Manager using PowerShell.
Please try to use the following PowerShell command, compare the result:
Add-WFHost -WFFarmDBConnectionString $WFFarmDBConStr -RunAsPassword $ServiceAccountPassword -EnableFirewallRules $true -SBClientConfiguration $SBClientConfiguration
–EnableHttpPort -CertificateAutoGenerationKey $CertificateAutoGenerationKey
-Verbose
Check your process as:
http://lennytech.wordpress.com/2013/06/02/configuring-workflow-manager-1-0-using-powershell/
In addition, whether you could install and configure Workflow Manager with Workflow Manager Configuration Wizard. Please have a try as:
http://prabathf.blogspot.com/2013/02/installing-and-configuring-workflow-for.html
I hope this helps.
Thanks,
Wendy
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Wendy Li
TechNet Community Support -
Error when publishing WF containing custom code activity to workflow manager 1.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
ahorseHi
We had to update following in assemblyinfo.cs file.
assembly: XmlnsDefinition("wf://workflow.windows.net/$Current/$Activities", "YourProjectNamespace")]
to
assembly: XmlnsDefinition("wf://{WorkflowManagerServerName}:12291/$Current/$Activities", "YourProjectNamespace")]for e.g.assembly: XmlnsDefinition("wf://workflowmanagerserver:12291/$Current/$Activities", "YourProjectNamespace")]
Only then custom code activity started working. However, this means, when we want to deploy in other environment with different URL, we need to re-build the assembly.
Is there any way by which we have this configurable?
Regards,
RK
Radhakrishna -
Workflow manager create activity at runtime
Hi,
I am trying to create Workflow manager 1.0 activity at runtime. Basically I am trying to create Xaml for the workflow through code. When I try to create "BuildMatchAllFilter"
activity, I need to set "Matches" parameter, but in this class is set to readonly.
Sequence seq = new Sequence
Activities ={
new BuildMatchAllFilter{
Matches = new Dictionary<string, InArgument>()
{"name", new InArgument<string>("instanceId")}
Please point me to the resource on creating workflow manager Xaml through C#.
Thanks in advance.Hi,
Please refer to the following code
client.PublishWorkflow(wf.Name, wf.Name,
new MatchAllSubscriptionFilter()
Matches =
{"RunWorkflow", “Ordered”}
For more information, please refer to the document:
http://developers.de/blogs/damir_dobric/archive/2013/06/11/ordered-workflow-activation-in-sharepoint-workflow-manager.aspx
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
hello all...is there a way to activate(on startup) /deactivate(on logoff) CS6 Suite using a script, Active Directory Login Script or central Management Tool?
The long answer is: No. this is Adobe's secret sauce and you cannot manage it using other tools.
Mylenium -
Activating "Workflow can use app permission"
HI,
I am trying to activate the "Workflow can use app Permissions".
I am getting the error "System.ServiceModel.Security.SecurityAccessDeniedException: Access is denied. "
The user is part of the SiteCollectionAdministrators.
What other permissions are required to activate the feature?
ThanksNo I don't think you have to configure the App Domain to use workflows.
Do you also have a User Profile Service (preferably with User Profile Sync) up and running? 2013 workflows (like Apps) use properties in the User Profile to pass identity back and forth. If you are going to run using App Permissions the workflow
service is still going to want to be able to identify the initiator of the workflow. For that you need User Profiles.
Also, is your user just a Site Collection Admin or are they an actual member of the Site Owner's group? Its not clear from the documentation whether activating that feature is a permission dependency or an actual group membership dependency.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
Workflow Manager Configuration Wizard is not working with USER ID
Hello everyone,
I
have successfully installed Workflow Manager 1.0 (and its prerequisites) on my Server 2008 R2 SP1 machine that is hosting Sharepoint 2013. I attempt to go into the Workflow Manager Configuration. That comes up and asks me if I want to Create
new farm with Default Settings, New Farm with custom settings, or existing farm. I've tried both Default settings AND Custom settings.
When
the configuration wizard comes up, I attempt to fill out the necessary information. It seems to connect to the SQL server without a problem. I only run into an issue when setting the USER ID. The program totally freezes up and force closes.
I
have verified that the USERID is in the correct format and tried multiple different formats. The problem is that the moment I move the cursor from the USERID field to ANY other field, the program force closes. I'm not able to hit submit, I'm not
able to change any other options. The moment USERID is manipulated or the cursor LEAVES the USERID field, the program force closes. It won't even allow me to put in a password before it force closes.
Customer
domain is running in Windows Server 2003 Enterprise Edittion SP2.
Any
ideas?
I have installed also cumulative update to avoid crash but still I am getting force to close workflow wizard. I have used users which are already added in administrator groups.
We are using 3 tier architecture for Sharepoint 2013.
Also we have made Alias of Domain controller. Eg:-Alias is "labs" for domain "xyz.ab.com".
And we are using labs\spadmin and labs\spservice for Workflow Manager Configuration 1.0
Is there any issue with Domain Alias "labs" as Workflow gives error "Specified RunAs account is invalid" or "Force close the application".
I
have copied the errors from event viewer below:
APPLICATION
ERROR
Faulting
application name: Microsoft.Workflow.Deployment.ConfigWizard.exe, version: 1.0.20922.0, time stamp: 0x505e1b30
Faulting module name: KERNELBASE.dll, version: 6.1.7601.17965,
time stamp: 0x506dcae6
Exception code: 0xe0434352
Fault offset: 0x000000000000bccd
Faulting process id: 0x17f8
Faulting application start time: 0x01cddee198ece72e
Faulting application path: C:\Program Files\Workflow Manager\1.0\Microsoft.Workflow.Deployment.ConfigWizard.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: 22ab8b69-4ad5-11e2-af8f-005056965915
.NET
Runtime Error
Application: Microsoft.Workflow.Deployment.ConfigWizard.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.COMException
Stack:
at System.DirectoryServices.AccountManagement.PrincipalContext.DoLDAPDirectoryInitNoContainer()
at System.DirectoryServices.AccountManagement.PrincipalContext.DoDomainInit()
at System.DirectoryServices.AccountManagement.PrincipalContext.Initialize()
at System.DirectoryServices.AccountManagement.PrincipalContext.get_QueryCtx()
at System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithTypeHelper(System.DirectoryServices.AccountManagement.PrincipalContext, System.Type, System.Nullable`1<System.DirectoryServices.AccountManagement.IdentityType>, System.String,
System.DateTime)
at System.DirectoryServices.AccountManagement.UserPrincipal.FindByIdentity(System.DirectoryServices.AccountManagement.PrincipalContext, System.String)
at Microsoft.ServiceBus.Commands.Common.SecurityHelper.IsUserValid(System.DirectoryServices.AccountManagement.PrincipalContext, System.String)
at Microsoft.ServiceBus.Commands.Common.SecurityHelper.IsDomainUserValid(System.String, System.String)
at Microsoft.ServiceBus.Commands.Common.ValidateUserAttribute.Validate(System.String)
at Microsoft.Deployment.ConfigWizard.UICommon.AccountDetailsViewModel.ValidateDomainUser()
at Microsoft.Deployment.ConfigWizard.UICommon.AccountDetailsControl.UserIdTextBox_LostFocus(System.Object, System.Windows.RoutedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
at System.Windows.Controls.Primitives.TextBoxBase.OnLostFocus(System.Windows.RoutedEventArgs)
at System.Windows.UIElement.IsFocused_Changed(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
at System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
at System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
at System.Windows.Controls.TextBox.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
at System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs)
at System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata, System.Windows.EffectiveValueEntry, System.Windows.EffectiveValueEntry ByRef, Boolean, Boolean,
System.Windows.OperationType)
at System.Windows.DependencyObject.ClearValueCommon(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata)
at System.Windows.DependencyObject.ClearValue(System.Windows.DependencyPropertyKey)
at System.Windows.Input.FocusManager.OnFocusedElementChanged(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
at System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
at System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
at System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs)
at System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata, System.Windows.EffectiveValueEntry, System.Windows.EffectiveValueEntry ByRef, Boolean, Boolean,
System.Windows.OperationType)
at System.Windows.DependencyObject.SetValueCommon(System.Windows.DependencyProperty, System.Object, System.Windows.PropertyMetadata, Boolean, Boolean, System.Windows.OperationType, Boolean)
at System.Windows.DependencyObject.SetValue(System.Windows.DependencyProperty, System.Object)
at System.Windows.FrameworkElement.OnGotKeyboardFocus(System.Object, System.Windows.Input.KeyboardFocusChangedEventArgs)
at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
at System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.KeyboardDevice.ChangeFocus(System.Windows.DependencyObject, Int32)
at System.Windows.Input.KeyboardDevice.Focus(System.Windows.DependencyObject, Boolean, Boolean, Boolean)
at System.Windows.Input.KeyboardDevice.Focus(System.Windows.IInputElement)
at System.Windows.UIElement.Focus()
at System.Windows.Input.KeyboardNavigation.Navigate(System.Windows.DependencyObject, System.Windows.Input.TraversalRequest, System.Windows.Input.ModifierKeys, System.Windows.DependencyObject)
at System.Windows.Input.KeyboardNavigation.Navigate(System.Windows.DependencyObject, System.Windows.Input.Key, System.Windows.Input.ModifierKeys)
at System.Windows.Input.KeyboardNavigation.ProcessInput(System.Windows.Input.InputEventArgs)
at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(System.Windows.Input.ProcessInputEventHandler, System.Windows.Input.ProcessInputEventArgs)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)
at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawKeyboardActions, Int32, Boolean, Boolean, Int32)
at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(System.Windows.Interop.MSG ByRef, Boolean ByRef)
at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(System.Windows.Interop.MSG ByRef, System.Windows.Input.ModifierKeys)
at System.Windows.Interop.HwndSource.OnPreprocessMessage(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at System.Windows.Threading.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority, System.Delegate, System.Object)
at System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(System.Windows.Interop.MSG ByRef, Boolean ByRef)
at System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(System.Windows.Interop.MSG ByRef)
at System.Windows.Threading.Dispatcher.TranslateAndDispatchMessage(System.Windows.Interop.MSG ByRef)
at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
at System.Windows.Application.RunInternal(System.Windows.Window)
at System.Windows.Application.Run()
at Microsoft.Workflow.Deployment.ConfigWizard.App.Main()
Thanks
Hansraj RathvaCheck to ensure that the user you're running the wizard as has access to the Users and Computers folders in Active Directory. I had trouble with the "specified RunAs account is invalid" message, and when I granted the AD rights, I was able to proceed.
The issue would be that the user executing the wizard isn't able to query AD to look up the specified user. The RunAs account you're specifying is probably fine. -
Workflow manager .. certificate generation key or cert
Hello. Thanks for the time. I was wondering if I can get some enlightment on the SP 2013 workflow manager configuration. In the technet video series one of the steps is to create a certificate and use that... but in most install docs
I've found the step is skipped and set to choose an auto generate a cert with a key... like the farm passphrase. My question is really in regards to what is the difference and can we have that set for in production? or is the auto-generate only for dev
and testing?Hi,
Quote:
Under some circumstances, you must obtain and install Workflow Manager "issuer" certificates on SharePoint Server 2013. Here are the circumstances where you must install Workflow Manager certificates:
If SSL is enabled either on SharePoint Server 2013 (which is not the default) or on Workflow Manager (which is the default), AND
If SharePoint Server 2013 and Workflow Manager do not share a Certificate Authority, AND
If Workflow Manager is configured to generate self-signed certificates (which is the default).
For more information: http://technet.microsoft.com/en-us/library/jj658589(v=office.15).aspx
Here is an article about certificates in workflow manager for reference:
http://www.harbar.net/articles/wfm3.aspx
Regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] .
Rebecca Tu
TechNet Community Support -
Hi
I have SharePoint 2013 farm and installed Workflow Manager 1.0 and configured it and have been runing fine for several months. I upgraded this farm to SP 1 and then started having some issue with publish WF 2013 with task in SPD.
I re-Registered using Register-SPWorkflowService command and that fixed the problem and WorkFlow Manager running again OK. It has been couple of monthle and now I am having the problem again but with a different error on SPD
So doing what I did before, I tried to re-Registered WFM but this time getting the error below
Register-SPWorkflowService : The data or messaging layer is unavailable. Please retry
after 300 seconds.
The only possible resolution that I found is to add the -AllowOAuthHttp in my Register-SPWorkflowService cmdlet but that didnot not resolve the problem. I tried that anyway eventhough we do not allow http.
I did some checking for status and configuration and Get-SBFarmstatus showing all WFM services are running OK
I browsed to the WFM server https://servername:12290 and get the same error
- <Errorxmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Code>UnexpectedError</Code>
<Message>The data or messaging layer is unavailable. Please retry after 300
seconds.</Message>
</Error>
If anyone have advise / suggestion to resolve this issue, please share
Thanks in advance for all comments
SwanlHi Swanl,
Please refer to the article below for troubleshooting actions for workflow manager:
http://blogs.msdn.com/b/vincent_runge/archive/2014/01/07/troubleshooting-actions-for-sharepoint-2013-workflows.aspx
Moreover, activate workflow manager logs and see if there is any error message that could be help.
Regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] .
Rebecca Tu
TechNet Community Support -
Workflow Manager Suspends Workflows - "Invalid JWT token"
Hi,
I've installed Workflow Manager with the default settings described in this Technet article:
http://technet.microsoft.com/en-us/library/jj193514.aspx. Everything seems to install just fine but when I create a very simple workflow test on an "Announcements" list which simple
creates a Workflow History entry. However, the workflow immediately suspends with the following error which seems to be some kind of an authentication error. I am running the workflow logged on as a site collection administrator which is not 1. farm administrator
or 2. the service ID that I input into the Workflow Manager Configuration Wizard.I also DO have profiles installed, the user running the workflow DOES have a profile and I DO have the App Management service application installed. In addition, I rebooted the
SharePoint VM after the install
Given that Workflow Manager, Workflow Manager Client 1.0 and Service Bus 1.0 are all running on the same server as Central Administration (since I only have the one SharePoint VM) perhaps the reference to "SAMEORIGIN" in the error means something?
I've installed Workflow Manager with the same instructions on other farms in the past and not had this problem and wondering whether the June 2013 CU has introduced this error. . .
Please help!
Kathryn
RequestorId: f17eeb99-00f1-d82f-0000-000000000000.
Details: An unhandled exception occurred during the execution of the workflow instance.
Exception 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":["f17eeb99-00f1-d82f-9859-d5b160369f87"],"request-id":["f17eeb99-00f1-d82f-9859-d5b160369f87"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"SPRequestDuration":["4"],"SPIisLatency":["0"],"Server":["Microsoft-IIS\/8.0"],"WWW-Authenticate":["Bearer
realm=\"2b0ecd05-1b3e-4efd-a346-c7b309bf6fb5\",client_id=\"00000003-0000-0ff1-ce00-000000000000\",trusted_issuers=\"00000005-0000-0000-c000-000000000000@*,[email protected]09bf6fb5\"","NTLM"],"X-Powered-By":["ASP.NET"],"MicrosoftSharePointTeamServices":["15.0.0.4517"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;
RequireReadOnly"],"Date":["Sun, 25 Aug 2013 22:22:02 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)
Kathryn Birstein, Senior SharePoint ArchitectHi,
Base on the description, an unhandled exception occurred during the execution of the workflow instance.
I suggest you to use other account to test the workflow. Please make sure you are not using system account. Also please make sure User profile service is running and syncing with active directory. As I've found sometimes workflow tries to read user information
from user profile service and if the user details missing in User Profile service, the workflow might get failed. The original error is "Token Contains Invalid signature" which means either the user is system account or the user doesn't exists in user profile.
There is an article about the error message, you can refer to it:
http://steve.thelineberrys.com/following-sites-across-farms-with-sharepoint-2013-mysites/
More information:
Troubleshooting Workflow Manager 1.0 Management and Execution:
http://msdn.microsoft.com/en-us/library/windowsazure/jj193529(v=azure.10).aspx?ppud=4
Best Regards,
Linda
Li -
Facing some problem while configuring Workflow Manager 1.0.
Hi,
I am facing some problem while configuring Workflow Manager 1.0. in my farm.
Scenario is,
I have installed and configured workflow manager in my farm, it was working well with no issue. But one of team member played with AD and deleted Farm administrator's entry from AD by mistake. So suddenly workflows get affected and stopped working.
Then I added administrator entry in AD, uninstalled the Workflow Manager and installed it again. But now while configuring workflow manager I am facing some issues that "Failure to adding user in BUILTIN\Administrative group. Please add it manually"
And after sometime it shows another error message that, "Starting service Service Bus Massage broken failed: Timed out has expired, the operation has not been completed"
If I go for services then "Service bus Message broker" service is not running properly (Its status is just showing "Starting") and don't starts.
I have also added the user in BUILTIN\Administrator, IIS_IUSER, WSS_WPG group of the machine from computer manager - user and groups.
Also given permission to databases, and assign role of sysadmin and dbcreator to user
I also tried following steps
1) Stop all services associated to workflows
2) Uninstalled workflow manager
3) Deleted all databases associated with workflows
4) Installed workflow manager and tried to configure.
But showing same error.
If I use another SharePoint server farm to configure workflows, there I am not getting first error of adding user to BUILTIN\Administrator group. but second error remains same.
We having SQL server and Active directory at another machine and FARM at another machine, if I use local admin for configuration of the workflows (as local admin can start any services) but entry of local admin is not Active directory so can not assign SQL's
sysadmin, and dbcreator role to local admin.
I am attaching snapshot of error for better understanding.
Your help will be very precious to me.
Thanks,
Rajesh
Rajesh AgravatRajesh
Check to see what the service accounts are being used for these Workflow Manager 1.0 services:
Service Bus Message Broker
Service Bus Gateway
Workflow Manager Backend
All of these should be running and your workflow service account should be running all of these. If any are still configured under the old service account, they'll need to be updated. Next, check to see what service accounts have access to the
Workflow Manager 1.0 databases:
SbGatewayDatabase
SbManagement
SbMessageContainer
WFInstanceManagement
WFManagement
WFResourceManagement
The Workflow Manager service account should be mapped as the DBO for all of these. if any are still configured under the old service account, they'll need to be updated.
Given the complete loss of the original workflow service account, and the resultant impact on security configuration throughout the workflow farm, I would recommend performing a re-installation. Do it thus:
Launch Workflow Manager Configuration Wizard
Select the Leave Workflow Manager Farm
Stop all workflow services (see above list)
Repeat steps 1-3 for each instance of Workflow Manager 1.0 Server installed.
Delete all Workflow Manager databases (see above list).
reboot.
Start new installation. -
Workflow Manager Server certificate expired, how to renew it?
Hello,
We use Sharepoint 2013 and WorkFlow Manager 1.0. The certificate for the WorkFlow Manager farm has expired, and now I am not able to publish new workflows. The WorkFlow Manager configuration wizard does not open, and it logs an error in the windows' event logs
related to certificates. Now I can see in the certificate snap-in that the certificate is expired.
I do not know how to renew it, so I tried to configure a new certificate following the steps described in this link (http://www.harbar.net/articles/wfm3.aspx), but when I run Set-SBCertificate -FarmCertificateThumbprint $cert.Thumbprint -EncryptionCertificateThumbprint $cert.Thumbprint
in PowerShell I receive the next error:
I need to update-renew the expired certificate or configure a new one to solve this as soon as possible.
What could I do?
Melvintt
MCTS, Windows Server 2008 R2: Network Infrastructure
MCTS, Windows Server 2008 R2: Active Directory, ConfiguringTry re install it
https://social.technet.microsoft.com/Forums/windowsserver/en-US/bfd3c92b-1a05-4cc5-9b90-8c5c8877dd2c/changing-expired-certificate-for-sharepoint-2013-workflow-manager?forum=sharepointadmin
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/MS-SharePoint/Q_28226363.html
If this helped you resolve your issue, please mark it Answered. You can reach me through http://itfreesupport.com/
Reinstall the entire farm again for an expired certificate does not seem to be a good workaround, but I think I have to do it. What is the process to remove and reinstall the Workflow Manager?
Melvintt
MCTS, Windows Server 2008 R2: Network Infrastructure
MCTS, Windows Server 2008 R2: Active Directory, Configuring -
Errors when installing Workflow Manager
I am trying to install WF Manager, but with no success.
On the same machine, I have installed SQL Server 2014, SharePoint 2013 with SP1 and WF Manager.
I installed WF manager (account that runs WF manager is sp farm admin) and registered with command
Register-SPWorkflowService -SPSite "http://dev/" -WorkflowHostUri "http://localhost:12291" -AllowOAuthHttp
In Central Admin, when I click on "Workflow Service Application Proxy ", I get message that WF is connected. Backend service is running. In SP Designer, I can create 2013 Workflow and publish it, but that WF does not work, it break instantly.
In SP logs, I get this error when I try to activate feature that contains workflow (solution that contains WF created in Visual Studio):
http://radioaddictsanonymous.com/view/635399286724222582163282/error-while-deploying-sp2013-workflow-from-vs2012-nullreferenceexception
So, I deleted WF manager and service bus and reinstalled it, but with no luck. Now backedn service is not working, and I can't start it, getting this error:
"The Workflow Manager Backend service could not be started A system error has occurred System error 1067 has occurred"
In Event Viewer I have this error:
https://social.technet.microsoft.com/Forums/office/en-US/de554aed-c9ae-4725-82fa-251446bacc20/workflow-manager-10-sharepoint-2013-the-process-was-terminated-due-to-an-unhandled-exception?forum=sharepointgeneral
I have tried to reinstall everything couple of times, but it doesn't work. I think that I am not deleting everything related to workflow before reinstallation. How can I unregister already registered WF service and reinstall everything correctly??Hi,I had already done disableloopbackcheck and it did not matter.No problem with creating scopes (using powershell) but pairing fails anyway.Here is the config from a local explorer connection to the HTTPS port:(And following it, you may see the result of
a scope enumerator script)
<?xml version="1.0"?>
<ScopeInfo xmlns="http://schemas.microsoft.com/workflow/2012/xaml/activities" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ChildScopeCount>3</ChildScopeCount>
<DefaultWorkflowConfiguration/>
<Description>For / sample only</Description>
<LastModified>2013-11-08T21:22:00.967</LastModified>
<LastRevised>2013-11-08T00:04:31.88</LastRevised>
<Path>/</Path>
<SecurityConfigurations>
<ScopedSecurityConfiguration i:type="WindowsSecurityConfiguration">
<Name>Microsoft.Workflow.Management.Security.WindowsSecurityConfiguration</Name>
<WorkflowAdminGroupName>altemis\WorkflowAdmins</WorkflowAdminGroupName>
</ScopedSecurityConfiguration>
</SecurityConfigurations><
Status>Active</Status>
</ScopeInfo>
PS C:\Shared> C:\Shared\WF Script-Enumaret Scopes.ps1
Name:
Path: /
Status: Active
User Comments: For / sample only
Parent: None
Children: 3
Exception calling "GetChildScopes" with "0" argument(s): "Scope '/$ChildScopes' was not found. HTTP headers received from
the server - ActivityId: 616224db-0321-450a-92ef-f03384c008a2. NodeId: ALTEMIS-SVR02. Scope: /$ChildScopes. Client
ActivityId : 649dba85-dc89-0002-d9bf-9d6489dcce01."
At C:\Shared\WF Script-Enumaret Scopes.ps1:21 char:9
+ $manager.GetChildScopes() | % { WriteScopeInfo $scopeUri $_.Path $scope. ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ScopeNotFoundException
Muharrem
Maybe you are looking for
-
Page re appearing after deletion of history
Hi, if I look at a **** site on my ipad then delete all data, cockies, history etc then put the ipad away for a day come back to it the next day, open up safari then bam, a screen shot of that **** page for a split second then it goes to the safari h
-
Passing Jbytearray to unsigned char
Hello Group: I am newer in JNI and I have a little problem: I have a native method with the follow signature: public native int enroll(byte[] template); now I have it type data in C: typedef unsigned char FPIMAGE; /* fp image data object */ Implement
-
Can I use "SerialDemo" or "BlackBox" to read data from hardware device?
Hi All, I want read data comm port which is been connected with hardware device(weight reader).Can I use "SerialDemo" or "BlackBox" sample programs provided with javax.comm package? If yes do I need to do any modification in program as per my hardwar
-
Transportable Tablespace parallism
Hi, We are trying to move tablespaces from one database to another database using transportable tablespace feature. We are using parallism option of the rman convert tablespace command. Is there any why to find out how much time each command will tak
-
Error 404 when attempting to download purchased software
I am attempting to download some Adobe software I purchased. In Firefox, when I click the download link that says "Akami download manager" or "alternate download method" the page loads with the following error: HTTP ERROR: 404 /support/downloads/dlm/