workflow-activity

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

CRM 2011 Custom Workflow

坚强是说给别人听的谎言 提交于 2019-12-06 22:12:43
I GO THE PLUGIN WORKING, AND I HAVE UPDATED THE WORKING CODE HERE. HOPE IT HELPS!! I'm creating a workflow which has a plugin to retrieve a contact entity from a "FROM" field of an Email record. I'm trying to see if that email exists in the contact entity. The input is the "FROM" email and the output will return the Contacts entity. I have not been able to get this code working, I've received different errors or no errors, but I know its not working. Please help! Thanks in advance! using System.Activities; using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Workflow; using Microsoft.Xrm.Sdk.Query

Validate an Activity from within an ActivityDesigner?

送分小仙女□ 提交于 2019-12-06 15:42:08
I'd like to validate the workflow within the design surface (in this case, Visual Studio) from within one of the child Activities' designer. I'd like to prevent users from moving forward until other errors are corrected in order to simplify the design experience later down the road. The naiive implementation doesn't work: var activity = (this.ModelItem.Root.GetCurrentValue() as ActivityBuilder) .Implementation as Activity; var validationResult = ActivityValidationServices.Validate(activity); if (validationResult.Errors.Count > 0)) { MessageBox.Show("The Workflow is invalid. Fix it.", "Derp");

How can I write a custom WorkFlow 4 Code Activity that includes a “Body Block”?

 ̄綄美尐妖づ 提交于 2019-12-05 19:05:56
Is this possible? I know it is for MS since they have WF activity packs but I'm not sure how it's done. It would be nice to be able to have Activities with Body blocks to insert other activities, buttons, etc. If not too much trouble and/or time consuming that is. Its easy enough if you follow a few rules. Here's an example of a NativeActivity that has a child: [Designer(typeof(MyActivityDesigner)), ContentProperty("Child")] public sealed class MyActivity : NativeActivity, IActivityTemplateFactory { // this "activity delegate" holds our child activity public ActivityAction Child { get; set; }

Assembly must be registered in isolation error

非 Y 不嫁゛ 提交于 2019-12-05 17:48:56
I'm trying to load a custom workflow activity onto a crm server. I loaded the project onto the server and have been using the CRM Plug-in Registration Tool. The server is CRM2011 and thus supports .NET 4.0 activities. However, when I press the "Register" button (After the assembly has successfully loaded onto the Tool) the following error occurs: `Unhandled Exception: System.ServiceModel.FaultException'1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Action failed for assembly 'ExecuteSQLJob, Version=1.0.0.0,

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

拟墨画扇 提交于 2019-12-05 14:31:57
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 LoadRunnableInstance operation? I caught this error in the "aborted" event on the workflowapplication object, but it

TFS 2013 convert server path to local path

非 Y 不嫁゛ 提交于 2019-12-04 04:10:25
问题 How would I convert server path like "$/Test/BuildResources" to ex: "D:\test\etc.." I'm running TFS 2013. Would I use "GetWorkspace" item? When I try to use "GetWorkspace" and specify "$/Test" in the Name field I get an error message. Not sure if this is the way to do it. thanks EDIT: This is what I tried. This is my setup: I'm trying to convert "$/IW_Xavier/Deployment" to local path I also added GetWorkspace and set it up like this: But it doesn't convert it: I get an error message. I also

In sharepoint designer's workflow editor how do I get the workflow initiators username?

谁都会走 提交于 2019-12-03 07:47:34
In Sharepoint designer's workflow editor I wish to retrieve the username/name of the work flow initiator (i.e. who kicked it off or triggered the workflow) - this is relatively easy to do using 3rd party products such as Nintex Workflow 2007 (where I would use something like {Common:Initiator}) - but I can't seem to find any way out of the box to do this using share point designer and MOSS 2007. Update It does not look like this rather obvious feature is supported OOTB, so I ended up writing a custom activity (as suggested by one of the answers). I have listed the activities code here for

How do I resolve the root and relative paths of TFS folders on the server?

只愿长相守 提交于 2019-12-01 01:44:36
问题 I have created a CodeActivity for use in (custom) build definitions. This activity needs to copy files located on the server to/from places like the 'source directory', 'custom folders' to the 'drop directory' (etc.) before executing its primary purpose. Some of the variables I have are valid paths, but others are obviously placeholders for 'relative paths'. However, I need the physical server path so I can copy useful items to-and-fro. I NEED THINGS LIKE: The physical path for the projects

android: open a pdf from my app using the built in pdf viewer

梦想的初衷 提交于 2019-11-27 04:03:22
This was my original question: I want to be able to open a pdf file in my app using the android's built in pdf viewer app, but i dont know how to start other apps. I'm sure i have to call start activity, i just dont know how to identify the app im opening and how to pass the file to that specific app. Anyone have a clue? I just learned that the pdf viewer i have on my phone is actually made by HTC and that Adobe just barely released their android pdf viewer (which is great). So the new question is this: how do i verify that the user has installed adobe's viewer, and then how do i open the file