cancel
Showing results for 
Search instead for 
Did you mean: 

Reset workflow task

blob
Champ in-the-making
Champ in-the-making
Hello everyone.

Is it possible to reset a task of a review workflow somehow?
One task was forced as accepted by the workflow initiator, but we would like to reset it and allow the reviewer to enter his comments and reapprove it by himself.

I was trying to update the task via workflow console, but without much success.

Details of similar task created for testing:
Last command: desc task jbpm$2368
Duration: 18ms
—–
id: jbpm$2368
name: ntcwf:review
title: Review Task
description: Review Task
state: COMPLETED
path: jbpm$985-@review.1
transitions: 2
transition: approve , title: Approve Content , desc: Approve Content
transition: reject , title: Reject Content , desc: Reject Content
properties: 21
{http://www.alfresco.org/model/bpm/1.0}percentComplete = 0
{http://www.alfresco.org/model/bpm/1.0}description = test testsetset
{http://www.alfresco.org/model/bpm/1.0}completionDate = 2012-05-25 15:30:15.0
{http://www.alfresco.org/model/bpm/1.0}context = null
{http://www.alfresco.org/model/bpm/1.0}outcome = approve
{http://www.alfresco.org/model/bpm/1.0}comment =
{http://www.alfresco.org/model/bpm/1.0}pooledActors = []
{http://www.alfresco.org/model/bpm/1.0}taskId = 2368
{http://www.alfresco.org/model/bpm/1.0}priority = 2
{http://www.alfresco.org/model/content/1.0}owner = mver
{http://www.alfresco.org/model/bpm/1.0}status = Completed
{http://www.alfresco.org/model/bpm/1.0}dueDate = 2012-05-31 00:00:00.0
{http://www.alfresco.org/model/bpm/1.0}startDate = null
{http://www.alfresco.org/model/bpm/1.0}reassignable = true
{http://www.alfresco.org/model/bpm/1.0}hiddenTransitions =
{http://www.alfresco.org/model/bpm/1.0}package = workspace://SpacesStore/51825d0f-9d71-4fce-ba7f-c2f5d8d94619
{http://www.alfresco.org/model/content/1.0}created = 2012-05-25 15:29:20.0
{http://www.alfresco.org/model/bpm/1.0}packageActionGroup =
{http://www.alfresco.org/model/workflow/1.0}reviewFolder = /Company Home/Reviews/review-985
{http://www.alfresco.org/model/bpm/1.0}packageItemActionGroup = edit_package_item_actions

Any ideas?

PS: We're using Alfresco Enterprise v3.4.7.
1 REPLY 1

afaust
Legendary Innovator
Legendary Innovator
Hello,

technically, you can reset a workflow to a previous task - unfortunately, this involves some dirty SQL hacking in the database and does not conform to any measure of process integrity / compliance… You are out of luck if you want to achieve this via an existing UI - as long as your process has not been designed to be re-routed back to the original task (without  a special semantical meaning of that routing), then you need to manually delete the tasks, variables, timers etc. created since the original task was assigned, and reset the original task back to the open state.

My advice: For a singular instance, just abort and restart the workflow - you're better of avoiding the hassles of manipulating the DB. Should this be a recurring pattern, you might want to think about including discretionary backdoor transitions in your processes (that don't show up to end users), which you might use to re-reroute a workflow - of course, depending on the complexity of your process, this might not be a trivial task.

Regards
Axel