Skip to main content
Nintex Community Menu Bar

Form Progress Steps

  • September 23, 2015
  • 27 replies
  • 381 views

11933iF828EAB96CE556E0.png

 

This is a visual control that displays a linear flow. It could give users a simple view of where they are in the process, and what other steps to take.

 

 

It can populate from a workflow and display client events into a linear progress bar (think of it as a super simplified View Flow), or it could populate from a SmartObject.

 

 

An item is highlighted in blue to mark is as 'active'. If populating from a workflow, this is detected form the SerialNo parameter to detect the current event; otherwise if populating from a SmartObject, this is defined by the State name.

 

27 replies

  • November 18, 2015

Hi ,

Really nice custom controls. Thanks for sharing with us. I used the control in my workflow and configured to read from workflow(Please find the screenshot). Its showing all the user activities nicely, but not changing the status according to the current activity. Alwasy in the first step.

 

Can you please advice me, if anything wrong in my configuaration?

 

Cheers

Apina

 


  • August 16, 2016

I followed the manuel and uses the transfer data to set the state of the control but that isn't working at all.
is this a know bug. will this be fixed and when?


Forum|alt.badge.img+2
  • September 15, 2016
Hey guys, to get this to work for me I had to make a few changes to the code and recompile it. Firstly I changed the username string from : string sUserName = "K2:" + this.Context.User.Identity.Name; to just string sUserName = this.Context.User.Identity.Name; Secondly I changed all the this.Page.Request.QueryString["SerialNo"] to this.Page.Request.QueryString["SN"] Hope this helps!

  • Author
  • October 7, 2016

Hi dwsteven,

Sorry for the late response! Didn't realize I wasn't auto-subscribed to my own post.

Try setting it to the Label name and it should work.

 

Planning to release another version soon that will support 4.7.

Thanks to Esmond for pointing those out!


Forum|alt.badge.img+2
  • October 28, 2016

I notice that it often doesnt reflect the right client event, I open the viewflow and observe that its on the right activity but the progress img does not reflect that?


Forum|alt.badge.img+2
  • October 28, 2016

Actually it works if I issue an iisreset (it will reflect correct activity in the bar)

 

thoughts?


  • Author
  • October 30, 2016
Hi aaronmmc, That's strange. I've never encountered that before. Does it continue to work after doing a 1-time iisreset? What's your control's properties? Are you populating from the SN, or did you specify the workflow name / ID?

Forum|alt.badge.img+2
  • October 31, 2016

even after an iisrest it appears to get stuck in some previous state. Ill test on different machines next

 


  • November 1, 2016

 @aaronmmc
I had the same probblem with control not reflecting the right client event. Turns out it was a caching issue.
Adding following to the control class solved the issue

 

protected override void OnInit(EventArgs e)
{
Page.Response.Cache.SetCacheability(HttpCacheability.NoCache);
base.OnInit(e);
}

 


Forum|alt.badge.img+2
  • November 1, 2016

thanks what worked great, no issues.


  • Author
  • November 29, 2016

Hi All, i have uploaded a new version that includes bug fixes mentioned in this thread + your valuable feedbacks.

Please see the updated documentation for more details.


  • Nintex Partner
  • February 13, 2017

Hi Riva,

I faced one issue while implemetning progress control.

 

I have added few Activities and used form progess control,Its working fine.

Now there is change requrest hence i have added couple of new acitvities in middle of the workflow. but progress control not updated steps ,My new activites came to last .

 

E.g  Submission  --> Assignment-->Approval --> END

 

Now i have added two more acitvities UpdateApproval,Investigation after Asssignment but now form progess rule dispaly those acitvities after END steps

 

Submission  --> Assignment-->Approval --> END-->UpdateApproval-->Investigation

 

How i can update the acitvity sequence if we add any new activites in middle .

 

Thanks in advance.


  • Author
  • February 13, 2017

Hi Nik86,

Unfortunately, that is one of the limitations of the control, as documented in the PDF.

The Events are sorted based on the sequence of adding activities within the workflow. (i.e. First activity created within the workflow --- its event will be first in the control; 2 nd activity created will display its event as 2nd; etc.). Unfortunately, this cannot be easily changed for now. If you happen to have suggestions for the APIs (specifically for finding out the line sequences), do let me know. Meanwhile I'll ask around if there's a way to fix this.


  • February 14, 2017

Hi riva,
Regarding problem with event sorting, my suggestion is to add option to sort events by their Display name (not very useful) or Metadata.
Metadata fields are good solution for this problem because one could simply put sequence numbers in them.

 

 

We can also specify Metadata in Activity General Properties so for more flexibility maybe  allow to sort by both.


  • Author
  • February 15, 2017

Hi Viesturs,

That is an awesome suggestion!

Will add that in when i find the time in the next few weeks. :)

 


  • Author
  • February 24, 2017

Hi Nik86 and Viesturs,

Thank you for your awesome feedback.

I have uploaded a new version that supports sorting based on WF Event Metadata. 

Cheers!


  • May 29, 2017
Hi Riva, when clicking the Download All Links above the zip is empty. Can you please re-upload? Thanks.

  • Author
  • May 29, 2017

Hi Wortho,

I have reuploaded v0.7 and it seems to work now.

 

[Strangely the download all didn't work, but the individual downloads work. I have raised a ticket to our IT to check out the cause of this issue.]

Many thanks!


  • June 1, 2017

Hi riva,

 

we are using a different K2 Server port than 5555. I guess this is the problem why the control doesn't work in our environment. Is there any possibility to make the port the control should use configurable?

 

Many thanks!


  • Author
  • June 2, 2017

Hi Alpseb,

Done! Please see v0.8 uploaded. :)

 

Riva


Hi Riva,

 

I like to deploy this custom control in K2 Five.but it is not supported in K2 Five.

In K2 Five New clean installation does not provide k2 Designer for visual studio.

 

Let me know How to create custom control In k2 five new installation.

 

Thanks


PeterB
Nintex Partner
Forum|alt.badge.img+3
  • Nintex Partner
  • July 12, 2018

Hi Garvit,

 

This control works on K2 Five, with the exception that the account that accesses the form needs full admin rights on K2 since the WorfklowManagementServer class that is used to get the progress steps is a bit more restricted now with the authorization framework.

 

Of course, that is not what you want; you don't want to assign every user admin rights on K2 just to show some progress steps.

 

So I implemented a fix that reverts the current user identity to the application pool account for the WorkflowManagementServer code part. Now you only need users to have view rights on the process (directly or via the group Everyone) and the K2 application pool needs admin rights on the process (or on the K2 server level if you use the control for every process).

 

Can't upload the updated the code as an attachment unfortunately, so if you need it, send me a PM.

 

@Riva, maybe we can get in contact to share the code fix so you can upload the updated package here.

 

Regards,

Peter


Hi, Great Control, love it. A feature i would like to see is the ability to use any SmartObject and method as the current version is only limited to SmartBox SmartObject and it would be great if we could choose to use SQL server SmartObject with store procedures etc.. or a SharePoint List. Thanks Simon

PeterB
Nintex Partner
Forum|alt.badge.img+3
  • Nintex Partner
  • February 22, 2019

I published the the K2 Five code fix here since some people started asking for it:

 


PeterB
Nintex Partner
Forum|alt.badge.img+3
  • Nintex Partner
  • April 15, 2019

That depends on the error message I guess. Did you execute the bat file via the cmd line or did you just double click it? You don't get a chance to read the error message when double clicking.