Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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:scheduled_tasks:task-scheduler|Task scheduler]] chapter.+You can find description of each tasks type in the [[devel:documentation:application_configuration:dev:scheduled_tasks:task-scheduler|Task scheduler]] chapter.
  
 ==== 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:scheduled_tasks:task-scheduler#stateful_task_executors|stateful task]]. This is for example heavily used for personal processes, where workflows offer great flexibility for customer specific customization.+It is also easily possible to execute workflow from a [[devel:documentation:application_configuration:dev:scheduled_tasks:task-scheduler#stateful_task_executors|stateful task]]. This is for example heavily used for personal processes, where workflows offer great flexibility for customer specific customization.
 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:
 } }
 </code> </code>
-And following is the content of the [[devel:dev:workflow|Activiti workflow]], which handles the business logic. There are always 3 input variables of the workflow:+And following is the content of the [[devel:documentation:workflows:dev:workflow|Activiti workflow]], which handles the business logic. There are always 3 input variables of the workflow:
   * 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:scheduled_tasks:task-scheduler#stateful_task_executors|stateful task]]+  * 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:dev:scheduled_tasks:task-scheduler#stateful_task_executors|stateful task]]
  
-Scheduled and stateful tasks are a large topic in CzechIdM, definitely have a look at the documentation of [[devel:dev:configuration:scheduled_tasks:task-scheduler|Task scheduler]] and also see few implemented tasks in the `core` module, for example:+Scheduled and stateful tasks are a large topic in CzechIdM, definitely have a look at the documentation of [[devel:documentation:application_configuration:dev:scheduled_tasks:task-scheduler|Task scheduler]] and also see few implemented tasks in the `core` module, for example:
   * [[https://github.com/bcvsolutions/CzechIdMng/blob/develop/Realization/backend/core/core-impl/src/main/java/eu/bcvsolutions/idm/core/scheduler/task/impl/hr/HrEnableContractProcess.java|Enable contract process]]   * [[https://github.com/bcvsolutions/CzechIdMng/blob/develop/Realization/backend/core/core-impl/src/main/java/eu/bcvsolutions/idm/core/scheduler/task/impl/hr/HrEnableContractProcess.java|Enable contract process]]
   * [[https://github.com/bcvsolutions/CzechIdMng/blob/develop/Realization/backend/core/core-impl/src/test/java/eu/bcvsolutions/idm/core/workflow/hr/HrEnableContractProcessTest.java| Test for Enable contract process]]   * [[https://github.com/bcvsolutions/CzechIdMng/blob/develop/Realization/backend/core/core-impl/src/test/java/eu/bcvsolutions/idm/core/workflow/hr/HrEnableContractProcessTest.java| Test for Enable contract process]]
   * [[https://github.com/bcvsolutions/CzechIdMng/blob/develop/Realization/backend/core/core-impl/src/main/java/eu/bcvsolutions/idm/core/scheduler/task/impl/IdentityRoleExpirationTaskExecutor.java|Role expiration task]]   * [[https://github.com/bcvsolutions/CzechIdMng/blob/develop/Realization/backend/core/core-impl/src/main/java/eu/bcvsolutions/idm/core/scheduler/task/impl/IdentityRoleExpirationTaskExecutor.java|Role expiration task]]
   * [[https://github.com/bcvsolutions/CzechIdMng/blob/develop/Realization/backend/core/core-impl/src/test/java/eu/bcvsolutions/idm/core/scheduler/task/impl/IdentityRoleExpirationTaskExecutorTest.java|Test for Role expiration task]]   * [[https://github.com/bcvsolutions/CzechIdMng/blob/develop/Realization/backend/core/core-impl/src/test/java/eu/bcvsolutions/idm/core/scheduler/task/impl/IdentityRoleExpirationTaskExecutorTest.java|Test for Role expiration task]]
  • by svandav