Life, Universe and Everything Distributed.

// TODO: Place some witty description about Sajay's Blog here.

« Back to posts
  • Viewed
    times

Filed under

  • Work
  • wf
August 14, 2009

How do I get the workflow InstanceId?

  • Edit
  • Delete
  • Tags
  • Autopost

You can use a CodeActivity that returns a single result.

[code:c#]

public sealed class GetWorkflowInstanceId : CodeActivity<Guid>
{
    protected override Guid Execute(CodeActivityContext context)
    {
        return context.WorkflowInstanceId;
    }
}

[/code]

Posted by Sajay Sajay

  • 0 responses
  • Like
  • Comment