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?