cancel
Showing results for 
Search instead for 
Did you mean: 

Progress Bar in Alfresco Activiti

ashokhathal
Champ in-the-making
Champ in-the-making

How to show progressbar between to task while it is running.

Specially in case Rest call task is taking time to get response and while generating document.

Please help on this.

1 ACCEPTED ANSWER

gdharley
Elite Collaborator
Elite Collaborator

Hello AH,

I'm not sure where you would want the Progress bar to be rendered.
once a User task is complete, the form is no longer rendered and all subsequent process activities are triggered.

Also, keep in mind that BPM systems, by their very design are no realtime systems. 

The only guarantee is that a task will be routed to based on the process model. How long it takes to get to that task depends on many factors including load, job executor configuration, database performance and the performance of other custom beans/delegates.

If you are looking for more of a single page application user experience (which the out of box forms don't provide), you should consider one of the available process application frameworks available such as Brazos and Alfresco's own Application Development Framework.

Cheers,

Greg

View answer in original post

3 REPLIES 3

jearles
Star Contributor
Star Contributor

A H,

There are several progress bar widgets available in angular, or other potentially compatible javascript frameworks; you'd need to create a custom alterations to the REST calls in order to track their progress and display it somewhere. Modify the REST Task is possible also, but I'm a little curious why this is a need for you; could it be a sign of a different problem? Are there very slow calls that you're making?

One of the core ideas of BPM is for the user to interact, when user interaction is necessary - so if the server is taking a while to process information or work with the user input before another user is involved - then, conceptually, that's fine.

Can you elaborate a bit on your reasoning here?

Thanks,
-JEarles

ashokhathal
Champ in-the-making
Champ in-the-making

Yes Slow calls, Specially for generating document based on Template. Activiti is taking time while it is generating documents.

When this process is in progress, can we show any ready made process bar in Alfresc Activiti 1.6 ?

gdharley
Elite Collaborator
Elite Collaborator

Hello AH,

I'm not sure where you would want the Progress bar to be rendered.
once a User task is complete, the form is no longer rendered and all subsequent process activities are triggered.

Also, keep in mind that BPM systems, by their very design are no realtime systems. 

The only guarantee is that a task will be routed to based on the process model. How long it takes to get to that task depends on many factors including load, job executor configuration, database performance and the performance of other custom beans/delegates.

If you are looking for more of a single page application user experience (which the out of box forms don't provide), you should consider one of the available process application frameworks available such as Brazos and Alfresco's own Application Development Framework.

Cheers,

Greg