My Oracle Support Banner

How to write a groovy to call ESS job hrough REST with parameters (Doc ID 2780848.1)

Last updated on JUNE 08, 2021

Applies to:

Oracle Fusion CX Sales Cloud Service - Version 11.13.21.01.0 and later
Information in this document applies to any platform.

Goal

Create a webservice and test the groovy script below.

* Webservice: https://ccwx-dev3.fa.us6.oraclecloud.com/ess/esswebservice?wsdl
* Groovy Script:
def responseESS;
def description = "Publish Assignment Rules";
def jobDefinitionId =
[
  name : "CacheRefresher",
  packageName : "/oracle/apps/ess/crmCommon/workMgmt/assignmentMgr",
  type : "JOB_DEFINITION",
]
def application = "CrmEss";
def requestedStartTime = now();
def requestParameters =
[
  parameter:
[[
dataType : "STRING",
name : "submit.argument3",
//scope :stringValue,
value : "MOO",
]],
  parameter:
[[
dataType : "STRING",
name : "submit.argument4",
//scope :stringValue,
value : "true",
]],
  parameter:
[[
dataType : "STRING",
name : "submit.argument5",
//scope :stringValue,
value : "false",
]],
]
responseESS = adf.webServices.ESSWebService.submitRequest(description, jobDefinitionId, application, requestedStartTime, requestParameters)
 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.