cancel
Showing results for 
Search instead for 
Did you mean: 

Rule on Workflow

irenailievska
Champ on-the-rise
Champ on-the-rise
Is it possible to set Rule to execute script when we create new workflow?
My object is when a workflow is created to change the permissions of the assignee.
I need to change his permissions because if he does not belong to the site he can not see the document that is sent to him.
Is it possible to do this and if so I would like some guidance, since I am new in all this.
If this is not possible can you tell me some other way I can accomplish this?!?

Thanks in advance Smiley Happy
4 REPLIES 4

mitpatoliya
Star Collaborator
Star Collaborator
You can always manipulate contents during different stages of workflow.
You need not even require to invoke a rule because you can put your alfresco javascript piece of code within your workflow definition file. That  piece of code can be embedded within events like "transition","node-leave" etc…
You can check out of box workflow files to get better idea on how they are using it.

Is it possible to do this using the workflows that come with Alfresco out-of-the-box ?
I don't know where to put this script I am supposed to create and how to access the workflow in question and change the parameters of the assignee ?!?
I tried looking on the internet but every single script code I found was creating and starting the workflow.

mitpatoliya
Star Collaborator
Star Collaborator
oK, let me go back one step. Which workflow you are using? Simple or Advance?
Simple workflow is normal two step workflow where you define step name from user interface and then also set all parameters like where content should be moved when approve etc..
In advance workflow you just select workflow name from list of available advance workflows (ex. adhoc,parallel group review).

Simple Workflow. The plan is to use one of the workflows Alfresco offers like Review and Approve. I need to select a document and an assignee and start the workflow. But if the assignee does not belong to the site he can not see the document attached and therefore I need to change his permissions. It is possible to do this by clicking and changing his permissions, but it requires too much steps and I wish to do this when the workflow starts automatic. Sadly I am very new to Alfresco and I don`t know how to do this :/. If I can do this without creating custom workflow it would be the best thing Smiley Very Happy.