Submit Appworx batch job (shared overload)¶
This operation is the convenience entry point used by all observed callers (SAIF.Application.Claim.Legal\LegalNet\): it optionally overrides the Oracle target for non-production environments, then constructs a clsRequestAppworxJob, populates its arguments, and submits the job in a single call.
| Field | Value |
|---|---|
| Operation ID | OP-APX-003 |
| Trigger | Caller invokes the shared SubmitBatchJob(inDPI, inModule, [inRequestor], [inPrinter], [inArg1..inArg20], [inUseWCISDEV1AppworxForAllDevEnv]) overload. |
| Inputs | inDPI, inModule, optional inRequestor/inPrinter, optional inArg1–inArg20, optional inUseWCISDEV1AppworxForAllDevEnv (default False) |
| Outputs | Delegates to the instance SubmitBatchJob() operation; no direct return value |
| Primary components | clsRequestAppworxJob.SubmitBatchJob (shared/static overload) |
| Entry point | SAIF.Services.Appworx\clsRequestAppworxJob.vb |
Steps¶
- Evaluate
inUseWCISDEV1AppworxForAllDevEnv(defaultFalse) (BR-APX-003). -
If
True: callAppGlobal.EnvironmentService.GetApplicationEnvironment()to decide betweenWCISPROD(Prod) andWCISDEV1(all non-Prod environments), construct a newclsMSOracleDataLayer("PRADT", target), and derive a freshIDataPortalInfofrom it.Origin: The environment lookup (
AppGlobal.EnvironmentService.GetApplicationEnvironment()) and Oracle data-layer/connection construction (clsMSOracleDataLayer) are implemented in the referencedSAIF.BOF.Framework/SAIF.BOF.Framework.Security.EnvironmentApipackages; their internal logic was not traced from local source and no local operations page documents it**. - IfFalse(default, used by all observed callers): use the caller-suppliedinDPIdirectly. 2. Construct aclsRequestAppworxJobwith the resolved DPI, which internally callsInitArgs()(see Reset job arguments). 3. SetModuleName,Requestor,Printerfrom the supplied parameters. 4. For each ofinArg1–inArg20, if the parameterIsNot Nothing, assign it to the corresponding instance property (BR-APX-004). - If a parameter isNothing: the corresponding instance property retains its empty default fromInitArgs()and is never sent to the stored procedure (BR-APX-001). 5. Call the instanceSubmitBatchJob()(SQL-APPWORX-001), which performs the stored-procedure submission and error wrapping.
Origin: Steps performed by the instance method are detailed in Submit Appworx batch job (instance) — invoked here as the final delegation step.
Process flow¶
flowchart TD
Start([Shared SubmitBatchJob invoked]) --> D{inUseWCISDEV1AppworxForAllDevEnv = True?}
D -->|Yes, Prod env| Prod[clsMSOracleDataLayer PRADT/WCISPROD]
D -->|Yes, non-Prod env| Dev[clsMSOracleDataLayer PRADT/WCISDEV1]
D -->|No| CallerDPI[Use caller-supplied IDataPortalInfo]
Prod --> Construct[New clsRequestAppworxJob and InitArgs]
Dev --> Construct
CallerDPI --> Construct
Construct --> SetProps[Set ModuleName, Requestor, Printer, Arg1..Arg20 where supplied]
SetProps --> Delegate[Call instance SubmitBatchJob]
Delegate --> EndOk([Job submitted, or ApplicationException on failure])
Failure and edge-case behavior¶
- All failure behavior is inherited from the delegated instance
SubmitBatchJob()call (BR-APX-002). - An
inArgNparameter passed asNothingis indistinguishable at the stored-procedure boundary from an argument the caller never intended to set — both result in the parameter being omitted.
Related documentation¶
Sources¶
SAIF.Services.Appworx\clsRequestAppworxJob.vb