You can change the context with in the XWikiContext. See
for how to access it from a component.
On Sat, Nov 14, 2015 at 12:04 PM, Peter Huisman <p.huisman(a)ximm.nl> wrote:
Hi Thomas,
Thanks for that. Maybe a very silly question but how do I get a job to run in a specific
Wiki?
Br,
Peter
Van: Thomas Mortagne <thomas.mortagne(a)xwiki.com
<mailto:thomas.mortagne@xwiki.com>>
Onderwerp: Antw.: [xwiki-users] Question on Jobs and context
Datum: 13 november 2015 14:52:51 CET
Aan: XWiki Users <users(a)xwiki.org <mailto:users@xwiki.org>>
Antwoord aan: XWiki Users <users(a)xwiki.org <mailto:users@xwiki.org>>
Right now there is no standard for it. Usually jobs that need to run
in a specific wiki or with specific user for example are provided with
this wiki/user as a job request parameter.
On Fri, Nov 13, 2015 at 2:51 PM, Peter Huisman <p.huisman(a)ximm.nl
<mailto:p.huisman@ximm.nl>> wrote:
Hi,
Im getting my head around job building. One question I have: If I start a job, the
context of the job is not the context I need. The script I run is in a subWiki but the
context of the job is in the main Wiki. What is the best way to change the context in the
job to match the wiki that I am using to start the job?
With kind regards,
Peter
_______________________________________________
users mailing list
users(a)xwiki.org <mailto:users@xwiki.org>
http://lists.xwiki.org/mailman/listinfo/users
<http://lists.xwiki.org/mailman/listinfo/users>
--
Thomas Mortagne
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users