Notifications for involved tasks

cancel
Showing results for 
Search instead for 
Did you mean: 
signjoy
Active Member II

Notifications for involved tasks

I am working on the Alfresco Process Services and came across the below requirements.

1. I want to send an email when I involve someone in the task. The involved person should get an email notification. Right now, by default the email notification is not going to the involved person.

2. Also, is there any way to make the attached documents and task form read only except the task claimer? I mean, only the task claimer should be able to edit the task but all other users in the group should be able to view the task in read only mode.

Any help will be appreciated...

2 Replies
upforsin
Senior Member

Re: Notifications for involved tasks

1. What do you mean by saying "involved"? It means notification should be sent to every task's recipient?

2. In your model  add the following:

            <overrides>
                <property name="bpm:packageItemActionGroup">
                    <default>read_package_item_actions</default>
                </property>
            </overrides> 

Here you can get more info.

howkymike
Alfresco Developer
jose_leon_coupa
Active Member II

Re: Notifications for involved tasks

Regarding the item (1): If the user get involved after the Task is created I think there is no way to trigger an action, as there is no events thrown that you can capture. In a User Task you have events: Create, Assignment, Complete (see https://docs.alfresco.com/community/concepts/wf-process-def-listeners.html)

If you involve the user at the Task creation, you might use the Create event and trigger an API call to ge the involved people, see the end-point: GET /enterprise/tasks/{taskId}.