Workflow transition restrictions

  • Thread starter perekrestov.stas
  • Start date

P

perekrestov.stas

Hello.

I have document workflow. I implement this feature by wwf using State
Machine Workflow (http://files.rsdn.ru/36601/demo.JPG).

In our system there are a lot of users with different roles.

The question is:

How can i restrict workflow transitions for specified user-roles?

For example:
1. Any user can create documents.
2. Super user can create and process documents.

By this code I can analyse specified workflow instance and get all
possible state transitions.


private static void DumpStateMachine(WorkflowRuntime runtime, Guid
instanceID)
{
StateMachineWorkflowInstance instance =
new StateMachineWorkflowInstance(runtime, instanceID);

Console.WriteLine("Workflow ID: {0}", instanceID);
Console.WriteLine("Current State: {0}",
instance.CurrentStateName);
Console.WriteLine("Possible Transitions: {0}",
instance.PossibleStateTransitions.Count);
foreach (string name in instance.PossibleStateTransitions)
{
Console.WriteLine("\t{0}", name);
}
}

Is there any possible solution to restrict transitions between states
of existing workflow for specified user roles?
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Workflow 0
Windows Workflow 1
Workflow fundation 4
Workflow in ASP.NET ? 8
workflow xamal 0
Adobe WorkFlow Server 0
Best Book for WorkFlow 0
Windows Workflow Foundation 0

Top