You can change the context with in the XWikiContext. See http://platform.xwiki.org/xwiki/bin/view/DevGuide/WritingComponents#HTheXWikicontext for how to access it from a component.
On Sat, Nov 14, 2015 at 12:04 PM, Peter Huisman <[email protected]> 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 <[email protected] > <mailto:[email protected]>> > Onderwerp: Antw.: [xwiki-users] Question on Jobs and context > Datum: 13 november 2015 14:52:51 CET > Aan: XWiki Users <[email protected] <mailto:[email protected]>> > Antwoord aan: XWiki Users <[email protected] <mailto:[email protected]>> > > > 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 <[email protected] > <mailto:[email protected]>> 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 >> [email protected] <mailto:[email protected]> >> http://lists.xwiki.org/mailman/listinfo/users >> <http://lists.xwiki.org/mailman/listinfo/users> > > > > -- > Thomas Mortagne > _______________________________________________ > users mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
