Go-to-activity

  • 29 August 2017
  • 4 replies
  • 75 views

Badge +2

Can you execute a go-to-activity from a SmartForm? Cannot find any out of the box smart objects for it. Thanks


4 replies

Userlevel 5
Badge +18

Currently, this functionality does not exist in SmartForms via ootb control or rule.  If you would like to log this as a feature request to be ootb, consider logging it at:


https://ideas.k2.com/


However, this may be possible with a Community Project available at:


http://community.k2.com/t5/K2-blackpearl/WorkflowManagement-Service/ba-p/65416


I believe this is a service broker in which you can surface a SmartObject that will have the Go To Activity method exposed; the SmartObject can be called in SmartForms.


Please know that as this is a custom broker, K2 Product Support will not be able to provide assistance should there be any issues/bugs with the broker.  Please thoroughly test prior to implementation in a live environment.

Badge +2

Thanks

Badge +6

Hi. 

 

we have exposed GoToActivity as smart object and tried to execute with admin access.

 

thrown exception as unauthorised. let me know if this is the case, how to use GoToActivity smart object and can be utilised in smart form. we are looking no code based solution. keep posted us asap.  

 

your affirmative response makes us productivity.

 

Regards,

Thriveni.


Badge +7
Dear all,
 
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