Manage Data Styles Setup Task Guidance
Purpose and Boundary
Use this skill only to export or import the complete FSM setup package for
Manage Data Styles. Fix the task identity to HZ_MANAGE_DATA_STYLES under
Trading Community Foundation.
Do not use this skill for planning, sequencing, standalone validation, template generation, filtered exports, or individual data-style inspection or maintenance. Validation is permitted only as a mandatory preflight for an export or import.
Supported Operations
export: export every setup-data object owned by the fixed task as one unfiltered, non-template FSM package throughshared.setup-export.task-level-export.import: import one complete, unchanged FSM ZIP for the fixed task through the mandatorycore.data-loaderworkflow.
Treat a migration request as these two operations in sequence. Finish and persist the source export before starting a separate target import preflight and approval.
Fixed Task Context
- Pillar:
CX - Offering:
Customer Data Management - Functional area:
Trading Community Foundation - Functional area code:
ORA_HZ_CDM_FOUNDATION - Task name:
Manage Data Styles - Task code:
HZ_MANAGE_DATA_STYLES - CSV export/import supported:
Y - Data Loader import mode:
FSM
Never accept a task-code, offering, or functional-area override.
Whole-Task FSM Export
-
Require
project_idand the named source Fusion environment. Resolve the live task by the exact fixed task code and confirmCSVExportImportSupportedFlag=Y; fail closed on a mismatch. -
Fix
template_only=falseandexport_criteria=[]. Refuse every filter, business-object subset, and template/specification request. -
Show the source environment, task name/code, unfiltered whole-task scope, output directory, and one-process impact. Obtain explicit approval immediately before the export POST.
-
Invoke
shared.setup-export.task-level-exportexactly once with the fixed context. Use its shared FSM engine for submission, polling, ZIP orProcessLogretrieval, and packaging; do not implement task-local REST. Run the approved command with unbuffered output:bashpython3 -u shared/setup-export/task-level-export/scripts/export_setup_task_csv.py \ --data \ --task-code HZ_MANAGE_DATA_STYLES \ --offering-name "Customer Data Management" \ --functional-area-name "Trading Community Foundation" \ --project-id "{project_id}" \ --output-dir project/{project_id}/exports/customer-data-management/trading-community-foundation/manage-data-styles/ \ --token-cache auto \ --wait-seconds 300 \ --poll-interval 10If the command runner yields a session or cell identifier, wait on that same process until it exits. The
-uoption exposes the shared exporter'sStarted ... process: <ProcessId>line without changing shared code. Capture that identifier in the task skill's run record. Empty initial output is not failure, and must not trigger a replacement export. -
Persist the
ProcessIdas soon as it is returned. On success, verify the ZIP, calculate SHA-256, store it in the declared export directory, register it, and update project state. -
On timeout, preserve the same
ProcessId, last status, and elapsed time. Resume only that process after a later request; never submit a replacement export automatically.
Whole-Task FSM Import Through Data Loader
-
Require
project_id, the named target Fusion environment, and one explicit ZIP path. Reject loose CSV files, multiple archives, and directory scans. -
Verify that the file is a readable ZIP containing exactly one member whose basename is
ASM_SETUP_CSV_METADATA.xml, and require its singleObjectShortNameto equalHZ_MANAGE_DATA_STYLES. Preserve the archive byte for byte and calculate its SHA-256. -
Invoke
core.data-loaderwith the fixed task context anddataloader_import_mode=FSM. Let Data Loader own source review, task validation, FSM adapter selection, immutable preview creation, approval, upload/initiation, and user-friendly reporting. Start with:bashpython3 core/data-loader/scripts/upload_and_initiate.py "{setup_data_zip_path}"Require the task-routed preview and approval envelope to retain
executionRoute=data-loader,sourceType=FSM, the exact task code/name, absolute archive path, archive SHA-256, andwholeTask=true. -
Treat the initial import request as validation only. Display the exact target, fixed task code, ZIP path and hash, and impact statement; stop before the first POST. Continue only after the separate user message required by
core.data-loaderapproves that immutable artifact. Then use Data Loader's approved task-routed command with the envelope returned by Task Hook:bashpython3 core/data-loader/scripts/upload_and_initiate.py "{setup_data_zip_path}" \ --task-routed \ --task-validation-envelope "{task_validation_envelope_path}" \ --approve-upload -
Do not invoke
setupTaskCSVImports, a shared import script, UCM upload, or a product adapter directly from this skill. Any changed target, archive bytes, task context, or execution option invalidates approval and restarts Data Loader preflight. -
Persist the accepted execution result and available redacted diagnostics in the declared report path. Check status only when the user asks, and never resubmit an import while its outcome is uncertain.
Error and Retry Contract
Classify failures as input_validation, catalog_or_metadata_mismatch,
auth_expired_or_invalid, authorization_or_privilege,
transport_or_environment, fusion_api_error, process_timeout,
process_failed, artifact_persistence, or approval_blocker.
- Refresh a cache-managed token once after a read-only 401 or 403. A second authentication response blocks execution.
- Never retry an export or import POST automatically. Require a new immutable preview and explicit approval before any new submission.
- On timeout or failure, report the environment, operation, task code,
ProcessIdor request ID when available, last status, elapsed time, diagnostic artifact, and recommended next action. - Never print or persist tokens, secrets, authorization headers, token-cache contents, full Base64 payloads, or sensitive customer data.
Result Contract
For export, report the source environment, fixed task name/code, ProcessId,
status, ZIP or log path, enclosure type, and ZIP SHA-256 when available. For
import, return the complete core.data-loader Markdown result and report the
target environment, fixed task name/code, immutable ZIP path and hash, status,
and available process log. Record the skill run and token usage for every
durable project activity.
Refusal Rules
- Refuse individual data-style creation, editing, deletion, or inspection.
- Refuse filtered, partial, criteria-based, and template/specification exports.
- Refuse task-code overrides, loose CSV files, edited or repacked ZIPs, and packages that Data Loader cannot confirm as the fixed FSM task.
- Refuse direct endpoint, script, or adapter execution that bypasses the required approval workflow.
Golden Scenarios
| Request | Expected route |
|---|---|
| Export all data styles from TEST | Approve and run one unfiltered FSM task export; persist the ZIP, hash, and process result |
| Import the complete exported ZIP into UAT | Run core.data-loader preflight, require its separate immutable-artifact approval, and submit one FSM import |
| Export only one data style | Refuse partial scope without making a Fusion call |
| Create or edit a data style | Refuse record-level maintenance without making a Fusion call |
Sources
knowledge/setup-task-catalog/effective/setupTasksAll.jsonshared/setup-export/task-level-export/SKILL.mdcore/data-loader/SKILL.md


