JonathanHerschel
Programmer
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:
and where do I put in the code for the emails and logs?
Any help would be appreciatted! Thanks
Jonathan K. Herschel
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";
Jonathan K. Herschel