Skip to end of metadata
Go to start of metadata

 

Basic information

Package: com.suncode.plugin.scheduled_tasks.RewriteDataBetweenDatasourcesScheduledTask

Available from version: 1.0.X

Requirements

One or more defined data sources for the data read operation and one or more defined data sources for the data write operation.

Description

A plugin that provides a scheduled task that allows you to rewrite data between two defined data sources. Data transferred between sources is in text form.

Configuration parameters
Parameter namefrom versionDescriptionThe type of the parameterNotes and Restrictions
First Source Id1.0.0StringId of the source from which the data will be retrieved 
First source parameter values1.0.0StringJSON object containing the input configuration of the data source (in the format {'x': 'y', ...}, where x - source parameter id; y - parameter value) 
Second source id1.0.0StringId of the source where the data will be entered 
Source parameters mapping1.0.0StringJSON object containing mapping of output parameters of the first source with input parameters of the second source (in the format {'x': 'y', ...}, where x - id of the output parameter of the source from which the data will be retrieved; y - id of the input source parameter where the data will be entered) 
Second source parameter values1.0.XStringJSON object containing the input configuration of the data source (in the format {'x': 'y', ...}, where x - source parameter id; y - parameter value) 

 

Dostępne znaczniki:

MarkerDescription

{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 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}

a three-digit number representing nanoseconds

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)



Sample configuration

 

 

Change log

1.0.X (applicable documentation)

  • Create a scheduled task

 

 

  • No labels
Write a comment…