MAPPER

  • inputValue(input 위치에서 찾은 데이터)의 row count 만큼 roof 돌며 각 아이템에 대하여 Mapper Terms 처리 후 output에 반환

 

Define field

Mapper

ID

Description

ID

Description

id

mapper flow component id

name

이름

input

flow Component 처리 기준 데이터 위치

output

flow Component 처리 결과 위치

next

다음 flow Component id

 

Mapper Terms

ID

Description

ID

Description

id

mapper terms id

field

가져온 값의 Key 선언

"field": "price.salePrice"

method

 

"method": "mapping"

(아래 상세설명)

value

가져올 값의 위치

"value": "siteProduct.siteProductSaleInfo.salePrice"

 

Mapping Terms Method

ID

Description

ID

Description

Mapping

  • default

    { "id": 100002, "field": "id", "method": "mapping", "valueType": "string", "value": "cart.id" }

First

  • Return the first value found in N value positions

  • Position separator is comma ( , )

    { "id": 100018, "field": "price.optionPrice", "method": "first", "valueType": "int", "value": "productSingleOption.optionPrice,productMixOptionItem.optionPrice" }

Method

  • Using Method Expressions

  • Provide multiple methods

    { "id": 100014, "field": "existOption", "method": "mapping", "valueType": "boolean", "value": "{{:notEquals('none',siteProduct.productDetail.optionType)}}" }
  • Method can be customized

GroupBy

  • Take a list and divide it into groups

 

mapper start

  • get value of "input" position (inputValue)

  • roof inputValue

    • filter (Condition of execution)

      • false : continue

    • roof mapperTerms

      • run each "terms"

      • get the value of the "method" processed "value" position (termsValue)

      • set "field" as the key, "termsValue" as the value

  • put the value of the "output" position

next

 

SAMPLE mapping

RESULT

 

SAMPLE groupBy

RESULT