I have a workflow (flowchart) application developed in .Net. The workflow has many control; few control type is waiting and few control type is sendemail. I have a "wait" class and "email class" in the workflow project. The "wait" class (wait.cs) has an execute method.
protected override void Execute(NativeActivityContext context)
{
//Database activity is performed here.
}
I would like to know, how this execute method is getting called?
As per fundamental, this should be called from an object. However, are there different ways of calling this method?
I'm sure that, the execute method is getting called. But, I am unable to find how, and from where?
WorkflowInvoker and WorkflowApplication are responsible to invoke or to provide a hosting environment for your workflow definitions and calls the corresponding execute method. You can find more here with example.