186
Views
3
Comments
Show UI messages on BPT Activity updates in Reactive Web application
Question

In Reactive Web application how can I update the UI elements on Process or Activity completion?

So if I have 3 Automatic Activities in a Process how can show message on UI on each Activity completion & then on Process completion?

2018-10-25 01-55-55
Caulibeam

Hi Hemant,

I'm not very sure whether its possible for the BPT engine to call back to the web page. 

Would it be possible to implement a simple javascript timeout that calls a client action at intervals to poll the activity/process tables to get the values? 


Something like this: https://caulibeam.outsystemscloud.com/Poller/


Pollerv3.oml
UserImage.jpg
Biswajit Kayal

Hi Caulibeam,

I have tried this approach but I am getting an error that setTimeOut is undefined. Can you suggest what is wrong?

UserImage.jpg
Amir Prince

I think you have used the incorrect method name i.e. the 'o' in the setTimeout shouldn't be a CAPS (uppercase) character 'O', but a lowercase 'o'.

Correct Syntax:

setTimeout(function(){ $actions.PollProcessStatus() }, 3000);

Regards,
Sirajeddine

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.