Package: com.suncode.plugin.administrationtools.scheduledtask.RemoveUsersTask
Available from version: 1.0.2
Scheduled task for deactivating/deleting users from PlusWorkflow system. The list of users to delete is taken from a data source. The source can be called with the parameters specified in the Scheduled Task. Timestamps can be used as the call parameter value in addition to fixed values.
Parameter name | from version | Description | The type of the parameter | Notes and Restrictions |
---|---|---|---|---|
Datasource ID | 1.0.2 | The id of the source to execute. The source must return a parameter with id 'username', optionally a 'targetUserName' parameter. | String | userName - user to be deleted, targetUserName - user to whom to assign tasks |
Operation mode | 1.0.2 | Specifies whether to deactivate the user and delete (DELETE) or only deactivate (DEACTIVATION) | String | |
Datasource input parameters | 1.0.2 | The parameters with which the data source will be called. JSON format {"parameterId":"value"}. Ability to use time tags. e.g: {current_YYYY}-{current_MM}-{current_DD} will put the current date in yyyy-MM-dd in format | String | A table of possible tags is shown below |
Default target username | 1.0.2 | If no value is returned from the targetUserName parameter, jobs will be assigned to that user. An empty value means rewriting to the default system user. | String |
TAGS Possible to use in source input parameter | |
Time of scheduled task execution | |
{current_timestamp} | thirteen digit number of milliseconds since 01/01/1970 (timestamp) |
{current_DD} | two-digit number representing the day of the month |
{current_MM} | two-digit number representing the day of the month |
{current_YY} | a two-digit number representing the year |
{current_YYYY} | a four-digit number that represents the year |
{current_hh} | a two-digit number representing the hour |
{current_mm} | a two-digit number representing the minutes |
{current_ss} | a two-digit number representing the seconds |
{current_nnn} | trzycyfrowa liczba reprezentująca nanosekundy |
Czas ostatniego wykonania zadania zaplanowanego | |
{timestamp} | thirteen digit number of milliseconds since 01/01/1970 (timestamp) |
{DD} | two-digit number representing the day of the month |
{MM} | two-digit number representing the day of the month |
{YY} | a two-digit number representing the year |
{YYYY} | a four-digit number that represents the year |
{hh} | a two-digit number representing the hour |
{mm} | a two-digit number representing the minutes |
{ss} | a two-digit number representing the seconds |
{nnn} | trzycyfrowa liczba reprezentująca nanosekundy |
Example
Defining the "Source parameter values" parameter as {"last_call_date": "{YYYY} - {MM} - {DD} {hh}: {mm}: {ss}. {Nnn}"}
The following will be sent to the source: {"last_call_date": "2020-11-09 20: 09: 15.032"} (the values of the last valid execution date of the scheduled task will be automatically taken from the database; in the case when the task is run for the first time , the date of 01.01.1970 will be adopted)
1.0.2
- Adding a new component
Add Comment