Skip to content

Commit

Permalink
LRDOCS-12695 Add Distributor App Object lines 1-200
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudioss23 authored and brianchandotcom committed May 9, 2024
1 parent 1712ab0 commit 810eba3
Show file tree
Hide file tree
Showing 2 changed files with 259 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,258 @@
{
"configuration": {
"className": "com.liferay.object.admin.rest.dto.v1_0.ObjectDefinition",
"parameters": {
"containsHeaders": "true",
"createStrategy": "UPSERT",
"onErrorFail": "false",
"updateStrategy": "UPDATE"
},
"taskItemDelegateName": "DEFAULT"
},
"items": [
{
"active": true,
"defaultLanguageId": "en_US",
"enableCategorization": true,
"externalReferenceCode": "D4B8_DISTRIBUTOR_APPLICATION",
"label": {
"en_US": "D4B8 Distributor Application"
},
"modifiable": true,
"name": "D4B8DistributorApplication",
"objectActions": [
{
"active": true,
"conditionExpression": "applicationState == \"approved\" AND status == 0",
"description": "On after update, send notifications to applicants when state is approved.",
"label": {
"en_US": "Application Approved"
},
"name": "applicationApproved",
"objectActionExecutorKey": "notification",
"objectActionTriggerKey": "onAfterUpdate",
"parameters": {
"notificationTemplateExternalReferenceCode": "D4B8_APPLICATION_APPROVED_APPLICANT_EMAIL",
"type": "email"
},
"status": {
"code": 0,
"label": "never-ran",
"label_i18n": "Never Ran"
}
},
{
"active": true,
"conditionExpression": "applicationState == \"denied\" AND status == 0",
"description": "On after update, send notifications to applicants when state is denied.",
"label": {
"en_US": "Application Denied"
},
"name": "applicationDenied",
"objectActionExecutorKey": "notification",
"objectActionTriggerKey": "onAfterUpdate",
"parameters": {
"notificationTemplateExternalReferenceCode": "D4B8_APPLICATION_DENIED_APPLICANT_EMAIL",
"type": "email"
},
"status": {
"code": 0,
"label": "never-ran",
"label_i18n": "Never Ran"
}
},
{
"active": true,
"description": "On after add, send notifications to applicants.",
"label": {
"en_US": "Application Received"
},
"name": "applicationReceived",
"objectActionExecutorKey": "notification",
"objectActionTriggerKey": "onAfterAdd",
"parameters": {
"notificationTemplateExternalReferenceCode": "D4B8_APPLICATION_RECEIVED_APPLICANT_EMAIL",
"type": "email"
},
"status": {
"code": 0,
"label": "never-ran",
"label_i18n": "Never Ran"
}
},
{
"active": true,
"description": "On after add, send notifications to administrative users.",
"label": {
"en_US": "Application Submitted"
},
"name": "applicationSubmitted",
"objectActionExecutorKey": "notification",
"objectActionTriggerKey": "onAfterAdd",
"parameters": {
"notificationTemplateExternalReferenceCode": "D4B8_APPLICATION_SUBMITTED_ADMIN_USER",
"type": "userNotification"
},
"status": {
"code": 0,
"label": "never-ran",
"label_i18n": "Never Ran"
}
},
{
"active": true,
"description": "Standalone, create a business account for an approved application.",
"errorMessage": {
"en_US": "Failed to create the business account."
},
"label": {
"en_US": "Set Up Account"
},
"name": "setUpAccount",
"objectActionExecutorKey": "function#liferay-clarity-etc-spring-boot-object-action-account",
"objectActionTriggerKey": "standalone",
"parameters": {
},
"status": {
"code": 0,
"label": "never-ran",
"label_i18n": "Never Ran"
}
}
],
"objectFields": [
{
"DBType": "String",
"businessType": "Text",
"indexed": true,
"indexedLanguageId": "en_US",
"label": {
"en_US": "Applicant Email"
},
"name": "applicantEmail",
"objectFieldSettings": [
{
"name": "uniqueValues",
"value": true
}
],
"readOnly": "false",
"required": true,
"state": false,
"type": "String",
"unique": true
},
{
"DBType": "String",
"businessType": "Text",
"indexed": true,
"indexedLanguageId": "en_US",
"label": {
"en_US": "Applicant Name"
},
"name": "applicantName",
"readOnly": "false",
"required": true,
"state": false,
"type": "String"
},
{
"DBType": "String",
"businessType": "Picklist",
"defaultValue": "open",
"indexed": true,
"indexedLanguageId": "en_US",
"label": {
"en_US": "Application State"
},
"listTypeDefinitionExternalReferenceCode": "D4B8_APPLICATION_STATES",
"name": "applicationState",
"objectFieldSettings": [
{
"name": "defaultValue",
"value": "open"
},
{
"name": "defaultValueType",
"value": "inputAsValue"
},
{
"name": "stateFlow",
"value": {
"objectStates": [
{
"key": "approved",
"objectStateTransitions": [
{
"key": "underReview"
}
]
},
{
"key": "denied",
"objectStateTransitions": [
{
"key": "underReview"
}
]
},
{
"key": "onHold",
"objectStateTransitions": [
{
"key": "open"
},
{
"key": "underReview"
}
]
},
{
"key": "open",
"objectStateTransitions": [
{
"key": "underReview"
},
{
"key": "withdrawn"
}
]
},
{
"key": "underReview",
"objectStateTransitions": [
{
"key": "approved"
},
{
"key": "denied"
},
{
"key": "onHold"
},
{
"key": "withdrawn"
}
]
},
{
"key": "withdrawn",
"objectStateTransitions": [
{
"key": "open"
}
]
}
]
}
}
],
"readOnly": "false",
"required": true,
"state": true,
"type": "String"
}
]
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ liferay-clarity-batch-oauth-application-headless-server:
- Liferay.Headless.Admin.Workflow.everything
- Liferay.Headless.Batch.Engine.everything
- Liferay.Notification.REST.everything
- Liferay.Object.Admin.REST.everything
type: oAuthApplicationHeadlessServer

0 comments on commit 810eba3

Please sign in to comment.