Data Transformation

Inline expression

이 페이지는 아직 한국어로 제공되지 않으며 번역 작업 중입니다. 번역에 관한 질문이나 의견이 있으시면 언제든지 저희에게 연락해 주십시오.

Use JavaScript expression to apply transformations on data or objects. An expression is any valid unit of code that resolves to a value.

Examples:

  • 1 + 2
  • [1, 2, 3].filter(x => x < 3)

Note: Lodash is available through the variable _.

Inputs

항목

유형

설명

context

This value should be a JSON-serializable value, which will be made available in the expression as $. This can be a hard-coded value, or composed from the workflow execution context using templating.

script [required]

string

A JavaScript expression which applies a transformation to your data. An expression usually contains one line of JavaScript code that can be reformatted into multiple lines. Variable assignments or multiple standalone operations are not allowed. You can directly use Trigger or Steps variables from the workflow context. Use _ to access Lodash.

default: WorkflowName.split('')

description

string

A description for the expression.

Outputs

항목

유형

설명

data [required]

PREVIEWING: andrea.moscatelli/clarify-argocd-notifications-service