workflow-foundation

TFS Workflow If Statement using Build Configuration

眉间皱痕 提交于 2019-12-08 07:31:00
问题 I am working with Visual Studio 2012 paired with TFS 2012. Right now I am building a custom workflow template and need to run an if statement to separate two invokeprocess's. The condition for the if statement needs to operate off of which build configuration I am running, I want it to operate like this C code: if(Configuration == 'Debug') {//run for debug} else if(Configuration == 'Release') {//run for release} My problem is that I can't find any documentation or help as to how one would go

Hosting Windows Workflow Designer

二次信任 提交于 2019-12-07 20:05:26
问题 Does anyone have any experience hosting the Windows Workflow designer surface? I've seen a couple of rather difficult to follow examples on MSDN, but not much else - certainly nothing that offers an explanation into the process of hosting WF that is clear or easy to read... Are there better resources out there for hosting WF (or a workflow-like design surface - I'm not necessarily tied to WF) that actually make sense ? 回答1: There is a reference application from MSDN if you want to learn from

Resuming a persisted Window Workflow 4 Activity without knowing concrete type of activity

亡梦爱人 提交于 2019-12-07 19:26:09
问题 I am trying to understand how one can resume (load) a previously persisted WF4 activity without knowing the concrete type of the activity. In order to load a persisted activity, I not only need its workflowId (which I have), but I need to pass in an instance of the activity too - so I need to know it's type: var workflowApplication = new WorkflowApplication(activity); // what type is activity? workflowApplication.Load(workflowId); The problem is that it could be one of a number of types -

TFS Workflow If Statement using Build Configuration

﹥>﹥吖頭↗ 提交于 2019-12-07 15:42:32
I am working with Visual Studio 2012 paired with TFS 2012. Right now I am building a custom workflow template and need to run an if statement to separate two invokeprocess's. The condition for the if statement needs to operate off of which build configuration I am running, I want it to operate like this C code: if(Configuration == 'Debug') {//run for debug} else if(Configuration == 'Release') {//run for release} My problem is that I can't find any documentation or help as to how one would go about creating a conditional in workflow, and how I can use my build configuration as a value in this

how to create a .rules file in workflow foundation 4.5 (VS2012)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-07 10:51:42
问题 I am new to workflow foundation and I am using workflow foundation 4.5 (VS2012 RC). I want to build a workflow where i can add/remove rules on the run time. So i was thinking of using a set of rules on a separate .rules file and change this as and when I need it. However, i can't find this on VS2012. Is there any way that I can uses dynamic rules in workflow foundation 4.5? 回答1: This code block should allow you to load and execute your rules dynamically. You can see the rest of this post,

Trying to get to the bottom of a Windows Workflow 4.5 issue

烈酒焚心 提交于 2019-12-07 09:03:17
问题 The error I am getting is "The WorkflowApplication has been aborted because a Load or LoadRunnableInstance operation threw an exception. Create a new WorkflowApplication object to try loading another workflow instance." I am using "workflowapplication" to run the workflow. The workflow instance I'm trying to load (there are a few of them) were created sometime ago and were persisted into the database. Is there a way to find the exception that was actually thrown during Load or

Whats the purpose of Windows Workflow Foundation (WF)?

淺唱寂寞╮ 提交于 2019-12-07 03:27:17
问题 I have read about windows workflow foundation where people use this to model a business process, why not to use UML? According to some answers, the workflow can be my domain? What other tools are equivalent to the WF? 回答1: Workflow foundation is an executable workflow - the framework includes an engine that executes the workflow. It allows you to write parts of your workflow logic in code. I suggest reading this developers introduction on MSDN. UML doesn't do either thing - you can't use code

MS Validation Block or Workflow Rules engine?

牧云@^-^@ 提交于 2019-12-06 15:52:12
问题 For a large application that will be developed, we are in the process of selecting a Validation framework. Although the Workflow Rules engine is not strictly a Validation framework, it can be used by itself without using the Workflow foundation. It appears to give flexibility of specifying the rules in a database that is used at runtime. However, it appears that you cannot specify rules in the code. If greater flexibility is one of the requirements (not necessarily that the rules need to be

Windows Workflow 4.5 Version Mapping

做~自己de王妃 提交于 2019-12-06 14:53:08
问题 Suppose if there are two versions of the workflow, some instances are running on version1 and some on version2 , Is there any way so that we can call version1 workflow instead of version2 for a new instance, as we create a instance of workflow it will by default create the instance of version2. 回答1: .net Framework 4.5 introduces Workflow Versioning which seems to be exactly what you need. These two links should be enough to get started: Using WorkflowIdentity and Versioning How to: Host

Terminate and Suspend activity in Windows workflow Foundation

时间秒杀一切 提交于 2019-12-06 13:51:47
问题 I need to stop the execution Is there any procedures for using terminate and suspend activity 回答1: It depends exactly what you want to do. There is a Terminate Activity will terminate the workflow instance that is running and has reached that activity. Once terminated, that workflow instance will be dead and will never be restartable. Suspend is something you can call on a WorkflowInstance e.g. WorkflowInstance instance = runtime.GetWorkflow(instanceId); instance.Suspend("Paused for some good