Ess job submitter

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

Ess job submitter is an AI agent skill from the GitHub repository oracle/Fusion-Setup-Configuration-Registry. Provides the ess job submitter core capability for Oracle Fusion Cloud implementation workflows.

How to use this skill

Skill file

ESS Job Submitter

Purpose

Provides the ESS job submitter core capability for Oracle Fusion Cloud

implementation workflows.

Canonical ESS Delegation Contract

Accept only a validated approved_submission conforming to

schemas/ess-delegation-contract.schema.json version 1.0. Require the

approved immutable request_payload, job contract, target environment,

polling options, and approval hash. This core skill does not classify FSM tasks,

choose business defaults, construct a payload, or obtain approval; it submits

and tracks the exact approved payload.

When to Use

Use this core skill when another router, shared, or pillar skill needs to run an

Oracle Fusion ESS scheduled process and track its result. Any implementation

activity that submits, monitors, or resumes tracking an ESS job should call this

skill instead of duplicating REST authentication, request submission, or polling

logic.

REST API Contract

This skill uses the Oracle Fusion Scheduler REST API:

The submit response returns an ESS request identifier as id; the tracking call

uses that value as requestId. The payload supports the Oracle request fields

such as jobDefinitionId, requestParameters, application, description,

priority, retries, requestTimeout, schedule, scheduleId, startTime,

and endTime.

Do not use callbackSubscription for now. The implementation rejects payloads

that include it so all callers use the async submit-and-poll flow consistently.

Project Scripts

Run from the repository root:

python3 core/fusion-api/ess-job-submitter/scripts/ess_job_submitter.py \
  --job-definition-id oracle/apps/ess/somePackage/someJob \
  --application someApplication \
  --parameter Param1=STRING=value1 \
  --wait-seconds 600 \
  --poll-interval 15 \
  --token-cache auto

Submit with an exact Oracle payload:

python3 core/fusion-api/ess-job-submitter/scripts/ess_job_submitter.py \
  --payload-file request.json \
  --wait-seconds 600 \
  --token-cache auto

Resume tracking an existing ESS request:

python3 core/fusion-api/ess-job-submitter/scripts/ess_job_submitter.py \
  --request-id 123456789 \
  --wait-seconds 300 \
  --token-cache auto

The script reads the default Fusion environment properties file:

core/auth/fusionEnv.properties

It imports OAuth helpers from:

core/auth/fusion-oauth-authentication/scripts/fusion_auth.py

If the cached token is missing, expired, or rejected by Fusion with HTTP 401 or

403, the script invokes core.auth.fusion-oauth-authentication to obtain a

fresh token, saves it to the requested cache, and retries the ESS API call once.

Inputs

conforming to schemas/ess-delegation-contract.schema.json version 1.0.

The core adapter extracts its fusion_environment_context, exact

request_payload, and execution_options only after validation; callers

must not provide those as independent skill-level inputs.

Script-level adapter inputs (internal mapping from the validated envelope):

--request-log-level, --priority, --retries, --request-timeout,

--start-time, --end-time, and --schedule-id: convenience inputs mapped

into the submit payload.

TYPE is BOOLEAN, LONG, INTEGER, DATETIME, or STRING.

recent requests matching one exact job definition. Use only when the active

workflow selects recovery lookup and the user explicitly asks to check.

set.

the shared OAuth flow when login is required.

Outputs

Script-level outputs:

failure result even when it cannot obtain an ESS request ID. Callers must

collect that artifact before classifying an outcome as indeterminate.

process phase, cause, completion time, elapsed time, ECID, and any error or

warning message returned by Fusion.

when no wait was requested.

Implementation Notes

Use the bundled script or import

core/fusion-api/ess-job-submitter/scripts/ess_job_submitter.py from consuming

skills instead of writing endpoint-specific ESS code.

The implementation records the target environment, submit response, requestId,

status summary, and polling diagnostics. It does not print access tokens,

refresh tokens, client secrets, .fusionaim_token.json contents, or

Authorization headers.

Authenticated REST requests are restricted to HTTPS hosts configured by

restBaseUrl or *_restBaseUrl in core/auth/fusionEnv.properties; other

hosts and redirects to them are rejected.

For mutating invocations, consuming skills must include the ESS requestId, job

definition, request purpose, target environment, and terminal status in their own

audit artifacts.

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.