Create Eligibility Rule
post
/rest/v19/eligibilityRule
This operation creates a new Eligibility Rule.
Request
Root Schema : Eligibility Rule
Type:
objectTitle:
Show Source
Eligibility Rule-
active:
object active
Title:
activeYES indicates Active and NO indicates Inactive -
condition:
object Eligibility Rule Condition
Title:
Eligibility Rule Condition -
conditionRowGrouping:
string
Title:
conditionRowGroupingThis field holds the Eligibility rule condition row grouping information -
conditionType:
object conditionType
Title:
conditionTypeSpecifies whether condition is ALWAYS_TRUE or SIMPLE -
description:
string
Title:
descriptionDescription of Eligibiltiy Rule -
endDate:
string
Title:
endDateEligibility rule end date -
id:
integer
Title:
idPrimary key of BM_Eligibility_rule -
name:
string
Title:
nameName of Eligibility Rule -
ruleType:
object ruleType
Title:
ruleTypeIndicates whether AVAILABLE or NOT_AVAILABLE rule -
selection:
object Eligibility Rule Selection
Title:
Eligibility Rule Selection -
selectionRowGrouping:
string
Title:
selectionRowGroupingThis fields holds Eligibility rule selection row grouping information -
selectionType:
object selectionType
Title:
selectionTypeThis field specifies whether selection is ALL, NONE or SIMPLE -
startDate:
string
Title:
startDateEligibility Rule start date -
variableName:
string
Title:
variableNamevariable name of Eligibility Rule
Nested Schema : active
Type:
objectTitle:
activeYES indicates Active and NO indicates Inactive
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : Eligibility Rule Condition
Type:
objectTitle:
Show Source
Eligibility Rule ConditionNested Schema : conditionType
Type:
objectTitle:
conditionTypeSpecifies whether condition is ALWAYS_TRUE or SIMPLE
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : ruleType
Type:
objectTitle:
ruleTypeIndicates whether AVAILABLE or NOT_AVAILABLE rule
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : Eligibility Rule Selection
Type:
objectTitle:
Show Source
Eligibility Rule SelectionNested Schema : selectionType
Type:
objectTitle:
selectionTypeThis field specifies whether selection is ALL, NONE or SIMPLE
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : items
Type:
Show Source
array-
Array of:
object Eligibility Rule Condition
Title:
Eligibility Rule Condition
Nested Schema : Eligibility Rule Condition
Type:
objectTitle:
Show Source
Eligibility Rule Condition-
attributeName:
string
Title:
attributeNameData source field for condition is stored in this field -
dataType:
object dataType
Title:
dataTypeIndicates data type of attributeName -
dateAdded:
string
Title:
dateAddeddate on which this record is added -
dateModified:
string
Title:
dateModified -
id:
integer
Title:
id -
operator:
object operator
Title:
operatoropearator for condition is stored in this field -
ruleConditionIndex:
integer
Title:
ruleConditionIndexrow index of Rule condition -
ruleId:
object ruleId
Title:
ruleIdForeign key field -
value:
string
Title:
valuevalue for condition is stored in this field
Nested Schema : dataType
Type:
objectTitle:
dataTypeIndicates data type of attributeName
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : operator
Type:
objectTitle:
operatoropearator for condition is stored in this field
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : ruleId
Type:
objectTitle:
ruleIdForeign key field
Show Source
-
id:
integer
Title:
idPrimary key of BM_Eligibility_rule -
variableName:
string
Title:
variableNamevariable name of Eligibility Rule
Nested Schema : items
Type:
Show Source
array-
Array of:
object Eligibility Rule Selection
Title:
Eligibility Rule Selection
Nested Schema : Eligibility Rule Selection
Type:
objectTitle:
Show Source
Eligibility Rule Selection-
dataType:
object dataType
Title:
dataTypeIndicates data type of attributeName -
dateAdded:
string
Title:
dateAdded -
dateModified:
string
Title:
dateModified -
id:
integer
Title:
idprimary key of selection table -
operator:
object operator
Title:
operatorOperator chosen for selection -
partField:
string
Title:
partFieldPart field selected in selection -
ruleId:
object ruleId
Title:
ruleIdForeign key to rule table -
ruleSelectionIndex:
integer
Title:
ruleSelectionIndexindex of rule selection index -
value:
string
Title:
valuevalue for selection is stored in this field
Nested Schema : dataType
Type:
objectTitle:
dataTypeIndicates data type of attributeName
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : operator
Type:
objectTitle:
operatorOperator chosen for selection
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : ruleId
Type:
objectTitle:
ruleIdForeign key to rule table
Show Source
-
id:
integer
Title:
idPrimary key of BM_Eligibility_rule -
variableName:
string
Title:
variableNamevariable name of Eligibility Rule
Response
Default Response
Root Schema : Eligibility Rule
Type:
objectTitle:
Show Source
Eligibility Rule-
active:
object active
Title:
activeYES indicates Active and NO indicates Inactive -
condition:
object eligibilityRuleCondition-collection
-
conditionRowGrouping:
string
Title:
conditionRowGroupingThis field holds the Eligibility rule condition row grouping information -
conditionType:
object conditionType
Title:
conditionTypeSpecifies whether condition is ALWAYS_TRUE or SIMPLE -
dateAdded:
string
Title:
dateAddedDate record is added -
dateModified:
string
Title:
dateModifieddate record is modified -
description:
string
Title:
descriptionDescription of Eligibiltiy Rule -
endDate:
string
Title:
endDateEligibility rule end date -
id:
integer
Title:
idPrimary key of BM_Eligibility_rule -
isRuleChanged:
boolean
Title:
isRuleChangedYes indicates rule got modified and No indicates Rule did not get modified -
isRuleInvalid:
boolean
Title:
isRuleInvalidYes indicates rule is invalid and No indicates rule is valid -
lastDeployedDate:
string
Title:
lastDeployedDateEligibility rule deployed date -
name:
string
Title:
nameName of Eligibility Rule -
processName:
string
Title:
processNameName of process associated with rule -
ruleType:
object ruleType
Title:
ruleTypeIndicates whether AVAILABLE or NOT_AVAILABLE rule -
selection:
object eligibilityRuleSelection-collection
-
selectionRowGrouping:
string
Title:
selectionRowGroupingThis fields holds Eligibility rule selection row grouping information -
selectionType:
object selectionType
Title:
selectionTypeThis field specifies whether selection is ALL, NONE or SIMPLE -
startDate:
string
Title:
startDateEligibility Rule start date -
variableName:
string
Title:
variableNamevariable name of Eligibility Rule
Nested Schema : active
Type:
objectTitle:
activeYES indicates Active and NO indicates Inactive
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : eligibilityRuleCondition-collection
Type:
Show Source
object-
count:
integer
The number of resource instances returned in the current range.
-
hasMore:
boolean
Returns true if more resources are available on the server than the subset returned in current page.
-
items:
array items
-
limit:
integer
The actual paging size used by the server.
-
offset:
integer
The offset used in the current page.
-
totalResults:
integer
Capture the total count of the resource instances, which not only includes the instances in the current range, but all instances on the server that satisfy the request.
Nested Schema : conditionType
Type:
objectTitle:
conditionTypeSpecifies whether condition is ALWAYS_TRUE or SIMPLE
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : ruleType
Type:
objectTitle:
ruleTypeIndicates whether AVAILABLE or NOT_AVAILABLE rule
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : eligibilityRuleSelection-collection
Type:
Show Source
object-
count:
integer
The number of resource instances returned in the current range.
-
hasMore:
boolean
Returns true if more resources are available on the server than the subset returned in current page.
-
items:
array items
-
limit:
integer
The actual paging size used by the server.
-
offset:
integer
The offset used in the current page.
-
totalResults:
integer
Capture the total count of the resource instances, which not only includes the instances in the current range, but all instances on the server that satisfy the request.
Nested Schema : selectionType
Type:
objectTitle:
selectionTypeThis field specifies whether selection is ALL, NONE or SIMPLE
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : items
Type:
Show Source
array-
Array of:
object Eligibility Rule Condition
Title:
Eligibility Rule Condition
Nested Schema : Eligibility Rule Condition
Type:
objectTitle:
Show Source
Eligibility Rule Condition-
attributeName:
string
Title:
attributeNameData source field for condition is stored in this field -
dataType:
object dataType
Title:
dataTypeIndicates data type of attributeName -
dateAdded:
string
Title:
dateAddeddate on which this record is added -
dateModified:
string
Title:
dateModified -
id:
integer
Title:
id -
operator:
object operator
Title:
operatoropearator for condition is stored in this field -
ruleConditionIndex:
integer
Title:
ruleConditionIndexrow index of Rule condition -
ruleId:
object ruleId
Title:
ruleIdForeign key field -
value:
string
Title:
valuevalue for condition is stored in this field
Nested Schema : dataType
Type:
objectTitle:
dataTypeIndicates data type of attributeName
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : operator
Type:
objectTitle:
operatoropearator for condition is stored in this field
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : ruleId
Type:
objectTitle:
ruleIdForeign key field
Show Source
-
id:
integer
Title:
idPrimary key of BM_Eligibility_rule -
variableName:
string
Title:
variableNamevariable name of Eligibility Rule
Nested Schema : items
Type:
Show Source
array-
Array of:
object Eligibility Rule Selection
Title:
Eligibility Rule Selection
Nested Schema : Eligibility Rule Selection
Type:
objectTitle:
Show Source
Eligibility Rule Selection-
dataType:
object dataType
Title:
dataTypeIndicates data type of attributeName -
dateAdded:
string
Title:
dateAdded -
dateModified:
string
Title:
dateModified -
id:
integer
Title:
idprimary key of selection table -
operator:
object operator
Title:
operatorOperator chosen for selection -
partField:
string
Title:
partFieldPart field selected in selection -
ruleId:
object ruleId
Title:
ruleIdForeign key to rule table -
ruleSelectionIndex:
integer
Title:
ruleSelectionIndexindex of rule selection index -
value:
string
Title:
valuevalue for selection is stored in this field
Nested Schema : dataType
Type:
objectTitle:
dataTypeIndicates data type of attributeName
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : operator
Type:
objectTitle:
operatorOperator chosen for selection
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : ruleId
Type:
objectTitle:
ruleIdForeign key to rule table
Show Source
-
id:
integer
Title:
idPrimary key of BM_Eligibility_rule -
variableName:
string
Title:
variableNamevariable name of Eligibility Rule
Examples
The following example shows how to create an Eligibility Rules by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl - X POST -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/eligibilityRule
Request Body Sample
{
"startDate": "2021-03-18",
"variableName": "testEligibilityRule",
"selectionRowGrouping": "1",
"conditionType": {
"lookupCode": "1"
},
"endDate": "2017-08-01",
"conditionRowGrouping": "1",
"description": null,
"name": "Test Eligibility Rule",
"ruleType": {
"lookupCode": "1"
},
"selectionType": {
"lookupCode": "2"
},
"active": {
"lookupCode": "1"
},
"condition": {
"items": [{
"attributeName": "/process/oraclecpqo/_main_doc/transaction/numOfRecords",
"dataType": {
"lookupCode": "3"
},
"value": null,
"operator": {
"lookupCode": "1"
},
"ruleConditionIndex": 1
}
]
},
"selection": {
"items": [{
"dataType": {
"lookupCode": "2"
},
"value": "1",
"ruleSelectionIndex": 1,
"partField": "/part/_custom_attr/field13",
"operator": {
"lookupCode": "1"
}
}
]
}
}
Response Body Sample
{
"startDate": "2021-03-18",
"dateModified": "2021-03-16T10:56:11.655Z",
"variableName": "testEligibilityRule",
"selectionRowGrouping": "1",
"conditionType": {
"lookupCode": "1",
"displayValue": "Simple",
"id": 20471574,
"links": [{
"rel": "domain",
"href": "https://sitename.oracle.com/rest/v19/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22ELIGIBILITY_RULE_COND_TYPE%22%7D%7D"
}, {
"rel": "canonical",
"href": "https://sitename.oracle.com//rest/v19/lookupValues/20471574"
}
]
},
"processName": "oraclecpqo",
"dateAdded": "2013-03-18T10:56:11.655Z",
"endDate": "2021-08-01",
"id": 20510770,
"conditionRowGrouping": "1",
"isRuleChanged": true,
"description": null,
"name": "Test Eligibility Rule",
"isRuleInvalid": false,
"ruleType": {
"lookupCode": "1",
"displayValue": "Not Available",
"id": 20383423,
"links": [{
"rel": "domain",
"href": "https://sitename.oracle.com//rest/v19/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22ELIGIBILITY_RULE_TYPE%22%7D%7D"
}, {
"rel": "canonical",
"href": "https://sitename.oracle.com//rest/v19/lookupValues/20383423"
}
]
},
"lastDeployedDate": null,
"selectionType": {
"lookupCode": "2",
"displayValue": "Simple",
"id": 20471577,
"links": [{
"rel": "domain",
"href": "https://sitename.oracle.com//rest/v19/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22ELIGIBILITY_RULE_SEL_TYPE%22%7D%7D"
}, {
"rel": "canonical",
"href": "https://sitename.oracle.com//rest/v19/lookupValues/20471577"
}
]
},
"active": {
"lookupCode": "1",
"displayValue": "Yes",
"id": 20383422,
"links": [{
"rel": "domain",
"href": "https://sitename.oracle.com//rest/v19/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22ELIGIBILITY_RULE_ACTIVE_CODE%22%7D%7D"
}, {
"rel": "canonical",
"href": "https://sitename.oracle.com//rest/v19/lookupValues/20383422"
}
]
},
"condition": {
"hasMore": false,
"items": [{
"dateModified": "2018-03-18T10:56:11.657Z",
"dateAdded": "2018-03-18T10:56:11.657Z",
"operator": {
"lookupCode": "1",
"displayValue": "Equal",
"id": 20471586,
"links": [{
"rel": "domain",
"href": "https://sitename.oracle.com//rest/v19/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22ELIGIBILITY_RULE_OPERATOR_TYPE%22%7D%7D"
}, {
"rel": "canonical",
"href": "https://sitename.oracle.com//rest/v19/lookupValues/20471586"
}
]
},
"attributeName": "/process/oraclecpqo/_main_doc/transaction/numOfRecords",
"id": 20510771,
"dataType": {
"lookupCode": "3",
"displayValue": "Single Select Menu",
"id": 20471581,
"links": [{
"rel": "domain",
"href": "https://sitename.oracle.com//rest/v19/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22ELIGIBILITY_RULE_DATA_TYPE%22%7D%7D"
}, {
"rel": "canonical",
"href": "https://sitename.oracle.com//rest/v19/lookupValues/20471581"
}
]
},
"ruleId": {
"id": 20510770,
"variableName": "testEligibilityRule",
"links": [{
"rel": "domain",
"href": "https://sitename.oracle.com//rest/v19/eligibilityRule"
}, {
"rel": "canonical",
"href": "https://sitename.oracle.com//rest/v19/eligibilityRule/20510770"
}
]
},
"value": null,
"ruleConditionIndex": 1,
"links": [{
"rel": "self",
"href": "https://sitename.oracle.com//rest/v19/eligibilityRule/20510770/condition/20510771"
}, {
"rel": "parent",
"href": "https://sitename.oracle.com//rest/v19/eligibilityRule/20510770"
}
]
}
],
"links": [{
"rel": "self",
"href": "https://sitename.oracle.com//rest/v19/eligibilityRule/20510770/condition"
}
]
},
"selection": {
"hasMore": false,
"items": [{
"dateModified": "2021-03-18T10:56:11.658Z",
"dateAdded": "2021-03-18T10:56:11.658Z",
"partField": "/part/_custom_attr/field13",
"operator": {
"lookupCode": "1",
"displayValue": "Equal",
"id": 20471586,
"links": [{
"rel": "domain",
"href": "https://sitename.oracle.com//rest/v19/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22ELIGIBILITY_RULE_OPERATOR_TYPE%22%7D%7D"
}, {
"rel": "canonical",
"href": "https://sitename.oracle.com//rest/v19/lookupValues/20471586"
}
]
},
"id": 20510772,
"dataType": {
"lookupCode": "2",
"displayValue": "Text",
"id": 20471580,
"links": [{
"rel": "domain",
"href": "https://sitename.oracle.com//rest/v19/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22ELIGIBILITY_RULE_DATA_TYPE%22%7D%7D"
}, {
"rel": "canonical",
"href": "https://sitename.oracle.com//rest/v19/lookupValues/20471580"
}
]
},
"ruleId": {
"id": 20510770,
"variableName": "test",
"links": [{
"rel": "domain",
"href": "https://sitename.oracle.com//rest/v19/eligibilityRule"
}, {
"rel": "canonical",
"href": "https://sitename.oracle.com//rest/v19/eligibilityRule/20510770"
}
]
},
"value": "1",
"ruleSelectionIndex": 1,
"links": [{
"rel": "self",
"href": "https://sitename.oracle.com//rest/v19/eligibilityRule/20510770/selection/20510772"
}, {
"rel": "parent",
"href": "https://sitename.oracle.com//rest/v19/eligibilityRule/20510770"
}
]
}
],
"links": [{
"rel": "self",
"href": "https://sitename.oracle.com//rest/v19/eligibilityRule/20510770/selection"
}
]
},
"links": [{
"rel": "self",
"href": "https://sitename.oracle.com//rest/v19/eligibilityRule/20510770"
}
]
}