O'Reilly logo

Mastering jBPM6 by Arun V Gopalakrishnan, Simone Fiorini

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Human Task service

We introduced the human tasks in the previous chapter; we described the human task state transitions, task rule assignments, and task operations performed by the stakeholders.

You can get the org.kie.api.task.TaskService task service from RuntimeEngine (the getTaskService() method), which is a wrapper for the service; the task service is created and wrapped into RuntimeEngine (and the underlying session) by RuntimeManager, which uses TakServiceFactory:

InternalTaskService internalTaskService = (InternalTaskService) taskServiceFactory.newTaskService();

The factory used to instantiate TaskService is as follows:

  • LocalTaskServiceFactory: To be used in non-CDI environments

The factory configures the task service with the following references: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required