<
From version < 11.1 >
edited by Thomas Mortagne
on 2018/03/20 16:06
To version < 12.1 >
edited by Thomas Mortagne
on 2018/03/26 12:05
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -6,7 +6,7 @@
6 6  
7 7  The general idea is that a job question is a Java POJO containing "properties" (a set of setters/getter) for each information the job would like an answer to (or a confirmation). Once those properties have been set ##JobStatus#answered()## is called to notify the job to continue.
8 8  
9 -On the Job side it means calling ##JobStatus#ask(myquestion)## which will block until the question is answered.
9 +On the Job side it means calling ##JobStatus#ask## which will block until the question is answered (or if the question timeout). Since 10.2 it's possible to know how much is left to answer the question using ##JobStatus#getQuestionTimeLeft## method.
10 10  
11 11  But this API is not restricted to the job itself, it can be used by a listener reacting to something a generic job has done for example. In such a use case you can use ##org.xwiki.job.JobContext## component to access the current job and its status.
12 12  

Get Connected