Page tree
Skip to end of metadata
Go to start of metadata
A Xots Tasklet must follow a few standard rules:
  • It must implement at least either the org.openntf.domino.xots.AbstractXotsCallable or org.openntf.domino.xots.AbstractXotsRunnable interface
    • Use org.openntf.domino.xsp.xots.AbstractXspXotsCallable or org.openntf.domino.xsp.xots.AbstractXspXotsRunnable from XPages
  • The class must be annotated by the @Tasklet annotation
  • The annotation should define the session variable as one of the Tasklet.Session enum options
An org.openntf.domino.xots.XotsContext object is passed into the tasklet. This contains three properties:
  • contextApiPath - the context path for the application, for use in OpenLog logging
  • openLogApiPath - path for OpenLog logging database to log to
  • taskletClass - name of this class, used for logging
If extending AbstractXspXotsCallable or AbstractXspXotsRunnable interfaces, an org.openntf.domino.xsp.xots.XotsXspContext object is passed, which has six additional properties:
  • The four scopes (requestScope, viewScope, sessionScope, applicationScope). NOTE: writing to the first two is not recommended.
  • facesContext
  • XspContext

If a Xots Tasklet is a Runnable the tasklet will run in the background and your code will continue.

If a Xots Tasklet is a Callable the tasklet returns a value and the code will wait for and process the response.

  • No labels