Answer Questions
Srey Creating a sharepoint workflow task through code
Hi, We have a code actvity in our sharepoint workflow, which creates a task in the "Tasks" List library in the sharepoint site. We are able to create the task, but if we set "Assigned To" property, an error occurs in the workflow. Following is our code snippet: private void CreateCodeTask_Invoke() { SPSite site = new SPSite ( @"http://potato" ); SPWebCollection webs = site.Al ...Show All
JoyceM Error with custom activities
In a number of my projects I keep getting stuck when I try to use custom activities in my workflow projects. I add a reference to my activities project into my sequential workflow project and drag on the activity shape from the toolbox. Sometimes I get the build error "Could not create activity of type 'MyWorkflow'. An item with the same key has already been added." I can delete everything and start again and the problem remains. Can anyone expl ...Show All
RalphTrent Custom Activity - Errors Best Practice
After looking at some examples and browsing the forum I could not find much information on how to handle errors in side an execute method. For example, I go to retrieve something and it is not there. At this point the activity can not complete. What is the best practice at this point, throw an exception or just set the cancel status Thanks In this case it really depends on your workflow scenario. If the library is known to possibly ...Show All
bear_2150 Event Driven Activity On Parent State
I have a state machine workflow where one of the state has bunch of nested child states. I have an EventDrivenActivity on the parent state. However when I fire an event to trigger this activity on the parent state I get the following exception. If I simply move the activity into one of the chile states I do not get the exception. Any clues why I am getting the exception in the former case Host Information: 0 : Received OnIdle Event for instance ...Show All
BobReed a problem with custom workflowPersistenceService
Hi All, I'm developping a custom workflowPersistenceService class,i inherit it from WorkflowPersistenceService and IPendingWork.But i don't know how to override the Commit method and MustCommit method and Complete method.Who can tell me about it Otherwise i have not found these three methods in metadata of SqlWorkflowPersistenceService.cs file.Why it happens Take a look at the sample "\Windows W ...Show All
pcprof HELP! shell extensions on Vista
i'm having a hard time getting my shell extension to load in Vista. The same extension registers and loads fine on XP, but not Vista. Something must have changed. I had a go at building and installing the sample extensions from dino E's shell book ... they failed to register ! Vista is disallowing regsvr32 to write the usual shell extension keys out... I'm logged in as Administrator. I have even tried it from a CMD box 'run elevated' - no joy ...Show All
Sjefsmoen Vista Dec CTP on Inspiron 9100 Fails
Quite a while ago, I installed a version of Vista on this laptop and it "worked" [the OS loaded and booted -- nothing functioned because none of my drivers worked and it bombed after trying to install the XP drivers]. I've since wiped the comp and I just downloaded the new Dec CTP to give it a whirl.... Well, no joy. The install process ran, rebooted the PC and then stopped. I left it for about THREE hours so I am pretty sure it was ...Show All
Ambrish.Mishra How to change input sample size in Direct Show ?
Hi everybody, I need to create a Transform filter and I need that the sample size that is delivered in the following method to be a power of 2. HRESULT CMyFilter::Transform(IMediaSample *pIn, IMediaSample *pOut){ BYTE *pSampleBuffer; int iSize = pIn->GetActualDataLength(); // the size to be a power of 2 pIn->GetPointer(&pSampleBuffer); BYTE *pSampleBufferO; int iSizeO = pOut->GetActualDataLength(); pOut->GetPointer ...Show All
Nestor Pira Ifelse activity in workflow
How can I set the condition for the ifelse activity . how do I invoke the branching based on the condition. Actually, this isn't exactly what the Parallel activity is for. The Parallel activity is used when you want two sequences to run at the same time ( It literally will spawn the contained activities on another thread ). The solution you describe may work but it's a rather long way to go for a simple switch construct. P ...Show All
salsaweb Problem with sendmail Activity
Hi, I am trying to test the sendmailAvtivity; so I began to activate the SMTP server in IIS, then I created an outlook account: I set the 2 servers POP3 and SMTP as "localhost".. then I tested the sendmailactivity sample ..but it failed when outlook is trying to synchronize with the server exactly in the dowload operation.. so how to resolve this problem Thanks Hi, You might want to try the .NET ...Show All
under_way 64bit Control Panel Extensions
I use the Microsoft gived function to compiler 64bit AMD program. The Application and DLL could be work on 64bit XP. But when I use this to compiler the Control Panel Extensions, the program could be compiler but could not work on 64bit OS. PROPSHEETPAGE psp; HPROPSHEETPAGE hpage; ZeroMemory ( &psp, sizeof(PROPSHEETPAGE) ); psp.dwSize = sizeof(PROPSHEETPAGE); psp.dwFlags = PSP_USEREFPARENT | PSP_DEFAULT | PSP_U ...Show All
Steven Benjamin GetSystemFirmwareTable() - Does this work?
#include <windows.h> #include <string.h> #include <stdio.h> #include <iostream.h> ULONG_PTR main(ULONG_PTR argc, char *argv[]) /*++ Description: The input to this can be - a.pat b.pat c.pat abcd\q.pat fgh\m.apt xyz\* pqr\ .pat g.pat - ListFile with the above list --*/ { UCHAR pFirmwareTableBuffer1[0x100]; UCHAR pFirmwareTableBuffer2[0x100]; ULONG_PTR retValue; ...Show All
AdrianGodong data type for data and time property
I'm making a custom activity with some date or time property. I tried specifying System.DateTime as the type for the property but then it'll always include both date and time in the resulting xoml file. Plus the format generated is not in the xml date format (ie 2006-01-01'). Is there a type I can specify where it will accept input for date or time only and generate xml format in the xoml file. Thanks. I ...Show All
N. Gregg Brown Force workflow unload
Hi Is there any way to make an activity force the Unload method on the workflow instance Thanks. Hello Arjun I'm trying to do the following: I have a Win32 app that host WF, and I want to dehydrate/rehydrate the sequential workflow that I'm running using my own custom activities, and not the EventSync, Delay, etc... Will I be able to do it using the PersistOnClose attribute Thanks, Matt. ...Show All
JoseBen101 Interop Problem with COM IDataObject and TOM Paste
I have been trying to access the text object model (TOM) using the RichEdit control in NET. So far I have successfully implemented most methods of the ITextDocument and ITextRange interfaces. I am now trying to implement the Paste method of the ITextRange interface which is defined as follows: STDMETHODIMP Paste(VARIANT *pVar, long Format); Where pVar is a pointer to the IDataObject to paste, but the contents of the clipboard are used if any o ...Show All
