Batch job submission (Appworx)¶
This workflow submits a background batch job (such as a print/report job) to the Appworx scheduler, routing to a production or non-production Oracle database instance based on the detected application environment.
| Field | Value |
|---|---|
| Operation ID | OP-APP-006 |
| Trigger | A legal manager (e.g., a print/report background job) constructs a batch job request |
| Libraries involved | SAIF.Services.Appworx |
| Screens | n/a (background job, no direct screen) |
| Inputs | ModuleName, Requestor, Arg1..Arg20 |
| Outputs | A submitted Appworx job (JOB_QUEUE) |
Steps¶
- A legal manager (e.g., a print/report background job) constructs a
clsRequestAppworxJob(SAIF.Services.Appworx), setsModuleName/Requestor/Arg1..Arg20. SubmitBatchJobresolves the target Oracle database instance (optionally redirecting toWCISDEV1/WCISPRODbased onAppGlobal.EnvironmentService.GetApplicationEnvironment()), then calls thesubmit_appworx_jobstored procedure (BR-APP-004).- The caller's
DPI.UserIDis propagated as data to Appworx for auditing; anyNO_DATA_FOUNDfrom the stored procedure is swallowed rather than surfaced to the caller.
Process flow¶
The following diagram visualizes the Appworx batch job submission workflow.
flowchart TD
Start(["Manager constructs<br>clsRequestAppworxJob"]) --> S1["Set ModuleName / Requestor /<br>Arg1..Arg20"]
S1 --> S2{Environment is production?}
S2 -->|Yes| S3[Target WCISPROD portal]
S2 -->|No| S4[Target WCISDEV1 portal]
S3 --> S5["Call submit_appworx_job<br>stored procedure"]
S4 --> S5
S5 --> S6{NO_DATA_FOUND returned?}
S6 -->|Yes| S7["Condition swallowed, appears<br>to succeed"]
S6 -->|No| EndOk([Job submitted])
Failure and edge-case behavior¶
submit_appworx_jobinvocation swallows aNO_DATA_FOUNDcondition rather than surfacing it to the caller, so failed/no-op batch job submissions may appear to succeed.
Related documentation¶
Sources¶
- SAIF.Services.Appworx
- LegalMaintenance web application (LegalMaintenance/*.aspx.vb)