forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LRDOCS-12695 Add Distributor App Object lines 1-200
- Loading branch information
1 parent
1712ab0
commit 810eba3
Showing
2 changed files
with
259 additions
and
0 deletions.
There are no files selected for viewing
258 changes: 258 additions & 0 deletions
258
...client-extensions/liferay-clarity-batch/batch/01-object-definition.batch-engine-data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters