Go to Activity Feature

  • 9 December 2019
  • 2 replies
  • 45 views

Hi Team,

 

i would like to check whether any one have implemented the GO To Activity feature which we have in Management Console for Admins to move the Work item to Any Stage depending on the need, in custom way where this feature can be extended to End Users.

 

how this GO To Activity feature can be extended to End - Users , extending this feature to end users will have Pros and Cons but first would like to check the feasibility.

 

There is a GoToActivity Service object found at K2 Management => Workflow => Management => Management Service using which we can create Smart object and extend this.  what is the impact if we do this on K2 Side.

 

Thanks,

Madhu


2 replies

Hi MadhuG,


 


You should be able to leverage the K2 API to use the GoToActivty SmartObject.  Please see documentation below:


 


https://help.k2.com/support-services/kbt154330


https://help.k2.com/onlinehelp/K2Five/DevRef/5.3/default.htm#../Subsystems/DTAA/Content/topic18596.html


https://help.k2.com/onlinehelp/K2Five/DevRef/5.3/default.htm#../Subsystems/Runtime-API/Content/topic13300.html


https://help.k2.com/onlinehelp/K2Five/DevRef/5.3/default.htm#../Subsystems/Runtime-API/Content/topic14856.html


 


You also may want to take a look through the K2 Workflow Management API Developer's Reference guide:  https://help.k2.com/onlinehelp/k2five/devref/5.1/default.htm#Runtime/WF-Manage/WFManage-Intro.htm%3FTocPath%3DRuntime%2520APIs%2520and%2520Services%7CWorkflow%7CWorkflow%2520Management%2520API%7C_____0.


 


Thanks


 

Badge +7

Hi @MadhuG ,

 

With on promise version, you can use 
 
 
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