Hi Spirifer,
Thanks a lot for your reply.
I was waiting for such answer for a long time.

Regards,
Nanaso


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Saturday, December 1, 2018 8:04 PM, Spirifer <[email protected]> wrote:

> Hi,
>
> To have a progress for your process, you need to add a ProgressListener
> parameter in the execute method.
>
> An example:
> @DescribeResult(name = "result", description = "output result")
> public String execute(@DescribeParameter(name = "name", description
> = "name to return") String name,
> ProgressListener listen) throws InterruptedException
> {
>
> listen.progress(10f);
> Thread.sleep(10 * 1000);
> listen.progress(30f);
>
> Thread.sleep(10 * 1000);
> listen.progress(60f);
>
> Thread.sleep(10 * 1000);
> listen.progress(100f);
>
> return "Hello, " + name;
> }
>
> Cheers
>
>
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Sent from: http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html
>
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to this 
> list:
>
> -   Earning your support instead of buying it, but Ian Turton: 
> http://www.ianturton.com/talks/foss4g.html#/
> -   The GeoServer user list posting guidelines: 
> http://geoserver.org/comm/userlist-guidelines.html
>
>     If you want to request a feature or an improvement, also see this: 
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>     [email protected]
>     https://lists.sourceforge.net/lists/listinfo/geoserver-users
>




_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to