Initial commit
This commit is contained in:
21
custom/Espo/Modules/Advanced/Resources/metadata/app/acl.json
Normal file
21
custom/Espo/Modules/Advanced/Resources/metadata/app/acl.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"mandatory": {
|
||||
"scopeLevel": {
|
||||
"Workflow": false,
|
||||
"WorkflowLogRecord": false,
|
||||
"ReportPanel": false,
|
||||
"BpmnFlowNode": "BpmnProcess"
|
||||
}
|
||||
},
|
||||
"adminMandatory": {
|
||||
"scopeLevel": {
|
||||
"BpmnFlowchart": {
|
||||
"create": "yes",
|
||||
"read": "all",
|
||||
"edit": "all",
|
||||
"delete": "all",
|
||||
"stream": "all"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"mandatory": {
|
||||
"scopeFieldLevel": {
|
||||
"Report": {
|
||||
"portals": false,
|
||||
"assignedUser": false,
|
||||
"teams": false,
|
||||
"emailSendingInterval": false,
|
||||
"emailSendingSettingMonth": false,
|
||||
"emailSendingSettingDay": false,
|
||||
"emailSendingSettingWeekdays": false,
|
||||
"emailSendingTime": false,
|
||||
"emailSendingUsers": false,
|
||||
"emailSendingLastDateSent": false,
|
||||
"emailSendingDoNotSendEmptyReport": false,
|
||||
"applyAcl": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"scopeFieldLevel": {
|
||||
"Report": {
|
||||
"modifiedAt": false,
|
||||
"modifiedBy": false,
|
||||
"createdAt": false,
|
||||
"createdBy": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"strictDefault": {
|
||||
"scopeFieldLevel": {
|
||||
"Report": {
|
||||
"modifiedAt": false,
|
||||
"modifiedBy": false,
|
||||
"createdAt": false,
|
||||
"createdBy": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"customization": {
|
||||
"itemList": [
|
||||
"__APPEND__",
|
||||
{
|
||||
"url":"#ReportFilter",
|
||||
"label": "Report Filters",
|
||||
"iconClass": "fas fa-filter",
|
||||
"description": "reportFilters"
|
||||
},
|
||||
{
|
||||
"url":"#ReportPanel",
|
||||
"label": "Report Panels",
|
||||
"iconClass": "fas fa-chart-area",
|
||||
"description": "reportPanels"
|
||||
}
|
||||
]
|
||||
},
|
||||
"workflows": {
|
||||
"label": "Workflow Manager",
|
||||
"itemList": [
|
||||
{
|
||||
"url":"#Workflow",
|
||||
"label":"Workflow Manager",
|
||||
"iconClass": "fas fa-code-branch icon-rotate-180",
|
||||
"description":"workflowManager",
|
||||
"tabQuickSearch": true
|
||||
}
|
||||
],
|
||||
"order": 99
|
||||
},
|
||||
"bpmn": {
|
||||
"label": "Business Process Management",
|
||||
"itemList": [
|
||||
{
|
||||
"url":"#BpmnFlowchart",
|
||||
"label":"Flowcharts",
|
||||
"iconClass": "fas fa-project-diagram",
|
||||
"description":"bpmnFlowcharts",
|
||||
"tabQuickSearch": true
|
||||
},
|
||||
{
|
||||
"url":"#BpmnProcess",
|
||||
"label":"Processes",
|
||||
"iconClass": "fas fa-cogs",
|
||||
"description":"bpmnProcesses",
|
||||
"tabQuickSearch": true
|
||||
}
|
||||
],
|
||||
"order": 100
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"fieldTypeList": [
|
||||
"currencyConverted",
|
||||
"int",
|
||||
"float",
|
||||
"duration",
|
||||
"enumInt",
|
||||
"enumFloat",
|
||||
"enum",
|
||||
"varchar",
|
||||
"link",
|
||||
"date",
|
||||
"datetime",
|
||||
"datetimeOptional",
|
||||
"email",
|
||||
"phone",
|
||||
"url",
|
||||
"personName",
|
||||
"array",
|
||||
"multiEnum",
|
||||
"checklist",
|
||||
"urlMultiple",
|
||||
"decimal"
|
||||
],
|
||||
"numericFieldTypeList": [
|
||||
"currencyConverted",
|
||||
"int",
|
||||
"float",
|
||||
"enumInt",
|
||||
"enumFloat",
|
||||
"duration",
|
||||
"decimal"
|
||||
],
|
||||
"noGroupFieldTypeList": [
|
||||
"linkMultiple",
|
||||
"date",
|
||||
"datetime",
|
||||
"datetimeOptional",
|
||||
"currency",
|
||||
"currencyConverted",
|
||||
"text",
|
||||
"map",
|
||||
"multiEnum",
|
||||
"array",
|
||||
"checklist",
|
||||
"urlMultiple",
|
||||
"address",
|
||||
"foreign",
|
||||
"linkOne",
|
||||
"attachmentMultiple"
|
||||
],
|
||||
"noForeignGroupFieldTypeList": [
|
||||
"linkParent",
|
||||
"phone",
|
||||
"email",
|
||||
"personName"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"flowchartEntityTypeList": {
|
||||
"className": "Espo\\Modules\\Advanced\\Core\\AppParams\\FlowchartEntityTypeList"
|
||||
},
|
||||
"manualWorkflows": {
|
||||
"className": "Espo\\Modules\\Advanced\\Classes\\AppParams\\ManualWorkflows"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"workflowLog": {
|
||||
"className": "Espo\\Modules\\Advanced\\Core\\Cleanup\\WorkflowLog",
|
||||
"order": 20
|
||||
},
|
||||
"advancedPack": {
|
||||
"className": "Espo\\Modules\\Advanced\\Core\\Cleanup\\Integrity"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"scriptList": [
|
||||
"__APPEND__",
|
||||
"client/custom/modules/advanced/lib/init.js"
|
||||
],
|
||||
"cssList": [
|
||||
"__APPEND__",
|
||||
"client/custom/modules/advanced/css/advanced.css"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"Report/show/:id": {
|
||||
"params": {
|
||||
"controller": "Report",
|
||||
"action": "show"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"workflowManager": {
|
||||
"loaderClassName": "Espo\\Modules\\Advanced\\Core\\Loaders\\WorkflowManager"
|
||||
},
|
||||
"workflowHelper": {
|
||||
"loaderClassName": "Espo\\Modules\\Advanced\\Core\\Loaders\\WorkflowHelper"
|
||||
},
|
||||
"signalManager": {
|
||||
"loaderClassName": "Espo\\Modules\\Advanced\\Core\\Loaders\\SignalManager"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"gridReportFormatList": [
|
||||
"xlsx",
|
||||
"csv"
|
||||
]
|
||||
}
|
||||
128
custom/Espo/Modules/Advanced/Resources/metadata/app/formula.json
Normal file
128
custom/Espo/Modules/Advanced/Resources/metadata/app/formula.json
Normal file
@@ -0,0 +1,128 @@
|
||||
{
|
||||
"functionClassNameMap": {
|
||||
"processEntity\\attribute": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\BpmGroup\\ProcessEntityGroup\\AttributeType",
|
||||
"bpm\\broadcastSignal": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\BpmGroup\\BroadcastSignalType",
|
||||
"bpm\\processEntity\\attribute": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\BpmGroup\\ProcessEntityGroup\\AttributeType",
|
||||
"bpm\\createdEntity\\attribute": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\BpmGroup\\CreatedEntityGroup\\AttributeType",
|
||||
"bpm\\targetEntity\\attribute": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\TargetEntityGroup\\AttributeType",
|
||||
"bpm\\startProcess": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\BpmGroup\\StartProcessType",
|
||||
"bpm\\caughtErrorMessage": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\BpmGroup\\CaughtErrorMessage",
|
||||
"bpm\\caughtErrorCode": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\BpmGroup\\CaughtErrorCode",
|
||||
"targetEntity\\attribute": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\TargetEntityGroup\\AttributeType",
|
||||
"targetEntity\\attributeFetched": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\TargetEntityGroup\\AttributeFetchedType",
|
||||
"targetEntity\\isAttributeChanged": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\TargetEntityGroup\\IsAttributeChangedType",
|
||||
"targetEntity\\isAttributeNotChanged": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\TargetEntityGroup\\IsAttributeNotChangedType",
|
||||
"targetEntity\\isNew": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\TargetEntityGroup\\IsNewType",
|
||||
"targetEntity\\isRelated": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\TargetEntityGroup\\IsRelatedType",
|
||||
"targetEntity\\hasLinkMultipleId": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\TargetEntityGroup\\HasLinkMultipleIdType",
|
||||
"workflow\\lastHttpResponseBody": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\WorkflowGroup\\LastHttpResponseBodyType",
|
||||
"workflow\\lastHttpResponseCode": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\WorkflowGroup\\LastHttpResponseCodeType",
|
||||
"workflow\\trigger": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\WorkflowGroup\\TriggerType",
|
||||
"workflow\\targetEntity\\attribute": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\TargetEntityGroup\\AttributeType",
|
||||
"workflow\\targetEntity\\attributeFetched": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\TargetEntityGroup\\AttributeFetchedType",
|
||||
"workflow\\targetEntity\\isAttributeChanged": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\TargetEntityGroup\\IsAttributeChangedType",
|
||||
"workflow\\targetEntity\\isAttributeNotChanged": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\TargetEntityGroup\\IsAttributeNotChangedType",
|
||||
"workflow\\signalParam": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\WorkflowGroup\\SignalParamType",
|
||||
"workflow\\lastCreatedEntityId": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\WorkflowGroup\\LastCreatedEntityIdType",
|
||||
"workflow\\alert": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\WorkflowGroup\\AlertType",
|
||||
"report\\recordAttribute": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\ReportGroup\\RecordAttribute",
|
||||
"report\\export": "Espo\\Modules\\Advanced\\Core\\Workflow\\Formula\\Functions\\ReportGroup\\Export"
|
||||
},
|
||||
"functionList": [
|
||||
"__APPEND__",
|
||||
{
|
||||
"name": "report\\export",
|
||||
"insertText": "report\\export('REPORT_ID')",
|
||||
"returnType": "string",
|
||||
"unsafe": true
|
||||
},
|
||||
{
|
||||
"name": "report\\recordAttribute",
|
||||
"unsafe": true
|
||||
},
|
||||
{
|
||||
"name": "bpm\\processEntity\\attribute",
|
||||
"insertText": "bpm\\processEntity\\attribute('ATTRIBUTE_NAME')",
|
||||
"returnType": "mixed",
|
||||
"unsafe": true
|
||||
},
|
||||
{
|
||||
"name": "bpm\\targetEntity\\attribute",
|
||||
"insertText": "bpm\\targetEntity\\attribute('ATTRIBUTE_NAME)'",
|
||||
"returnType": "mixed",
|
||||
"unsafe": true
|
||||
},
|
||||
{
|
||||
"name": "bpm\\createdEntity\\attribute",
|
||||
"insertText": "bpm\\createdEntity\\attribute('ALIAS_ID', 'ATTRIBUTE_NAME')",
|
||||
"returnType": "mixed",
|
||||
"unsafe": true
|
||||
},
|
||||
{
|
||||
"name": "bpm\\broadcastSignal",
|
||||
"insertText": "bpm\\broadcastSignal(SIGNAL_NAME, [ENTITY_TYPE], [ENTITY_ID])",
|
||||
"unsafe": true
|
||||
},
|
||||
{
|
||||
"name": "bpm\\startProcess",
|
||||
"insertText": "bpm\\startProcess(FLOWCHART_ID, TARGET_TYPE, TARGET_ID)",
|
||||
"unsafe": true
|
||||
},
|
||||
{
|
||||
"name": "bpm\\caughtErrorCode",
|
||||
"insertText": "bpm\\caughtErrorCode()",
|
||||
"returnType": "?string",
|
||||
"unsafe": true
|
||||
},
|
||||
{
|
||||
"name": "bpm\\caughtErrorMessage",
|
||||
"insertText": "bpm\\caughtErrorMessage()",
|
||||
"returnType": "?string",
|
||||
"unsafe": true
|
||||
},
|
||||
{
|
||||
"name": "workflow\\targetEntity\\attribute",
|
||||
"insertText": "workflow\\targetEntity\\attribute('ATTRIBUTE_NAME')",
|
||||
"unsafe": true
|
||||
},
|
||||
{
|
||||
"name": "workflow\\targetEntity\\attributeFetched",
|
||||
"insertText": "workflow\\targetEntity\\attributeFetched('ATTRIBUTE_NAME')",
|
||||
"unsafe": true
|
||||
},
|
||||
{
|
||||
"name": "workflow\\trigger",
|
||||
"insertText": "workflow\\trigger(ENTITY_TYPE, ID, WORKFLOW_ID)",
|
||||
"unsafe": true
|
||||
},
|
||||
{
|
||||
"name": "workflow\\lastHttpResponseBody",
|
||||
"insertText": "workflow\\lastHttpResponseBody()",
|
||||
"returnType": "string|null",
|
||||
"unsafe": true
|
||||
},
|
||||
{
|
||||
"name": "workflow\\lastHttpResponseCode",
|
||||
"insertText": "workflow\\lastHttpResponseCode()",
|
||||
"returnType": "int|null",
|
||||
"unsafe": true
|
||||
},
|
||||
{
|
||||
"name": "workflow\\signalParam",
|
||||
"insertText": "workflow\\signalParam(NAME)",
|
||||
"returnType": "mixed",
|
||||
"unsafe": true
|
||||
},
|
||||
{
|
||||
"name": "workflow\\lastCreatedEntityId",
|
||||
"insertText": "workflow\\lastCreatedEntityId()",
|
||||
"returnType": "string|null",
|
||||
"unsafe": true
|
||||
},
|
||||
{
|
||||
"name": "workflow\\alert",
|
||||
"insertText": "workflow\\alert(MESSAGE)",
|
||||
"unsafe": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"aclDependencies": {
|
||||
"Workflow": {
|
||||
"anyScopeList": [
|
||||
"BpmnProcess",
|
||||
"BpmnFlowchart"
|
||||
]
|
||||
},
|
||||
"BpmnFlowchart": {
|
||||
"anyScopeList": [
|
||||
"BpmnProcess"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"AdvancedPack": {
|
||||
"isSystem": true,
|
||||
"scheduling": "3 3 * * *",
|
||||
"jobClassName": "Espo\\Modules\\Advanced\\Core\\App\\Job"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"reportTable": "Espo\\Modules\\Advanced\\Core\\TemplateHelpers\\Report"
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"reportSendingGrid1": {
|
||||
"scope": "Report",
|
||||
"module": "Advanced"
|
||||
},
|
||||
"reportSendingGrid2": {
|
||||
"scope": "Report",
|
||||
"module": "Advanced"
|
||||
},
|
||||
"reportSendingList": {
|
||||
"scope": "Report",
|
||||
"module": "Advanced"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"serviceActions": {
|
||||
"Meeting": {
|
||||
"sendEventInvitations": {
|
||||
"className": "Espo\\Modules\\Advanced\\Classes\\ServiceActions\\Meeting\\SendInvitations"
|
||||
}
|
||||
},
|
||||
"Call": {
|
||||
"sendEventInvitations": {
|
||||
"className": "Espo\\Modules\\Advanced\\Classes\\ServiceActions\\Meeting\\SendInvitations"
|
||||
}
|
||||
},
|
||||
"Contact": {
|
||||
"optOut": {
|
||||
"className": "Espo\\Modules\\Advanced\\Classes\\ServiceActions\\Person\\OptOut"
|
||||
}
|
||||
},
|
||||
"Lead": {
|
||||
"optOut": {
|
||||
"className": "Espo\\Modules\\Advanced\\Classes\\ServiceActions\\Person\\OptOut"
|
||||
}
|
||||
},
|
||||
"Account": {
|
||||
"optOut": {
|
||||
"className": "Espo\\Modules\\Advanced\\Classes\\ServiceActions\\Person\\OptOut"
|
||||
}
|
||||
},
|
||||
"User": {
|
||||
"generateAndSendPassword": {
|
||||
"className": "Espo\\Modules\\Advanced\\Classes\\ServiceActions\\User\\GenerateAndSendPassword"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user