views:

25

answers:

1

I was not able get the workflow instance in code activity of my workflow.how do I get it? I did check WorkflowEventArgs.WorkflowInstance Property but in my code activity i do not have WorkflowEventArgs. instead i have EventArgs.

What I am trying to do:

basically, i need to access the Workflow queue data to get the values in queue. in the above url, the code is for the same but, its not in a code activity? what is the correct way to access the queue?

A: 

I'm a little confused by your question. Is this what you want?

public sealed class GetWorkflowIdActivity : CodeActivity<string>
{
    protected override string Execute(CodeActivityContext context)
    {
        return context.WorkflowInstanceId.ToString();
    }
}
dmelinosky