cancel
Showing results for 
Search instead for 
Did you mean: 

advanced workflow swimlane initiator

alessandro_orig
Champ in-the-making
Champ in-the-making
I have to allow only one user (for example the admin user) to start the workflow, but with the swimlane initiator all users can start the workflow

I have tried to assign the initiator swimlane to the admin and then the first task with <actor>#{people.getPerson("admin")}</actor>, but nothing, I have also tried to not user initiator swimlane but a swimlane with another name and nothing

any ideas???
1 REPLY 1

ganeshkolhe
Champ in-the-making
Champ in-the-making
Hi,
I am not sure, I am also new to alfresco but I think with below two pointer we will be able to achieve the same.

1.Customize this class "StartWorkflowWizard" with method getStartableWorkflows() go and change implementation add the workflow defination if admin is in role.

2.Customize this class "JBPMEngine" with method startWorkflow() apply your rule for current user if is not admin throw WorkflowException.
add your defination of "JBPMEngine" in workflow-context.xml
1st option is having lesser risk than option2 If alfresco got some enchancement with "JBPMEngine" we will have to again change the implementation.