원클릭으로
mapping-from-excel
Description on how to create a flogo file that follows an excel mapping
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Description on how to create a flogo file that follows an excel mapping
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
A command line tool to create and modify TIBCO Flogo Integration Applications
Deploy a TIBCO Flogo application to the TIBCO Platform. Provide the flogo app file path and the target dataplane name.
A command line tool to build executables for TIBCO Flogo Integration Applications
Step-by-step guide to create a Flogo REST API application that queries a database and returns the result
A command line tool to manage the TIBCO Platform, including Flogo & Business Works Applications. This tool can list and deploy applications.
| name | mapping-from-excel |
| description | Description on how to create a flogo file that follows an excel mapping |
| user-invocable | true |
act_general_mapperact_general_logtr_timerstring.concat(a, b) — NOT the & operator$activity[<activity_name>].output.<field> — NOT .output.output.<field>set-attribute calls for schemas and mappings need the --force flag (attributes don't pre-exist)create-trigger-handler inline syntax: fda cth <flow-name> <trigger-id>create-activity inline syntax: fda ca <flow-name> <activity-name> <activity-type>Read the Excel file using Python (openpyxl). Extract:
python3 -c "
import openpyxl
wb = openpyxl.load_workbook('<excel-file>')
ws = wb.active
for row in ws.iter_rows(values_only=True):
print(row)
"
Run all commands from your Flogo apps directory (e.g. ./Flogo_Apps/).
# Create flow (creates project file if it doesn't exist)
fda create-flow mapping_from_excel -f <AppName>.flogo
# Add activities (automatically linked in sequence)
fda ca mapping_from_excel mapper1 act_general_mapper -f <AppName>.flogo
fda ca mapping_from_excel mapper2 act_general_mapper -f <AppName>.flogo
fda ca mapping_from_excel logger act_general_log -f <AppName>.flogo
# Add timer trigger + handler
fda create-trigger timerTrigger tr_timer -f <AppName>.flogo
fda cth mapping_from_excel timerTrigger -f <AppName>.flogo
# Format flow
fda format-flow mapping_from_excel -f <AppName>.flogo
Create one schema for input fields and one for output fields.
fda cs InputSchema '{"$schema":"http://json-schema.org/draft-04/schema#","type":"object","properties":{"<field1>":{"type":"string"},...}}' -f <AppName>.flogo
fda cs OutputSchema '{"$schema":"http://json-schema.org/draft-04/schema#","type":"object","properties":{"<field1>":{"type":"string"},...}}' -f <AppName>.flogo
fda sa activity mapping_from_excel.mapper1.schemas.input.input "schema://InputSchema" -f <AppName>.flogo --force
fda sa activity mapping_from_excel.mapper2.schemas.input.input "schema://OutputSchema" -f <AppName>.flogo --force
Set one field at a time:
fda sa activity mapping_from_excel.mapper1.input.input.mapping.<FieldName> "<example-value>" -f <AppName>.flogo --force
Repeat for every input field.
Map each output field from mapper1's output. Use --force on every call.
Simple field mapping:
fda sa activity "mapping_from_excel.mapper2.input.input.mapping.<OutputField>" \
'=$activity[mapper1].output.<InputField>' -f <AppName>.flogo --force
Concatenation of two fields (use string.concat, NOT &):
fda sa activity "mapping_from_excel.mapper2.input.input.mapping.<OutputField>" \
'=string.concat($activity[mapper1].output.<Field1>, " ", $activity[mapper1].output.<Field2>)' \
-f <AppName>.flogo --force
fda sa activity "mapping_from_excel.logger.input.message" \
'=coerce.toString($activity[mapper2].output)' -f <AppName>.flogo --force
# Build (use the flogobuild context configured for your Flogo version, e.g. flogo-2.26.0-1789)
mkdir -p ./bin
flogobuild build-exe -f <AppName>.flogo -c <YOUR_FLOGO_CONTEXT> -o ./bin
# Run for 5 seconds and read log output
chmod +x ./bin/<AppName>
timeout 5 ./bin/<AppName> 2>&1 || true
The logger should print a JSON object with the mapped output fields.