Introduction
This wiki page aims to show how to manage tasks by using Syncope console.
Tasks can be divided into four different types:
- Propagation task
- Creates, updates and deletes performed on an external resource.
- All the propagated operations are traced in respect of the trace level configured for the target external resource.
- Notification task
- Notifications sent on events happened.
- Notifications to be sent are configured as described at Notification Management.
- Synchronization task
- Synchronizations to be performed manually or automatically.
- Scheduled task
- Custom jobs to be performed manually or automatically.
Propagation Task
- Click on tab Tasks.
- Click on subtab Propagation Tasks (Fig. Propagation Tasks).
- For each propagation task, information below are shown.
- Id
- Task identifier (automatically generated).
- Resource
- Resource on which operation has been propagated.
- AccountId
- SyncopeUser identifier for which propagated operation is about.
- Propagation Mode
- For more details about propagation modes take a look at Propagation Mode.
- Propagation Operation
- Propagated operation.
- Last Status
- Last execution status.
View Task
- Click on tab Tasks.
- Click on subtab Propagation Tasks (Fig. Propagation Tasks).
- Click on Edit link in order to take a look at task details.
- Click on Executions tab in order to have detailed information about each execution of the task (Fig. Propagation Task Details).
- For each execution the following information are provided
- id
- Execution identifier (automatically generated).
- Start date
- Date and time of execution start-up.
- End date
- Date and time of execution completion.
- Status
- Execution status.
- Successful statuses are: SUCCESS for ONE_PHASE propagation and TWO_PHASE propagation at "step 2"; SUBMITTED for TWO_PHASE propagation at "step 1".
- Failure statuses are: FAILURE for ONE_PHASE propagation and TWO_PHASE propagation at "step 2"; UNSUBMITTED for TWO_PHASE propagation at "step 1".
- For more details about propagation statuses take a look at Propagation Mode.
- Message
- Click on Show in order to show returned message (if provided).
- Delete
- Click on Delete in order to remove an execution.
[Re-]Execute Task
- Click on tab Tasks.
- Click on subtab Propagation Tasks (Fig. Propagation Tasks).
- Click on Execute link in order to execute a task.
Delete Task
- Click on tab Tasks.
- Click on subtab Propagation Tasks (Fig. Propagation Tasks).
- Click on Delete link in order to remove a task.
- Confirm operation.
Notification Task
- Click on tab Tasks.
- Click on subtab Notification Tasks (Fig. Notification Tasks).
- For each propagation task, information below are shown.
- Id
- Task identifier (automatically generated).
- Sender
- Configured e-mail sender (please, take a look at Notification Management for more details)
- Recipients
- Configured e-mail recipients (please, take a look at Notification Management for more details)
- Subject
- Configured e-mail subject (please, take a look at Notification Management for more details)
- Trace level
- Configured trace level (please, take a look at Notification Management for more details)
- Last Status
- Last execution status.
View Task
- Click on tab Tasks.
- Click on subtab Notification Tasks (Fig. Notification Tasks).
- Click on Edit link in order to take a look at task details.
- Click on Executions tab in order to have detailed information about each execution of the task (Fig. Notification Task Executions).
- For each execution the following information are provided
- id
- Execution identifier (automatically generated).
- Start date
- Date and time of execution start-up.
- End date
- Date and time of execution completion.
- Status
- Execution status (SENT or NOT_SENT).
- Message
- Click on Show in order to show returned message (if provided).
- Delete
- Click on Delete in order to remove an execution.
Re-Execute Task
- Click on tab Tasks.
- Click on subtab Notification Tasks (Fig. Notification Tasks).
- Click on Execute link in order to execute a task.
Delete Task
- Click on tab Tasks.
- Click on subtab Notification Tasks (Fig. Notification Tasks).
- Click on Delete link in order to remove a task.
- Confirm operation.
Synchronization Task
- Click on tab Tasks.
- Click on subtab Scheduled Tasks (Fig. Sync Tasks).
- :For each scheduled task, information below are shown.
- Id
- Task identifier (automatically generated).
- Resource Name
- Resource to be synchronized.
- Last Execution
- Last date and time job execution.
- Next Execution
- Next date and time job execution.
- Last Status
- Last execution status.
- Id
Create Task
- Click on tab Tasks.
- Click on subtab Synchronization Tasks (Fig. Sync Tasks).
- Click on Create new task button.
- Click on Profile tab and provide the following information (Fig. Sync Task Details).
- Resource Name
- Resource to be synchronized.
- Actions Class
- Java class implementing actions to be performed during synchronization.
- For more details take a look at Synchronization Actions Class
- Create new identities
- Check it in order to synchronize identities which don't exist.
- Update matched identities
- Check it in order to synchronize identities which exist.
- Delete matched identities
- Check it in order to synchronize retrieved identity deletions.
- Resource Name
- Click on Schedule tab to schedule task executions (Fig. Sync Task Schedule).
- Provide a Quartz Cron Expression (you can use an expression template by selecting it into the combo-box provided).
- Click on Save button to save task.
Edit/View Task
Synchronization tasks can modified following the steps below.
Using the same steps it is possible to check execution statuses as well.
- Click on tab Tasks.
- Click on subtab Synchronization Tasks (Fig. Sync Tasks).
- Click on Edit link in order to take a look at task details (Fig. Sync Task Details).
- Click on Schedule tab in order to specify a schedule for the task (Fig. Sync Task Schedule).
- Click on Executions tab in order to have detailed information about each execution of the task (Fig. Scheduled Task Executions).
- For each execution the following information are shown.
- id
- Execution identifier (automatically generated).
- Start date
- Date and time of execution start-up.
- End date
- Date and time of execution completion.
- Status
- Execution status.
- Message
- Click on Show in order to show returned message (if provided).
- Delete
- Click on Delete in order to remove an execution.
- Click on Save button to save changes.
Specify User Template
Specify a user template to assign default parameters to each synchronized user.
- Click on tab Tasks.
- Click on subtab Synchronization Tasks (Fig. Sync Tasks).
- Click on Edit link (corresponding to User template column) in order to configure a user template.
- : Click on Details tab (Fig. User Template - User Details).
- ::Provide default values for username and password.
- ::Values must be provided using a JEXL expression.
- : Click on Attributes tab (Fig. User Template - User Attributes).
- ::Provide default value for one or more user attributes.
- ::Values must be provided using a JEXL expression.
- : Click on Derived Attributes tab.
- ::Provide derived attributes to be assigned by default.
- : Click on Virtual Attributes tab.
- ::Provide default value for one or more virtual user attributes.
- ::Values must be provided using a JEXL expression.
- : Click on Resources tab.
- ::Provide external resource to be automatically assigned to each synchronized user.
- : Click on Roles tab.
- ::Provide roles to be automatically assigned to each synchronized user.
- Click on Save button to save changes.
Re-Execute Task
- Click on tab Tasks.
- Click on subtab Synchronization Tasks (Fig. Sync Tasks).
- Click on Execute link in order to force job execution.
Dry Run
- Click on tab Tasks.
- Click on subtab Synchronization Tasks (Fig. Sync Tasks).
- Click on Dry run link in order to execute.
Delete Task
- Click on tab Tasks.
- Click on subtab Synchronization Tasks (Fig. Sync Tasks).
- Click on Delete link in order to remove a task.
- Confirm operation.
Scheduled Task
- Click on tab Tasks.
- Click on subtab Scheduled Tasks (Fig. Scheduled Tasks).
- :For each scheduled task, information below are shown.
#:* Id
#:*:Task identifier (automatically generated).
#:* Class
#:*:Java class implementing the job.
#:* Last Execution
#:*:Last date and time job execution.
#:* Next Execution
#:*:Next date and time job execution.
#:* Last Status
#:*:Last execution status.
Create Task
- Click on tab Tasks.
- Click on subtab Synchronization Tasks (Fig. Scheduled Tasks).
- Click on Create new task button.
- Click on Profile tab and provide the following information (Fig. Scheduled Task Details).
- : Class
- ::Java class implementing task job to be executed.
- ::For more information about task job class implementation take a look at Scheduled Task Job Class.
- Click on Schedule tab to schedule task executions (Fig. Scheduled Task Schedule).
- :Provide a Quartz Cron Expression (you can use an expression template by selecting it into the combo-box provided).
- Click on Save button to save task.
Edit/View Task
Scheduled tasks can modified following the steps below.
Using the same steps it is possible to check execution statuses as well.
- Click on tab Tasks.
- Click on subtab Scheduled Tasks (Fig. Scheduled Tasks).
- Click on Edit link in order to take a look at task details (Fig. Scheduled Task Details).
- Click on Schedule tab in order to specify a schedule for the task (Fig. Scheduled Task Schedule).
- Click on Executions tab in order to have detailed information about each execution of the task (Fig. Scheduled Task Executions).
- :For each execution the following information are provided
#:*id
#:*:Execution identifier (automatically generated).
#:*Start date
#:*:Date and time of execution start-up.
#:*End date
#:*:Date and time of execution completion.
#:*Status
#:*:Execution status.
#:*Message
#:*:Click on Show in order to show returned message (if provided).
#:*Delete
#:*:Click on Delete in order to remove an execution. - Click on Save button to save changes.
Re-Execute Task
- Click on tab Tasks.
- Click on subtab Scheduled Tasks (Fig. Scheduled Tasks).
- Click on Execute link in order to force job execution.
Delete Task
- Click on tab Tasks.
- Click on subtab Scheduled Tasks (Fig. Scheduled Tasks).
- Click on Delete link in order to remove a task.
- Confirm operation.
DISPLAYTITLE:Task Management