cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger Alert To Task Assigned To Queue

emailsharan
Champ in-the-making
Champ in-the-making

Hello Team,

How to set a Trigger Alert(Task or Email) to the task assigned to queue/group and not claimed for certain time in Alfresco.

I thought of using timer boundary event but those event will not execute based on claimed or not claimed.

Any help on this would really appreciative.

4 REPLIES 4

sanjaybandhaniya
Elite Collaborator
Elite Collaborator

I think it is already sending email notification when you start workflose(Select Send Mail notification) but regarding not claiming for certain time, you need customization for that.

emailsharan
Champ in-the-making
Champ in-the-making

thank you for your response, looking forward for such enhancements.

thank you for your response, agree to your suggestion about email notification but we would like to trigger alert only if the task is unclaimed, could you please suggest how to customize it.

You can create schedule job where list all the task which are unclaime and trigger email.

WorkflowTaskQuery workflowTaskQuery = new WorkflowTaskQuery();
            workflowTaskQuery.setTaskState(WorkflowTaskState.IN_PROGRESS);
            workflowTaskQuery.setWorkflowDefinitionName("workflowname");
            workflowTaskQuery.setActive(true);
            List<WorkflowTask> workflowTaskList = serviceRegistry.getWorkflowService().queryTasks(workflowTaskQuery,true);
for (WorkflowTask task : workflowTaskList) {
    Serializable taskOwner = task.getProperties().get(ContentModel.PROP_OWNER); 
if(taskOwner==null){
//This task is unassign/unclaim task
}  
 
}