1,421 questions
0
votes
0
answers
47
views
How can I programmatically suspend a running WorkflowApplication in the middle of execution, not only when idle?
I’m working with a .NET Workflow Foundation (CoreWF) based engine that runs workflows with multiple steps (custom NativeActivity implementations). Each step executes synchronously and immediately ...
-1
votes
2
answers
97
views
How to override default colors in dll library
I am using Windows workflow foundation rehost library in my application and i am trying to override default colors but it is modifying, i tried below code in my application but it is not working.
...
0
votes
1
answer
280
views
Workflow foundation and sdk-style project
I'm facing an issue with Workflow Foundation's designer and SDK-style csproj in Visual Studio 2022 17.9.2.
Assume we have 3 .net 4.8 working projects
ActivityLibrary2: contains Activity2.xaml with a ...
0
votes
1
answer
218
views
How to reference an audio resource from C# in Windows Forms?
I have a .resx with various sounds like "pulse". The problem is when I reference it in the code:
using (SoundPlayer soundPlayer = new SoundPlayer((Properties.Resources.correct_config))
{
...
-1
votes
2
answers
74
views
C# How to duplicate line in text file (.txt) when button is clicked?
I've a winform application and I want to ducplicate a line in a text file (.txt) when I click a button.
eg :
Hello world
and I want to have something like:
Hello world
Hello world
when I click a ...
0
votes
1
answer
312
views
How to add arguments to a workflow properly?
I am trying to add a simple argument to one of my activities which is OpenBrowser in a sequence, afterwards I create a simple workflow that has owns that sequence, then I run it.
Although the ...
0
votes
1
answer
147
views
Custom Activites in Workflow Foundation dynamic Argument Validation
I have build a custom activity for Workflow Foundation which works exactly as exprected and I'mno implementing some validation on the arguments.
I have 4 arguments, the first 2 File_Location and ...
0
votes
0
answers
18
views
How to store the values of the size of window, margin and textbox C# WF
It is necessary that after closing the program, it retains the size of the window, the values of the CheckBox and what was entered in the TextBox.Can you write me a code?
namespace WindowsFormsApp8
{...
2
votes
2
answers
8k
views
Windows Workflow Foundation for .net Core
How to use MS workflow foundation in .net Core 5.0.
Is there a MS standard implementation for Workflows in .net core 5?
0
votes
0
answers
39
views
How change thread (priority) for WorkflowApplication
The WorkflowApplication.Run() method will always spin up a new thread to run the workflow on. How can this thread be influenced? Change the priority or completely replace the thread with your own?
0
votes
0
answers
375
views
How to Mock the ActivityContext Class
I wanted to mock the System.Activities.NativeActivityContext & System.Activities.ActivityContext for my unit test.
i.e.
using Moq;
using Autofac.Extras.Moq;
var executionContext = new Mock<...
1
vote
0
answers
508
views
PowerShell Workflow getting suspended on its own while it is run via scheduled job in task scheduler
I have a created a script using PSworkflow which collects VM/license/network/mpp etc details from 13 VCenters and output all details in csv files.
This script running fine when I manually run it in ...
0
votes
1
answer
40
views
Windows work flow persistance iscomplete is not to set to 1, is always 0
I have created a sample numberguess work flow using this article, in .net 4.6.1 and enabled persistence.
When the sample is run, I can see a work flow instance is created in the below table
[System....
15
votes
0
answers
4k
views
Workflow-Core versus ElsaCore
I am looking for some alternatives to MS Flow/Power-Automate to save money. How are these two solutions different? Advantages of each? Downsides?
https://elsa-workflows.github.io/elsa-core/
and
...
0
votes
1
answer
244
views
Workflow Foundation - Activity: Is it possible to cast a OutArgument?
I have a problem with the OutArgument of an activity. Here is a simplified code example:
public class Animal
{
}
public class Dog : Animal
{
}
public class ...
0
votes
1
answer
567
views
Windows workflow is not detecting runnable instances after calling Delay activity
Since of last week we have a problem in our production env. Everytime a workflow instance is delayed, after calling the Delay activity, it is never resumed by WF.
We are running a WF service hosted ...
2
votes
0
answers
352
views
Creating the TypeArgument textbox in custom activities
I recently started using UiPath for creating automatic processes at work. I've tried my hand at creating custom activities.
One of these activities are called AddToDictionary. It's generic because ...
1
vote
0
answers
415
views
Why are Workflow Exceptions are not caught when thrown from Cancel?
I am using Microsoft Windows Workflow Foundation in my Windows based application.
I have subscribed to OnUnhandledException on workflow for any unexpected exception.
The OnHandledException callback ...
2
votes
1
answer
1k
views
No Workflow/WCF templates in Visual Studio Community Edition 2019
I am using Visual Studio Community Edition 2019.
When creating a new project I did not see any WorkFlow templates.
Clicked to "install more tools and features" at the bottom of the screen as people ...
0
votes
0
answers
143
views
What causes Windows Workflow to end up throwing "Could not load file or assembly"?
I have a few workflows running, and after about ~8 months to a year, I start getting:
Message: Could not load file or assembly 'file:///C:\Windows\TEMP\4s4yy32u\4s4yy32u.dll' or one of its ...
2
votes
1
answer
3k
views
Migrating Workflow Foundation to Visual Studio 2019
I am in the process of migrating to VS 2019 but have an issue when opening a solution that contains a Workflow Foundation project.
On loading a Visual Studio 2019 the project will not load and just ...
1
vote
0
answers
169
views
How to modify partially and build .net-framework source-code provided by microsoft and use alongside existing project
Microsoft has open sourced part of it's .net framework here, i'm using window workflow foundation and need to expand it and add some properties to this sealed class (FlowDecision).
How i can build ...
0
votes
1
answer
300
views
Filter XML with contains syntax
I have a XML output and I need to find the TemplateID where Name contains "Request Modification"
this gives me all 3 Names. /defaultNS:WorkflowTemplates/defaultNS:WorkflowTemplate/@Name
this ...
0
votes
1
answer
88
views
How to pass input to condition (e.g. "If") while iterating a workflow sequence in Rehosted designer
My sequence can have custom activities and conditions.
Some activities are condition based i.e. will execute if the condition is satisfied with the given input from previous activity.
I need an way to ...
1
vote
1
answer
240
views
Is Code generate activity diagrams based on Windows Workflow Foundation a good idea?
I graphically draw Activity Diagrams for (non IT) management . Knowing that these will finally result in code, as a programmer, I would prefer to write the code directly and generate the diagrams ...