Manage sales lead qualification template

From oracle/Fusion-Setup-Configuration-Registry · View interactive version

Manage sales lead qualification template is an AI agent skill from the GitHub repository oracle/Fusion-Setup-Configuration-Registry. Exports current Lead qualification templates, reconciles duplicate evidence, validates a reference-derived single-template FSM package, and hands the final archive to core.data-loader for its separate approval and import lifecycle.

How to use this skill

Skill file

Manage Sales Lead Qualification Template Setup Task Guidance

Purpose

Exports the current Lead qualification-template baseline, validates a new

reference-derived package, reconciles duplicates from both the export and live

REST state, and hands a validated FSM archive to the mandatory Data Loader

approval and import lifecycle.

Setup Task Skill Contract

Usage

Use this skill when planning, sequencing, exporting, importing, or validating setup data for Manage Sales Lead Qualification Template under Leads.

Runtime Interface and Handoff

Apply the parent cx.sales.leads runtime-interface guidance. For the normal

workflow, prefer the declared export, validation, read-only lookup, and Data

Loader skill contracts before considering implementation or test source.

This task hands Data Loader only the task-context path, exact task name,

positive sequence, environment, final ZIP path and SHA-256, operation, template

identity and set, export identity/hash/release, duplicate evidence, row counts,

task-rule results, and finalData.archiveSha256. Data Loader owns its preview,

approval record, taskValidationEnvelope, authentication, upload, and

initiation structures. If a declared interface fails or differs from its

contract, follow the parent's scoped diagnostic escalation and reuse the

resolved interface for the rest of the run.

Setup Task Metadata

Mandatory Create Workflow

For Create, do not require the user to supply an existing ZIP. Export the

current task data automatically from the selected environment before generating

or approving a new qualification template.

  1. Preflight the target environment identity, task code, catalog flags,

authentication, export privilege, project destination, and import approval

state. Never print or persist credentials.

  1. Invoke shared.setup-export.task-level-export in current-data mode for

MKL_MANAGE_SALES_LEAD_QUALIFICATION_TEMPLATE; do not use template/spec mode.

  1. Capture the export ProcessId from either the collection form or

SetupTaskCSVExportProcess.items[0].ProcessId, poll that exact process, and

download the result from its enclosure/FileContent endpoint. Do not infer

completion from a collection response or download a collection resource.

  1. Validate the downloaded ZIP before use: ZIP signature and CRCs, the exact

required members below, metadata task code, ObjectType=TASK,

ProcessType=EXPORT, ProcessStatus=COMPLETED, target ProcessEnv, target

Fusion release, and LEAD scope. Record its SHA-256 hash and export

ProcessId.

  1. Inventory every LEAD template from both template CSVs and retain exact

name, AssessTemplateNumber, SetId, and StatusCode. Also run the

documented live exact-name lookup.

  1. Reconcile the proposed exact name against both sources. Continue only when

both return zero matches. One match in either source is a duplicate;

disagreement is stale or incomplete evidence and requires a fresh export;

multiple matches are ambiguous and block the operation.

  1. Use the validated ZIP only as the target environment's schema, column,

metadata, and relationship reference. Construct a new package containing

exactly one proposed Lead template and its dependency closure. Generate new

identifiers; never carry another template's rows, identifiers, audit values,

or unrelated setup records into the import package.

  1. Route the proposed package through shared.validation.setup-data-validator

and shared.validation.reference-data-validator, then apply the task-local

graph through its data_loader_ready terminal. This validates the final

archive for handoff but does not create an import approval.

  1. Hand the final validated ZIP, task context, task name, sequence, and exact

package SHA-256 to core.data-loader only when the task graph reaches

data_loader_ready. The task graph does not approve or execute the import.

  1. Let Data Loader invoke Task Hook data-load, evaluate this task registry,

and build its immutable approval preview for the final archive. Include the

environment, release, export ProcessId/hash, inventory count, duplicate

evidence, package hash/rows, template design, set decision, and validation

results. Stop and require the user's later standalone approve message.

  1. After approval, let Data Loader revalidate the same archive, verify its

SHA-256, create the taskValidationEnvelope, and pass that envelope to its

upload/initiation workflow. The archive contains

ASM_SETUP_CSV_METADATA.xml, so Data Loader must preserve it unchanged and

submit it with sourceType: FSM. Do not call a shared import script,

setupTaskCSVImports, UCM, or an initiation endpoint from this task skill.

  1. Treat accepted Data Loader initiation as terminal for that request. Do not

poll automatically. When the user later asks for status or results, use

Data Loader status handling to retrieve data-set errors and the FSM

ProcessLog, then verify the template with a new exact-name read or export.

Never retry an import automatically.

The export invocation must carry the selected project and target environment

