cancel
Showing results for 
Search instead for 
Did you mean: 

Action after/during WorkFlow

kurtkbee
Champ in-the-making
Champ in-the-making
Hello All,
           I would like to trigger a specific action (document transform) after a workflow has gone through a specific phase.
For instance I have the following 2 scenarios ;

1) I send a doc through a parallel workflow and after 70% of the members have approved the document i want to add an aspect to the document. I would then be able to have a smart space rule handle moving/transforming the doc (based on the aspect).

2) I want to send a doc through the WF and have it transformed (maybe to PDF) on last members approval (or rejection) to a different document format.

Are these options possible, and if so where can someone tell me how this can be done or point me to where i can find documentation on how to do this.

TIA,

-Kurt
P.s. Is it also possible for an email to be sent out to a certain person or group when a document (matching a rule) is placed in a folder/space or for a workflow to automatically start ?
1 REPLY 1

davidc
Star Contributor
Star Contributor
Within your workflow definition you can hook Alfresco javascript to process events, such as on task enter and leave, transition etc.

Alfresco javascript is very powerful and allows you to perform a variety of Alfresco services.  See the following link for an example (which sends an e-mail).

http://wiki.alfresco.com/wiki/WorkflowAdministration#Step_3:_Add_Behaviour_to_the_Process_Definition

Is it also possible for an email to be sent out to a certain person or group when a document (matching a rule) is placed in a folder/space or for a workflow to automatically start ?

Yes, you can define rules (which send e-mails or execute Alfresco Javascript).