Question on progressBarField and chaining

Certified Lead Developer

I have a process that is copying data to the DB on the back end, I would like to show the progress in data being copied using a progressBarField.
This way I can have the user wait on the form, without breaking the chaining as well.

I can do it using some refresh button to get the status (%) of data copied, but I want this to be auto refreshed to show the real time data without user intervention on the form.

What would be the best way to accomplish this?

Thanks
Manish

OriginalPostID-205300

OriginalPostID-205300

  Discussion posts and replies are publicly visible

  • 0
    Certified Senior Developer
    We do have a similar kind of requirement and we saved the % completion in db after every major part of data is copied. And we did fetched the % completion from db using query entity.
  • 0
    Certified Lead Developer
    That's great to hear.
    Can you point me towards how are you fetching it from DB in the real time.

    If I call a query on the form, this will be loaded only once and if the copy status updates how do I show it on the form? I will need to call the querry again to fetch this updated value from DB.

    I dont want to use a button or refresh link that user will need to click repeatedly to fire this query to get the latest status on form.

    The motto is to show as the copy is in process (from 0 - 100, derived from some rule), not showing the static content in progress bar.
  • 0
    Certified Senior Developer
    Yeah, so we do have a progress bar with a refresh button, and on the saveInto of the button you can call the queryEntity to fetch the % completion.
  • 0
    Certified Lead Developer
    Hi Aayusha, I understand that. In both the comments and post I mentioned the same stuff, I want it to be dynamic without user clicking on any refresh button,link or image.

    I want the progress field to show real-time data not the static one fetched from load or on click even from button or other fields.

    Hope this clarifies my problem statement further.
  • Hello Manish, I also tried for the same kind of solution but didn’t get it. Actually in appian we don't auto refresh or auto submission options. Even I tried using process models like for the user input task I given timer exception to skip the node every one minute and came back to the same user input task again but it also didn’t work because for exceptions path we can’t set activity chaining. So it is not possible without doing any action on interface. Because in appian sail interface will get refreshed only when we do some action on it.
  • I was trying out a dashboard type display just last week to do the same thing. To show the status of orders, transactions, etc. in the application. I was hoping to get Appian to automatically refresh the data. No luck. The user either needs to submit the form via a button or change values in a form to trigger a refresh of the local variables in the form. I tried timing out the form but this doesn't refresh it on the screen, it just kills the form and recreates a new one (which would require the user to click on 'tasks' in Tempo and open the task again.
  • Hi Manish .. Did you find any solution for this ? We have a similar usecase to display a live report dashboard which should auto refresh in an interval so that recent data can flow through the report ..

    Tried few things like calling the report rule from a task and
    1. adding timer exception flow (but chaining was not possible) and redirecting flow to the same task
    2. adding escalation and reassigning the task to same user after 1 minute. Task got reassigned as I checked in history but form did not show recent data.

    There may not be any OOTB feature to do this but it would be great if someone suggests a good workaround to achieve this.
  • I think the newer 'website' pages that can be embedded into another website/page might be a potential solution. If we built a dynamic webpage that embedded the Appian page in it (as a webservice?) maybe we could use javascript to refresh the page, which would trigger a webservice call and displace the embedded Appian data. I haven't touched that feature yet, has anyone here?
  • 0
    Certified Lead Developer
    Hi Kumar, I couldn't figure out a way for this so opted to go with the option where user has to click on refresh to get the data.

    @ryan not sure how feasible this is but I think it can't cater to the original requirement of getting this UI in a task. Sites will only support actions or task reports.
  • 0
    Certified Senior Developer
    Hi All, Any Luck for above requirement, i also have same kind of requirement.