Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
tutorial:dev:scheduled_task [2019/03/05 13:11] svandav |
tutorial:dev:scheduled_task [2021/02/18 18:34] (current) apeterova fixed links |
||
---|---|---|---|
Line 7: | Line 7: | ||
* Stateful task - run from Quartz scheduler, extends Scheduled task | * Stateful task - run from Quartz scheduler, extends Scheduled task | ||
- | You can find description of each tasks type in the [[devel:dev:configuration: | + | You can find description of each tasks type in the [[devel:documentation:application_configuration: |
==== Scheduled task ==== | ==== Scheduled task ==== | ||
Line 75: | Line 75: | ||
* IMPORTANT 5 - input parameters (instance variables) are initialized in the `init` method, which is run before the `process`. Parameters and not strongly typed, `use parameters converter` for conversions. | * IMPORTANT 5 - input parameters (instance variables) are initialized in the `init` method, which is run before the `process`. Parameters and not strongly typed, `use parameters converter` for conversions. | ||
==== Stateful tasks ==== | ==== Stateful tasks ==== | ||
- | It is also easily possible to execute workflow from a [[devel:dev:configuration: | + | It is also easily possible to execute workflow from a [[devel:documentation:application_configuration: |
Following is an example of such task, which executes a workflow. | Following is an example of such task, which executes a workflow. | ||
Line 114: | Line 114: | ||
} | } | ||
</ | </ | ||
- | And following is the content of the [[devel: | + | And following is the content of the [[devel: |
* entity DTO which will be processed | * entity DTO which will be processed | ||
* Long Running task's ID | * Long Running task's ID | ||
Line 182: | Line 182: | ||
* IMPORTANT 4 - the `getWorkflowName` method returns the name of the Activiti workflow that will be run | * IMPORTANT 4 - the `getWorkflowName` method returns the name of the Activiti workflow that will be run | ||
* IMPORTANT 5 - input parameters of the workflow | * IMPORTANT 5 - input parameters of the workflow | ||
- | * IMPORTANT 6 - execution result, the abstract base class `AbstractWorkflowStatefulExecutor` expects the OperationResult as a result of the workflow, for details see [[devel:dev:configuration: | + | * IMPORTANT 6 - execution result, the abstract base class `AbstractWorkflowStatefulExecutor` expects the OperationResult as a result of the workflow, for details see [[devel:documentation:application_configuration: |
- | Scheduled and stateful tasks are a large topic in CzechIdM, definitely have a look at the documentation of [[devel:dev:configuration: | + | Scheduled and stateful tasks are a large topic in CzechIdM, definitely have a look at the documentation of [[devel:documentation:application_configuration: |
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// |