how to restart an expired task


Badge +7

I have a task that has expired, I am not finding a way to "start" or restart this task, am I missing something or is it just not possible to continue this task. 


10 replies

Userlevel 4
Badge +13

Hi  @CraigBrook ,


 


You can perform a GoToActivity to re-instantiate the same Activity. This will create the task item again for the destination user(s). To do so, navigate to K2 Management > Workflow Server > Workflows > [Workflow Project] > [Workflow] > Select the affected instance and click the 'Go To Activity' button.


 


Cheers,


Kimberly 


K2 will not accept any liability for any issues arising from actions taken in respect of information provided by any forum member.
Badge +7

I am not seeing this task at all in the K2 Management

Userlevel 4
Badge +13

Hi  @CraigBrook ,


 


The Task List in K2 Management only returns active tasks. The GoToActivity is peformed on a workflow instance to move the workflow to a desired step. Please refer to GoToActivity.png as reference. Once you click 'Go To Activity', select the relevant Task step to trigger the task again. 


 


 


Thanks,


Kimberly 


 


 


K2 will not accept any liability for any issues arising from actions taken in respect of information provided by any forum member.

Badge +7

OK, I am in the same instance list that you are showing me in the screenshot, I am not seeing any expired tasks in there

Userlevel 6
Badge +16

Hi CraigBrook,


 


It sounds like the instance might have completed, can you check the Report tab for this particular instance? (ex: Management > Workflow Server > Workflows > [Workflow Project] > [Workflow] > Reports > select the instance to review or click the viewflow link to see where it's at). Please let us know how it goes.


 

Hi Craigbrook,


 


In addition to what has khanh mentioned. If the workflow instance is already in  completed state


you are unable to restart the process. You can checkout the below link for more information


 


https://help.k2.com/onlinehelp/K2Five/UserGuide/5.3/default.htm#K2-Management-Site/Workflow_Server/InstancesTab.htm%3FTocPath%3DAdminister%7CK2%2520Management%7CWorkflow%2520Server%7CWorkflows%7C_____2


 


Cheers,


Kate

Badge +7

no the instance has not completed, it has expired, in the view flow in the reports tab, I see that it has expired at a task. 

 

Again, I am not seeing this in the instance tab, I am only seeing it in the reports tab. 

Badge +7

again, the workflow has not completed. 

Badge +11

It is not very clear if we speak about expired task or expired process instance in this sentence "no the instance has not completed, it has expired, in the view flow in the reports tab, I see that it has expired at a task", but just in case possible statuses for process instance are the following:


 


Error = 0
Running = 1
Active = 2
Completed = 3
Stopped = 4
Deleted = 5
Terminated = 6

 

From what I saw under normal cirumstances expired task can be redirected just fine through K2 Management UI providing that your workflow not yet completed.
Badge +7

Hi  @CraigBrook ,

 
Maybe the issue was linked to task system name/display name. You can see the both with the Process Version Migration Utility: https://community.k2.com/t5/K2-blackpearl/Process-Version-Migration-Utility-v3-0-6/ba-p/98975
 
Warning:  we have encountered a problem with GoToActivity (K2 Five 5.1 to 5.4 at least)
Following the use of the go to activity inside a Split/Merge the workflow stops at the “Merge” step next. Issue appears with Go To Activity from Management site with K2 Five new designer (Split and merge was not possible in K2 Studio).
The issue appears too with Process Version Migration Utility: https://community.k2.com/t5/K2-blackpearl/Process-Version-Migration-Utility-v3-0-6/ba-p/98975
 
At the same time, I asked to an impacted customer to create 2 K2 Ideas created in order to maximize the chances of having actions taken on this subject which can be blocking.
 
I therefore invite you to vote on these K2 ideas:
https://ideas.k2.com/ideas/APIT-I-1554
Fix issue: after go to activity, the workflow stop at the next merge step.
 
https://ideas.k2.com/ideas/APIT-I-1555
Add warning message in case of use of Go to activity from Management site to avoid important issue with split branches.
 
 
Please vote on them and don't hesitate to transfer to your colleagues who have a K2 account: For a K2 Idea to possibly be considered, you need at least 20 votes.
 

In addition, a normal behavior to know is the following:
If there are several activities in progress on the same instance of worklfow and that one uses the GoToActivity on any activity,
all the activities are finished and it does not will remain more than that specified by the Go To Activity.
However, it is possible to do a Go To Activity for a specific activity via the API.
This functionality has been implemented in the Workflow Management: https://community.k2.com/t5/K2-blackpearl/WorkflowManagement-Service/ba-p/65416
With this tool, we have possiblity to specifiy the "FromActivityName".
SmartObject service tester++ URL (https://community.k2.com/t5/General-K2-Utilities/SmartObject-Service-Tester-plus-plus/ba-p/92426):
SmartObject ExplorerDefaultSmoTask_managementMethodsGotoActivity -E ProcInstID=123;FromActivityName=Task1;ActivityName=Task3
 
 
Best regards,
Olivier

Reply