through the shared authentication/export contracts. Its task arguments are:

--task-code MKL_MANAGE_SALES_LEAD_QUALIFICATION_TEMPLATE
--offering-name Sales
--functional-area-name Leads
--project-id {project_id}

Do not add --template-only. Treat an export created during the current Create,

Copy, or Review run as fresh. An older or user-supplied archive requires an

explicit offline/fallback decision and must still pass environment, release,

task, scope, integrity, and live-lookup checks.

The required current-data export contains exactly these members:

The new package must retain those filenames and metadata structure. CSV header

order comes from the fresh export and must not be guessed or normalized.

User-Supplied ZIP Fallback

A user-supplied export is a fallback only when automatic export fails and the

user explicitly chooses offline continuation, or when the user explicitly asks

to work offline. Validate its task code, environment, release, LEAD scope,

member list, headers, integrity, and freshness before use. A ZIP from another

environment or release is not valid reference evidence without a new explicit

decision and validation; it never substitutes for the live duplicate lookup.

Other Supported Operations

new identifiers and a distinct name. Never modify a deployed source.

do not prepare or import a mutation package unless the user changes scope.

deployment is refused because this task does not yet have a validated FSM

package contract for the status transition; never substitute REST, browser,

or assisted Setup and Maintenance mutation.

Routing Metadata

CSVExportImportSupportedFlag is Y, so use these routes:

  1. Export with shared.setup-export.task-level-export.
  2. Validate with shared.validation.setup-data-validator.
  3. Validate reference data with shared.validation.reference-data-validator.
  4. Gate and execute an approved import only through core.data-loader.

Do not invoke shared.setup-import.task-level-import, its scripts,

setupTaskCSVImports, or a direct import endpoint. Data Loader is the mandatory

orchestrator and owns final-archive validation, Task Hook evaluation, immutable

preview, standalone approval, approval-envelope verification, upload, and FSM

initiation. Do not add task-local authentication or import code.

Use this task metadata when invoking those skills:

Task-Local Rule Workflow

Use the task-local ora-resource/ rules after the fresh export is available and

before any preview or import handoff. The supported operations are Create,

Copy, Review, and Deploy.

  1. Validate the requested operation, template identity, reference-data set,

ratings, question groups, questions, weights, responses, and score ranges.

  1. Confirm the questionnaire design and reference-data-set scope are ready.
  2. Reconcile the exported inventory with the documented read-only assessment-

template lookup.

  1. Apply package-isolation, duplicate, deployed-template, score-model,

reference-data-set, and immutable-preview design gates.

  1. Route a validated Create or Copy package to the Data Loader approval gate,

return Review or Deploy-readiness results as read-only, and block any actual

Deploy mutation until an export-derived Data Loader contract is documented.

The task-local rule graph never authorizes a REST write, browser/assisted

deployment, or direct import.

It may orchestrate read-only export and lookup operations and return a validated

final FSM archive to Data Loader. A Create or Copy import executes only after

core.data-loader independently builds its preview, receives the later

standalone approval, verifies the unchanged archive, and produces the matching

Task Hook approval envelope. No task-local rule or implicit approval may bypass

that boundary.

Failure and Recovery

Load and apply ora-resource/ora_error_handling.md before export, preview, or

Data Loader handoff. Classify failures as input validation, catalog mismatch,

authentication or authorization, transport or environment, Fusion API,

process timeout, process failure, artifact persistence, approval blocker,

verification mismatch, or partial completion.

Allow only the owning shared/core client's documented single cached-token

refresh for an eligible read. Never retry or resubmit an export, upload,

import, deployment, POST, PATCH, or DELETE automatically. On timeout, stop and

report the environment, task code, ProcessId or request ID, last status,

elapsed wait, and exact resume path. Preserve successful outputs and list

failed or unattempted units instead of presenting partial work as complete.

Persist sanitized diagnostics and available ProcessLog or status evidence with

the failure class, stage, external identifiers, and one safe next action. Do

not issue automatic compensation. Redact and never print or persist

credentials, bearer tokens, authorization headers, client secrets, token-cache

content, private keys, full base64 payloads, or sensitive customer details.

Oracle Documentation Sources

Follow-On Scope

Assigning a deployed qualification template to lead profile options is outside

this task-local graph. Route that later work to MKL_MANAGE_SALES_LEAD_PROFILE_OPTIONS

when the Leads implementation is expanded; do not start that setup task from

this skill's rule registry.

Inputs

credentials remain in the core authentication service

Outputs

release, and freshness evidence

Implementation Notes

Use the parent functional-area skill cx.sales.leads for functional-area sequencing and scope decisions. Track token usage for any generated project artifact or skill-run record using the manifest policy.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.