workflow-foundation

Usage of Microsoft .NET Source Code in my own program [closed]

帅比萌擦擦* 提交于 2020-01-15 05:42:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Am I allowed to use the (modify) sources of http://referencesource.microsoft.com/ directly in my program or are the files for debugging purposes only? There is a license file but English only and English isn't my native language so I don't really get it from the license file. http://referencesource.microsoft.com

Can I create CRM workflows using .NET 4?

做~自己de王妃 提交于 2020-01-14 02:32:34
问题 I would like to take advantage of .NET4 for Dynamics CRM4.0. It is great for most things but I get a file not found exception when trying to register a workflow. It can't find System.Workflow.ComponentModel 4.0.0.0. Is there a workaround? 回答1: CRM 4 is built under .NET 2.0/3.0. So, the only way to work with .NET 4.0 and CRM 4.0 is to isolate them in their own process. CRM 5.0 will use .NET 4.0, so you will be able to use it with the next version of CRM. With some tweeks you should be able to

Loading persisted workflow after workflowdefinition has changed in WF4

江枫思渺然 提交于 2020-01-11 02:02:06
问题 How to solve this problem (in WF4): I create a workflow in xaml and start several instances of it, I have a persistancestore and all workflows persist on a bookmark half way their workflow. Now I stop the application If I restart te application everything is resumed, en nicely completes. But what if I want to change the workflow definition after the running instances persist? the only way to load the running workflows (that I was able to find) is the following way: WorkflowApplication wfapp =

Can I view a diagram of my running Windows Workflow instance?

只谈情不闲聊 提交于 2020-01-06 05:47:34
问题 I have a windows workflow host with Persistence and Tracking services enabled. I would like to show my persisted/idling workflow instance as a Diagram (like in the visual studio workflow designer). Is there an easy way to do this? Note that I would like to display this diagram in an Admin-like Web Interface that system administrators can use to view the state of a running workflow instance. 回答1: You can rehost the designer. Not easy but doable. You could then colour/annotate the diagram's

Missing ProcessParameterMetadata in TFS DefaultTemplate.xaml: where is for e.g. Items to Build in the Required category

Deadly 提交于 2020-01-06 03:41:07
问题 I'm trying to figure out how the Windows Workflow Foundation (WWF) template provided by default for builds in TFS specifies the Build process parameters in a build definition. This should happen via the ProcessParameterMetadataCollection and the ProcessParameterMetadata contained therein. However nowhere in the DefaultTemplate.xaml are they specified. There's no Required category or Items to Build item anywhere, and none of the others circled in red either. See picture below. I thought maybe

Managing workflow lifecycle without a “persistence service”

戏子无情 提交于 2020-01-05 08:36:11
问题 I'm using Windows WF right now for a simple way to state machines. In fact, I'm not even using a state machine, I'm using a sequential workflow. Eventually, I will ditch WF in favor of something else, but since I already have the code working, I need to get the Abort, Suspend, and Resume methods working. My application spawns a thread, which then spawns another thread that owns the WorkflowInstance. My GUI has Abort, Pause, and Resume buttons in it, and these eventually call the

Windows Workflow Foundation On-Premise Hosting and Web Api

无人久伴 提交于 2020-01-05 05:48:11
问题 I want to use Windows Workflow Foundation 4.5 and trigger the workflows via web api. What are my hosting options now that MS is ending AppFabric support? Should I even use Windows Workflow Foundation or should I look into a 3rd party solution? This is on-premise and I don't have the ability to use azure. I've done a few workflows and seems like WWF isn't hard to use but it's not clear how to host it. Can I host inside a web api project without AppFabric? My main concern is being able to

Add multiple Property Metadata to a Dependency Property in a Workflow Activity

末鹿安然 提交于 2020-01-04 09:39:21
问题 I am building a number of Custom Activities in Windows Workflow and I need to add a DependencyProperty which can list a number of values for that property which the user can then select when using the activity. e.g. True or False. I know how to simply pass a default using the PropertyMetadata, and presume that I will have to pass a list/class now the PropertyMetadata? Has anyone already got an example of how to do this please? (Example Code below) public static DependencyProperty TestProperty

Assert the Value of a WF Service Variable During a Unit Test

半腔热情 提交于 2020-01-04 04:43:27
问题 I need to assert the value of a variable in a workflow service. I've already downloaded and am using the Microsoft.Activities.UnitTesting framework from CodePlex to test the workflow service endpoint, return values, and flow logic - but I need to verify the value of a variable after calling into an endpoint and getting a response - is that possible? If it's not is there some other type of workaround that might work that doesn't involve changing the workflow itself to produce an output

WF and Hierarchical State Machines

自闭症网瘾萝莉.ら 提交于 2020-01-04 02:52:13
问题 Searching bing and google I'm finding some, but surprisingly little information about state charts in relation to windows work flow. The only clear answer I've derived is "yes it can handle state charts, and here is a tutorial." But what I'm trying to determine is: Does it support hierarchical state machines as richly as Samek's QHSM. For example: Can it handle a transition from a nested state to another nested state, where all entry and exit events are correctly fired? Does it handle or