Action > Data Factory Edition β
This document describes how to create and update an action using Data Factory. Theses editions may occur in different contexts:
- While updating a formula using the Data Factory task table-import-schema
- While updating a mapping rule using the Data Factory task rules-engine-import-rules
XML representation β
| XPath | Description | Occurrence |
|---|---|---|
| Action | The action | 1 |
| Action@type | The type of the action, see the list here | 1 |
| Action/Copy | The copy parameter | 0..1 (If the action is of type SET_TEXT, SET_NUMBER) |
| Action/Copy@source | The source field to copy | 1 |
| Action/Copy@precision | In case of a copy a number, the precision | 1 (If the action is apply to a number) |
| Action/Copy@round | In case of a copy a number, the round strategy | 1 (If the action is apply to a number) |
| Action/Copy@use | If the source is a list, defines what you want to select. Enum: title, title-local, key | 1 (If the source is a list) |
| Action/Copy@lang | If you want to select the βtitle-localβ, define the language to use | 1 (If the source is a list and use=title-local) |
| Action/Copy@remove-carriage-returns | Enum: true, false | 0..1 |
| Action/Copy@trim-spaces | Enum: true, false | 0..1 |
| Action/Copy@remove-html | Enum: true, false | 0..1 |
| Action/Copy/@suffix | Allows the attribution of a static suffix, in case of a field of type NUMBER | 0..1 |
| Action/Value | The value to set | 0..* (If the action is of type SET_TEXT, SET_NUMBER, SET_SELECTABLE_OPTIONS) |
| Action/Value@quantity | Allows the attribution of a static quantity, in case of a field of type MULTIPLE-SELECT-QUANTIFIED | 0..1 |
| Action/Value@comment | Allows the attribution of a static comment, in case of a field of type MULTIPLE-SELECT-QUANTIFIED-WITH-COMMENTS | 0..1 |
| Action/Value/@suffix | Allows the attribution of a static suffix, in case of a field of type NUMBER | 0..1 |
| Action/Template | The template to use | 0..1 (If the action is of type SET_TEXT, SET_NUMBER) |
| Action/Template@trim-spaces | Enum: true, false | 0..1 |
| Action/Template@remove-carriage-returns | Enum: true, false | 0..1 |
| Action/Template@remove-html | Enum: true, false | 0..1 |
| Action/Template@precision | In the case where Action/@type = SET_NUMBER, defines the precision to apply to the result of the operation (an integer from 0 to 10) | 0..1 |
| Action/Template@round | In the case where Action/@type = SET_NUMBER, Enum: UP, DOWN, CEILING, FLOOR, HALF_UP, HALF_DOWN. See [https://docs.oracle.com/javase/8/docs/api/java/math/RoundingMode.html](https://docs.oracle.com/javase/8/docs/api/java/math /RoundingMode.html ) | 0..1 |
| Action/Template/@suffix | Allows the attribution of a static suffix, in case of a field of type NUMBER | 0..1 |
| Action/Map | Allows mapping between source values and target values | 0..1 |
| Action/Map/Entry | 0..* | |
| Action/Map/Entry/@source | 1 | |
| Action/Map/Entry/@target | 1 |