Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

custom Sharepoint Workflow ?'s

Status
Not open for further replies.

JonathanHerschel

Programmer
Mar 29, 2007
33
US
I just created a custom state machine workflow for sharepoint in VS2005. I was able to layout the WF in designer, but not sure where the code for emails/activity logs go. And how to 'call' a state.

I would only like to initialize a state if certain conditions apply, so I am guessing I do this in the onWorklfowActivated method, but can't figure out how to call the State:
Code:
private void onWorkflowActivated1_Invoked()
{
   if (field exists)
   {
     //start this state
     Reminder1(); // ?? State name?
   }
}

and where do I put in the code for the emails and logs?
Code:
this.emlReminder.To = "ndynamite";
this.emlReminder.Body = "reminder";

this.hlogReminder1.HistoryDescription = "doing this";
this.hlogReminder1.HistoryOutcome = "done this";
Any help would be appreciatted! Thanks
Jonathan K. Herschel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top