Initial commit
This commit is contained in:
@@ -0,0 +1,124 @@
|
||||
{
|
||||
"fields": {
|
||||
"number": {
|
||||
"type": "autoincrement",
|
||||
"dbType": "bigint"
|
||||
},
|
||||
"status": {
|
||||
"type": "enum",
|
||||
"options": [
|
||||
"Created",
|
||||
"Pending",
|
||||
"In Process",
|
||||
"Standby",
|
||||
"Processed",
|
||||
"Rejected",
|
||||
"Failed",
|
||||
"Interrupted"
|
||||
],
|
||||
"style": {
|
||||
"In Process": "default",
|
||||
"Processed": "success",
|
||||
"Pending": "warning",
|
||||
"Failed": "danger",
|
||||
"Rejected": "info",
|
||||
"Interrupted": "info"
|
||||
},
|
||||
"maxLength": 36
|
||||
},
|
||||
"elementId": {
|
||||
"type": "varchar",
|
||||
"maxLength": 36
|
||||
},
|
||||
"target": {
|
||||
"type": "linkParent"
|
||||
},
|
||||
"elementType": {
|
||||
"type": "varchar",
|
||||
"maxLength": 36
|
||||
},
|
||||
"element": {
|
||||
"type": "varchar",
|
||||
"view": "advanced:views/bpmn-flow-node/fields/element",
|
||||
"notStorable": true
|
||||
},
|
||||
"elementData": {
|
||||
"type": "jsonObject"
|
||||
},
|
||||
"data": {
|
||||
"type": "jsonObject"
|
||||
},
|
||||
"previousFlowNodeElementType": {
|
||||
"type": "varchar",
|
||||
"maxLength": 36
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime"
|
||||
},
|
||||
"proceedAt": {
|
||||
"type": "datetime"
|
||||
},
|
||||
"processedAt": {
|
||||
"type": "datetime"
|
||||
},
|
||||
"userTaskId": {
|
||||
"type": "varchar",
|
||||
"notStorable": true
|
||||
},
|
||||
"subProcessId": {
|
||||
"type": "varchar",
|
||||
"notStorable": true,
|
||||
"maxLength": 36
|
||||
},
|
||||
"isLocked": {
|
||||
"type": "bool"
|
||||
},
|
||||
"isDeferred": {
|
||||
"type": "bool"
|
||||
},
|
||||
"deferredAt": {
|
||||
"type": "datetime"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"target": {
|
||||
"type": "belongsToParent"
|
||||
},
|
||||
"process": {
|
||||
"type": "belongsTo",
|
||||
"entity": "BpmnProcess",
|
||||
"noJoin": true
|
||||
},
|
||||
"flowchart": {
|
||||
"type": "belongsTo",
|
||||
"entity": "BpmnFlowchart",
|
||||
"noJoin": true
|
||||
},
|
||||
"previousFlowNode": {
|
||||
"type": "belongsTo",
|
||||
"entity": "BpmnFlowNode",
|
||||
"noJoin": true
|
||||
},
|
||||
"divergentFlowNode": {
|
||||
"type": "belongsTo",
|
||||
"entity": "BpmnFlowNode",
|
||||
"noJoin": true
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"sortBy": "number",
|
||||
"asc": false
|
||||
},
|
||||
"indexes": {
|
||||
"statusTargetTypeElementType": {
|
||||
"columns": ["status", "targetType", "elementType"]
|
||||
},
|
||||
"statusElementType": {
|
||||
"columns": ["status", "elementType"]
|
||||
},
|
||||
"statusProcessId": {
|
||||
"columns": ["status", "processId"]
|
||||
}
|
||||
},
|
||||
"hooksDisabled": true
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"trim": true
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"category": {
|
||||
"type": "link",
|
||||
"view": "views/fields/link-category-tree"
|
||||
},
|
||||
"targetType": {
|
||||
"type": "enum",
|
||||
"required": true,
|
||||
"view": "advanced:views/bpmn-flowchart/fields/entity-type",
|
||||
"readOnlyAfterCreate": true
|
||||
},
|
||||
"data": {
|
||||
"type": "jsonObject",
|
||||
"audited": true
|
||||
},
|
||||
"flowchart": {
|
||||
"type": "base",
|
||||
"view": "advanced:views/bpmn-flowchart/fields/flowchart",
|
||||
"notStorable": true,
|
||||
"exportDisabled": true,
|
||||
"importDisabled": true
|
||||
},
|
||||
"elementsDataHash": {
|
||||
"type": "jsonObject",
|
||||
"utility": true,
|
||||
"readOnly": true,
|
||||
"exportDisabled": true,
|
||||
"importDisabled": true
|
||||
},
|
||||
"isActive": {
|
||||
"type": "bool",
|
||||
"default": true,
|
||||
"audited": true
|
||||
},
|
||||
"hasNoneStartEvent": {
|
||||
"type": "bool",
|
||||
"utility": true,
|
||||
"readOnly": true,
|
||||
"exportDisabled": true,
|
||||
"importDisabled": true
|
||||
},
|
||||
"eventStartIdList": {
|
||||
"type": "jsonArray",
|
||||
"utility": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"eventStartAllIdList": {
|
||||
"type": "jsonArray",
|
||||
"utility": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"assignedUser": {
|
||||
"type": "link",
|
||||
"view": "views/fields/assigned-user"
|
||||
},
|
||||
"teams": {
|
||||
"type": "linkMultiple",
|
||||
"view": "views/fields/teams"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"processes": {
|
||||
"type": "hasMany",
|
||||
"entity": "BpmnProcess",
|
||||
"foreign": "flowchart"
|
||||
},
|
||||
"startWorkflows": {
|
||||
"type": "hasMany",
|
||||
"entity": "Workflow",
|
||||
"foreign": "flowchart",
|
||||
"utility": true,
|
||||
"layoutRelationshipsDisabled": true
|
||||
},
|
||||
"category": {
|
||||
"type": "belongsTo",
|
||||
"foreign": "flowcharts",
|
||||
"entity": "BpmnFlowchartCategory"
|
||||
},
|
||||
"assignedUser": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"teams": {
|
||||
"type": "hasMany",
|
||||
"entity": "Team",
|
||||
"relationName": "entityTeam",
|
||||
"layoutRelationshipsDisabled": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"orderBy": "createdAt",
|
||||
"order": "desc"
|
||||
},
|
||||
"targetTypeListToIgnore": [
|
||||
"ProductBrand",
|
||||
"QuoteItem",
|
||||
"OpportunityItem",
|
||||
"SalesOrderItem",
|
||||
"InvoiceItem"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"trim": true
|
||||
},
|
||||
"order": {
|
||||
"type": "int",
|
||||
"minValue": 1
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"teams": {
|
||||
"type": "linkMultiple"
|
||||
},
|
||||
"parent": {
|
||||
"type": "link",
|
||||
"view": "views/fields/link-category-tree"
|
||||
},
|
||||
"childList": {
|
||||
"type": "jsonArray",
|
||||
"notStorable": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"teams": {
|
||||
"type": "hasMany",
|
||||
"entity": "Team",
|
||||
"relationName": "entityTeam",
|
||||
"layoutRelationshipsDisabled": true
|
||||
},
|
||||
"parent": {
|
||||
"type": "belongsTo",
|
||||
"foreign": "children",
|
||||
"entity": "BpmnFlowchartCategory"
|
||||
},
|
||||
"children": {
|
||||
"type": "hasMany",
|
||||
"foreign": "parent",
|
||||
"entity": "BpmnFlowchartCategory",
|
||||
"readOnly": true
|
||||
},
|
||||
"flowcharts": {
|
||||
"type": "hasMany",
|
||||
"foreign": "category",
|
||||
"entity": "BpmnFlowchart"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"sortBy": "parent",
|
||||
"asc": true
|
||||
},
|
||||
"additionalTables": {
|
||||
"BpmnFlowchartCategoryPath": {
|
||||
"fields": {
|
||||
"id": {
|
||||
"type": "id",
|
||||
"dbType": "integer",
|
||||
"len": 11,
|
||||
"autoincrement": true
|
||||
},
|
||||
"ascendorId": {
|
||||
"type": "foreignId",
|
||||
"index": true
|
||||
},
|
||||
"descendorId" : {
|
||||
"type": "foreignId",
|
||||
"index": true
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"repositoryClassName": "Espo\\Core\\Repositories\\CategoryTree"
|
||||
}
|
||||
@@ -0,0 +1,237 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"trim": true
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"status": {
|
||||
"type": "enum",
|
||||
"options": [
|
||||
"Created",
|
||||
"Started",
|
||||
"Ended",
|
||||
"Paused",
|
||||
"Stopped",
|
||||
"Interrupted"
|
||||
],
|
||||
"style": {
|
||||
"Started": "primary",
|
||||
"Ended": "success",
|
||||
"Paused": "warning",
|
||||
"Stopped": "info",
|
||||
"Interrupted": "info"
|
||||
},
|
||||
"displayAsLabel": true,
|
||||
"labelType": "state",
|
||||
"default": "Created",
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"targetType": {
|
||||
"type": "enum",
|
||||
"view": "advanced:views/bpmn-process/fields/target-type",
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"target": {
|
||||
"type": "linkParent",
|
||||
"view": "advanced:views/bpmn-process/fields/target",
|
||||
"required": true,
|
||||
"readOnlyAfterCreate": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"flowchartData": {
|
||||
"type": "jsonObject",
|
||||
"readOnly": true,
|
||||
"utility": true,
|
||||
"customizationDisabled": true,
|
||||
"layoutAvailabilityList": []
|
||||
},
|
||||
"startElementId": {
|
||||
"type": "varchar",
|
||||
"maxLength": 24,
|
||||
"required": true,
|
||||
"view": "advanced:views/bpmn-process/fields/start-element-id",
|
||||
"customizationDisabled": true,
|
||||
"readOnlyAfterCreate": true
|
||||
},
|
||||
"flowchartElementsDataHash": {
|
||||
"type": "jsonObject",
|
||||
"utility": true,
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true,
|
||||
"layoutAvailabilityList": []
|
||||
},
|
||||
"flowchartVisualization": {
|
||||
"type": "base",
|
||||
"readOnly": true,
|
||||
"view": "advanced:views/bpmn-process/fields/flowchart-visualization",
|
||||
"notStorable": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"flowchart": {
|
||||
"type": "link",
|
||||
"required": true,
|
||||
"view": "advanced:views/bpmn-process/fields/flowchart",
|
||||
"customizationDisabled": true,
|
||||
"readOnlyAfterCreate": true
|
||||
},
|
||||
"parentProcess": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"parentProcessFlowNode": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"rootProcess": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"createdEntitiesData": {
|
||||
"type": "jsonObject",
|
||||
"utility": true,
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true,
|
||||
"layoutAvailabilityList": []
|
||||
},
|
||||
"variables": {
|
||||
"type": "jsonObject",
|
||||
"view": "advanced:views/bpmn-process/fields/variables",
|
||||
"readOnly": true,
|
||||
"utility": true,
|
||||
"customizationDisabled": true,
|
||||
"layoutAvailabilityList": []
|
||||
},
|
||||
"workflowId": {
|
||||
"type": "varchar",
|
||||
"maxLength": 36,
|
||||
"customizationDisabled": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"isLocked": {
|
||||
"type": "bool",
|
||||
"customizationDisabled": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"visitTimestamp": {
|
||||
"type": "int",
|
||||
"dbType": "bigint",
|
||||
"customizationDisabled": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"assignedUser": {
|
||||
"type": "link",
|
||||
"view": "views/fields/assigned-user",
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"teams": {
|
||||
"type": "linkMultiple",
|
||||
"view": "views/fields/teams",
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"endedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"customizationDisabled": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"flowNodes": {
|
||||
"type": "hasMany",
|
||||
"entity": "BpmnFlowNode",
|
||||
"foreign": "process"
|
||||
},
|
||||
"userTasks": {
|
||||
"type": "hasMany",
|
||||
"entity": "BpmnUserTask",
|
||||
"foreign": "process"
|
||||
},
|
||||
"flowchart": {
|
||||
"type": "belongsTo",
|
||||
"entity": "BpmnFlowchart",
|
||||
"foreign": "processes"
|
||||
},
|
||||
"parentProcess": {
|
||||
"type": "belongsTo",
|
||||
"entity": "BpmnProcess",
|
||||
"foreign": "childProcesses"
|
||||
},
|
||||
"childProcesses": {
|
||||
"type": "hasMany",
|
||||
"entity": "BpmnProcess",
|
||||
"foreign": "parentProcess"
|
||||
},
|
||||
"parentProcessFlowNode": {
|
||||
"type": "belongsTo",
|
||||
"entity": "BpmnFlowNode",
|
||||
"foreignName": "id"
|
||||
},
|
||||
"rootProcess": {
|
||||
"type": "belongsTo",
|
||||
"entity": "BpmnProcess"
|
||||
},
|
||||
"assignedUser": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"target": {
|
||||
"type": "belongsToParent",
|
||||
"entity": "User"
|
||||
},
|
||||
"teams": {
|
||||
"type": "hasMany",
|
||||
"entity": "Team",
|
||||
"relationName": "entityTeam",
|
||||
"layoutRelationshipsDisabled": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"sortBy": "createdAt",
|
||||
"asc": false
|
||||
},
|
||||
"indexes": {
|
||||
"createdAt": {
|
||||
"columns": ["createdAt"]
|
||||
},
|
||||
"statusCreatedAt": {
|
||||
"columns": ["status", "createdAt"]
|
||||
},
|
||||
"isLockedVisitTimestamp": {
|
||||
"columns": ["status", "isLocked", "visitTimestamp"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"fields": {
|
||||
"number": {
|
||||
"type": "autoincrement",
|
||||
"dbType": "bigint"
|
||||
},
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"maxLength": 200
|
||||
},
|
||||
"isTriggered": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
"triggeredAt": {
|
||||
"type": "datetime"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"flowNode": {
|
||||
"type": "belongsTo",
|
||||
"entity": "BpmnFlowNode",
|
||||
"foreignName": "id"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"sortBy": "number",
|
||||
"asc": false
|
||||
},
|
||||
"indexes": {
|
||||
"name": {
|
||||
"columns": ["name"]
|
||||
},
|
||||
"nameNumber": {
|
||||
"columns": ["name", "number"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"trim": true,
|
||||
"readOnly": true
|
||||
},
|
||||
"actionType": {
|
||||
"type": "enum",
|
||||
"options": ["Approve", "Review", "Accomplish"],
|
||||
"readOnly": true,
|
||||
"customizationReadOnlyDisabled": true
|
||||
},
|
||||
"resolution": {
|
||||
"type": "enum",
|
||||
"options": ["", "Approved", "Rejected", "Reviewed", "Completed", "Failed", "Canceled"],
|
||||
"default": "",
|
||||
"style": {
|
||||
"Approved": "success",
|
||||
"Completed": "success"
|
||||
}
|
||||
},
|
||||
"target": {
|
||||
"type": "linkParent",
|
||||
"readOnly": true,
|
||||
"view": "advanced:views/bpmn-user-task/fields/target",
|
||||
"customizationReadOnlyDisabled": true
|
||||
},
|
||||
"process": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"customizationReadOnlyDisabled": true
|
||||
},
|
||||
"isResolved": {
|
||||
"type": "bool",
|
||||
"readOnly": true,
|
||||
"default": false,
|
||||
"customizationReadOnlyDisabled": true
|
||||
},
|
||||
"instructions": {
|
||||
"type": "text",
|
||||
"readOnly": true,
|
||||
"customizationReadOnlyDisabled": true
|
||||
},
|
||||
"flowNode": {
|
||||
"type": "link",
|
||||
"readOnly": true,
|
||||
"customizationReadOnlyDisabled": true,
|
||||
"utility": true
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"resolutionNote": {
|
||||
"type": "text"
|
||||
},
|
||||
"isCanceled": {
|
||||
"type": "bool",
|
||||
"readOnly": true,
|
||||
"customizationReadOnlyDisabled": true
|
||||
},
|
||||
"assignedUser": {
|
||||
"type": "link",
|
||||
"view": "views/fields/assigned-user"
|
||||
},
|
||||
"teams": {
|
||||
"type": "linkMultiple",
|
||||
"view": "views/fields/teams"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"process": {
|
||||
"type": "belongsTo",
|
||||
"entity": "BpmnProcess"
|
||||
},
|
||||
"flowNode": {
|
||||
"type": "belongsTo",
|
||||
"entity": "BpmnFlowNode",
|
||||
"noJoin": true,
|
||||
"utility": true,
|
||||
"layoutRelationshipsDisabled": true
|
||||
},
|
||||
"target": {
|
||||
"type": "belongsToParent",
|
||||
"foreign": "userTasks"
|
||||
},
|
||||
"assignedUser": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"teams": {
|
||||
"type": "hasMany",
|
||||
"entity": "Team",
|
||||
"relationName": "entityTeam",
|
||||
"layoutRelationshipsDisabled": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"sortBy": "createdAt",
|
||||
"asc": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
{
|
||||
"fields": {
|
||||
"from": {
|
||||
"reportDisabled": true
|
||||
},
|
||||
"to": {
|
||||
"reportDisabled": true
|
||||
},
|
||||
"cc": {
|
||||
"reportDisabled": true
|
||||
},
|
||||
"bcc": {
|
||||
"reportDisabled": true
|
||||
},
|
||||
"replyTo": {
|
||||
"reportDisabled": true
|
||||
},
|
||||
"folder": {
|
||||
"reportDisabled": true
|
||||
},
|
||||
"folderId": {
|
||||
"reportDisabled": true
|
||||
},
|
||||
"isUsers": {
|
||||
"reportDisabled": true,
|
||||
"workflowDisabled": true
|
||||
},
|
||||
"isNotRead": {
|
||||
"reportGroupByDisabled": true,
|
||||
"reportFilterDisabled": true,
|
||||
"reportOrderByDisabled": true,
|
||||
"workflowDisabled": true
|
||||
},
|
||||
"isRead": {
|
||||
"reportGroupByDisabled": true,
|
||||
"reportFilterDisabled": true,
|
||||
"reportOrderByDisabled": true,
|
||||
"workflowDisabled": true
|
||||
},
|
||||
"inTrash": {
|
||||
"reportGroupByDisabled": true,
|
||||
"reportFilterDisabled": true,
|
||||
"reportOrderByDisabled": true,
|
||||
"workflowDisabled": true
|
||||
},
|
||||
"isImportant": {
|
||||
"reportGroupByDisabled": true,
|
||||
"reportFilterDisabled": true,
|
||||
"reportOrderByDisabled": true,
|
||||
"workflowDisabled": true
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"links": {
|
||||
"reports": {
|
||||
"type": "hasMany",
|
||||
"entity": "Report",
|
||||
"foreign": "portals"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,353 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"trim": true
|
||||
},
|
||||
"entityType": {
|
||||
"type": "enum",
|
||||
"view": "advanced:views/report/fields/entity-type",
|
||||
"readOnlyAfterCreate": true
|
||||
},
|
||||
"type": {
|
||||
"type": "enum",
|
||||
"default": "Grid",
|
||||
"options": ["Grid", "List", "JointGrid"],
|
||||
"readOnlyAfterCreate": true
|
||||
},
|
||||
"data": {
|
||||
"type": "jsonObject"
|
||||
},
|
||||
"columns": {
|
||||
"type": "jsonArray",
|
||||
"tooltip": true,
|
||||
"audited": true,
|
||||
"view": "views/fields/json-object"
|
||||
},
|
||||
"groupBy": {
|
||||
"type": "jsonArray",
|
||||
"tooltip": true,
|
||||
"audited": true,
|
||||
"view": "views/fields/json-object"
|
||||
},
|
||||
"orderBy": {
|
||||
"type": "jsonArray",
|
||||
"audited": true,
|
||||
"view": "views/fields/json-object",
|
||||
"tooltip": true
|
||||
},
|
||||
"orderByList": {
|
||||
"type": "varchar",
|
||||
"view": "advanced:views/report/fields/order-by-list"
|
||||
},
|
||||
"filters": {
|
||||
"type": "jsonArray"
|
||||
},
|
||||
"filtersDataList": {
|
||||
"type": "jsonArray",
|
||||
"audited": true,
|
||||
"view": "views/fields/json-object"
|
||||
},
|
||||
"runtimeFilters": {
|
||||
"type": "jsonArray",
|
||||
"tooltip": true
|
||||
},
|
||||
"filtersData": {
|
||||
"type": "jsonObject",
|
||||
"audited": true
|
||||
},
|
||||
"columnsData": {
|
||||
"type": "jsonObject",
|
||||
"audited": true
|
||||
},
|
||||
"chartColorList": {
|
||||
"type": "array",
|
||||
"tooltip": true,
|
||||
"view": "advanced:views/report/fields/chart-color-list",
|
||||
"validationList": [],
|
||||
"mandatoryValidationList": [
|
||||
"array",
|
||||
"arrayOfString",
|
||||
"valid"
|
||||
],
|
||||
"doNotStoreArrayValues": true
|
||||
},
|
||||
"chartColors": {
|
||||
"type": "jsonObject"
|
||||
},
|
||||
"chartColor": {
|
||||
"type": "colorpicker",
|
||||
"maxLength": 7,
|
||||
"default": "#6FA8D6"
|
||||
},
|
||||
"chartDataList": {
|
||||
"type": "jsonArray"
|
||||
},
|
||||
"chartOneColumns": {
|
||||
"type": "multiEnum",
|
||||
"notStorable": true,
|
||||
"view": "advanced:views/report/fields/chart-columns",
|
||||
"tooltip": true
|
||||
},
|
||||
"chartOneY2Columns": {
|
||||
"type": "multiEnum",
|
||||
"notStorable": true,
|
||||
"view": "advanced:views/report/fields/chart-columns",
|
||||
"tooltip": true
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"chartType": {
|
||||
"type": "enum",
|
||||
"options": [
|
||||
"",
|
||||
"BarVertical",
|
||||
"BarHorizontal",
|
||||
"BarGroupedVertical",
|
||||
"BarGroupedHorizontal",
|
||||
"Pie",
|
||||
"Line",
|
||||
"Radar"
|
||||
],
|
||||
"optionListMap": {
|
||||
"0": ["", "BarVertical", "BarHorizontal"],
|
||||
"1": ["", "BarVertical", "BarHorizontal", "Pie", "Line", "Radar"],
|
||||
"2": ["", "BarVertical", "BarHorizontal", "BarGroupedVertical", "BarGroupedHorizontal", "Line"]
|
||||
}
|
||||
},
|
||||
"depth": {
|
||||
"type": "int"
|
||||
},
|
||||
"isInternal": {
|
||||
"type": "bool"
|
||||
},
|
||||
"internalClassName": {
|
||||
"type": "varchar",
|
||||
"readOnly": true
|
||||
},
|
||||
"category": {
|
||||
"type": "link",
|
||||
"view": "views/fields/link-category-tree"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"assignedUser": {
|
||||
"type": "link",
|
||||
"view": "views/fields/assigned-user"
|
||||
},
|
||||
"teams": {
|
||||
"type": "linkMultiple"
|
||||
},
|
||||
"portals": {
|
||||
"type": "linkMultiple",
|
||||
"tooltip": true
|
||||
},
|
||||
"emailSendingInterval": {
|
||||
"type": "enum",
|
||||
"options": [
|
||||
"",
|
||||
"Daily",
|
||||
"Weekly",
|
||||
"Monthly",
|
||||
"Yearly"
|
||||
]
|
||||
},
|
||||
"emailSendingSettingMonth": {
|
||||
"type": "enum",
|
||||
"dbType": "int",
|
||||
"options": ["","1","2","3","4","5","6","7","8","9","10","11","12"],
|
||||
"view": "advanced:views/report/fields/email-sending-month"
|
||||
},
|
||||
"emailSendingSettingDay": {
|
||||
"type": "enum",
|
||||
"dbType": "int",
|
||||
"view": "advanced:views/report/fields/email-sending-day",
|
||||
"options": ["","1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31", "32"]
|
||||
},
|
||||
"emailSendingSettingWeekdays": {
|
||||
"type": "varchar",
|
||||
"view": "advanced:views/report/fields/email-sending-weekdays"
|
||||
},
|
||||
"emailSendingTime": {
|
||||
"type": "base",
|
||||
"required": true,
|
||||
"dbType": "time",
|
||||
"view": "advanced:views/report/fields/email-sending-time"
|
||||
},
|
||||
"emailSendingUsers": {
|
||||
"type": "linkMultiple",
|
||||
"tooltip": true
|
||||
},
|
||||
"emailSendingLastDateSent": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"emailSendingDoNotSendEmptyReport": {
|
||||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
"applyAcl": {
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"joinedReports": {
|
||||
"type": "linkMultiple",
|
||||
"entity": "Report",
|
||||
"notStorable": true,
|
||||
"columns": {
|
||||
"label": "joinedReportLabel"
|
||||
},
|
||||
"view": "advanced:views/report/fields/joined-reports"
|
||||
},
|
||||
"joinedReportLabel": {
|
||||
"type": "varchar",
|
||||
"notStorable": true,
|
||||
"utility": true
|
||||
},
|
||||
"joinedReportDataList": {
|
||||
"type": "jsonArray",
|
||||
"utility": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"assignedUser": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"teams": {
|
||||
"type": "hasMany",
|
||||
"entity": "Team",
|
||||
"relationName": "EntityTeam"
|
||||
},
|
||||
"portals": {
|
||||
"type": "hasMany",
|
||||
"entity": "Portal",
|
||||
"foreign": "reports"
|
||||
},
|
||||
"syncTargetLists": {
|
||||
"type": "hasMany",
|
||||
"entity": "TargetList",
|
||||
"foreign": "syncWithReports"
|
||||
},
|
||||
"emailSendingUsers": {
|
||||
"type": "hasMany",
|
||||
"entity": "User",
|
||||
"foreign": "reportEmailSending"
|
||||
},
|
||||
"category": {
|
||||
"type": "belongsTo",
|
||||
"foreign": "reports",
|
||||
"entity": "ReportCategory"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"sortBy": "name",
|
||||
"asc": true
|
||||
},
|
||||
"entityListToIgnore": [
|
||||
"Job",
|
||||
"UniqueId",
|
||||
"Role",
|
||||
"ScheduledJob",
|
||||
"ScheduledJobLogRecord",
|
||||
"PhoneNumber",
|
||||
"Notification",
|
||||
"EmailAddress",
|
||||
"EmailAccount",
|
||||
"EmailTemplate",
|
||||
"Attachment",
|
||||
"Extension",
|
||||
"InboundEmail",
|
||||
"AuthToken",
|
||||
"Integration",
|
||||
"ExternalAccount",
|
||||
"Currency",
|
||||
"Note",
|
||||
"Workflow",
|
||||
"Report",
|
||||
"Reminder",
|
||||
"PasswordChangeRequest",
|
||||
"Team",
|
||||
"GoogleCalendar",
|
||||
"GoogleCalendarUser",
|
||||
"GoogleCalendarRecurrentEvent",
|
||||
"MailChimpLogMarker",
|
||||
"MailChimp",
|
||||
"MailChimpCampaign",
|
||||
"MailChimpList",
|
||||
"MailChimpManualSync",
|
||||
"Import",
|
||||
"BpmnFlowchart",
|
||||
"WorkingTimeCalendar",
|
||||
"Template"
|
||||
],
|
||||
"entityListAllowed": [
|
||||
"CampaignLogRecord"
|
||||
],
|
||||
"complexExpressionFunctionList": [
|
||||
"DATE_NUMBER",
|
||||
"MONTH_NUMBER",
|
||||
"YEAR_NUMBER",
|
||||
"DAYOFWEEK_NUMBER",
|
||||
"HOUR_NUMBER",
|
||||
"MINUTE_NUMBER",
|
||||
"WEEK_NUMBER_0",
|
||||
"WEEK_NUMBER_1",
|
||||
"TRIM",
|
||||
"LENGTH"
|
||||
],
|
||||
"complexExpressionHavingFunctionList": [
|
||||
"COUNT",
|
||||
"SUM",
|
||||
"MAX",
|
||||
"MIN",
|
||||
"AVG"
|
||||
],
|
||||
"complexExpressionOperatorList": [
|
||||
"equals",
|
||||
"notEquals",
|
||||
"greaterThan",
|
||||
"lessThan",
|
||||
"greaterThanOrEquals",
|
||||
"lessThanOrEquals",
|
||||
"in",
|
||||
"notIn",
|
||||
"isTrue",
|
||||
"isFalse",
|
||||
"isNull",
|
||||
"isNotNull",
|
||||
"like"
|
||||
],
|
||||
"complexExpressionHavingOperatorList": [
|
||||
"equals",
|
||||
"notEquals",
|
||||
"greaterThan",
|
||||
"lessThan",
|
||||
"greaterThanOrEquals",
|
||||
"lessThanOrEquals"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"trim": true
|
||||
},
|
||||
"order": {
|
||||
"type": "int",
|
||||
"minValue": 1
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"teams": {
|
||||
"type": "linkMultiple"
|
||||
},
|
||||
"parent": {
|
||||
"type": "link",
|
||||
"view": "views/fields/link-category-tree"
|
||||
},
|
||||
"childList": {
|
||||
"type": "jsonArray",
|
||||
"notStorable": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"teams": {
|
||||
"type": "hasMany",
|
||||
"entity": "Team",
|
||||
"relationName": "entityTeam",
|
||||
"layoutRelationshipsDisabled": true
|
||||
},
|
||||
"parent": {
|
||||
"type": "belongsTo",
|
||||
"foreign": "children",
|
||||
"entity": "ReportCategory"
|
||||
},
|
||||
"children": {
|
||||
"type": "hasMany",
|
||||
"foreign": "parent",
|
||||
"entity": "ReportCategory",
|
||||
"readOnly": true
|
||||
},
|
||||
"reports": {
|
||||
"type": "hasMany",
|
||||
"foreign": "category",
|
||||
"entity": "Report"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"sortBy": "parent",
|
||||
"asc": true
|
||||
},
|
||||
"additionalTables": {
|
||||
"ReportCategoryPath": {
|
||||
"fields": {
|
||||
"id": {
|
||||
"type": "id",
|
||||
"dbType": "integer",
|
||||
"len": 11,
|
||||
"autoincrement": true
|
||||
},
|
||||
"ascendorId": {
|
||||
"type": "foreignId",
|
||||
"index": true
|
||||
},
|
||||
"descendorId" : {
|
||||
"type": "foreignId",
|
||||
"index": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"trim": true,
|
||||
"maxLength": 50
|
||||
},
|
||||
"entityType": {
|
||||
"type": "enum",
|
||||
"required": true,
|
||||
"view": "views/fields/entity-type"
|
||||
},
|
||||
"order": {
|
||||
"type": "int",
|
||||
"minValue": 1,
|
||||
"required": true,
|
||||
"default": 1
|
||||
},
|
||||
"isActive": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"teams": {
|
||||
"type": "linkMultiple",
|
||||
"tooltip": true
|
||||
},
|
||||
"report": {
|
||||
"type": "link",
|
||||
"tooltip": true,
|
||||
"required": true,
|
||||
"view": "advanced:views/report-filter/fields/report"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"teams": {
|
||||
"type": "hasMany",
|
||||
"entity": "Team",
|
||||
"relationName": "entityTeam",
|
||||
"layoutRelationshipsDisabled": true
|
||||
},
|
||||
"report": {
|
||||
"type": "belongsTo",
|
||||
"entity": "Report"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"sortBy": "order",
|
||||
"asc": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,138 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"trim": true,
|
||||
"maxLength": 50
|
||||
},
|
||||
"entityType": {
|
||||
"type": "enum",
|
||||
"required": true,
|
||||
"view": "advanced:views/report-panel/fields/entity-type"
|
||||
},
|
||||
"reportEntityType": {
|
||||
"type": "foreign",
|
||||
"readOnly": true,
|
||||
"link": "report",
|
||||
"field": "entityType",
|
||||
"view": "views/fields/entity-type"
|
||||
},
|
||||
"isActive": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
"type": {
|
||||
"type": "enum",
|
||||
"default": "side",
|
||||
"options": ["side", "bottom"]
|
||||
},
|
||||
"column": {
|
||||
"type": "enum",
|
||||
"view": "advanced:views/report-panel/fields/column"
|
||||
},
|
||||
"columnList": {
|
||||
"type": "jsonArray",
|
||||
"notStorable": true
|
||||
},
|
||||
"columnsData": {
|
||||
"type": "jsonObject",
|
||||
"notStorable": true
|
||||
},
|
||||
"order": {
|
||||
"type": "int",
|
||||
"minValue": 1,
|
||||
"required": true,
|
||||
"default": 7,
|
||||
"tooltip": true
|
||||
},
|
||||
"displayType": {
|
||||
"type": "enum",
|
||||
"default": "",
|
||||
"options": [
|
||||
"",
|
||||
"Chart",
|
||||
"List",
|
||||
"Chart-Total",
|
||||
"Total",
|
||||
"Table"
|
||||
],
|
||||
"translation": "Report.options.dashletDisplayType",
|
||||
"view": "advanced:views/dashlets/fields/display-type"
|
||||
},
|
||||
"displayTotal": {
|
||||
"type": "bool"
|
||||
},
|
||||
"displayOnlyTotal": {
|
||||
"type": "bool"
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"teams": {
|
||||
"type": "linkMultiple",
|
||||
"tooltip": true
|
||||
},
|
||||
"reportType": {
|
||||
"type": "foreign",
|
||||
"readOnly": true,
|
||||
"link": "report",
|
||||
"field": "type",
|
||||
"view": "views/fields/foreign-enum"
|
||||
},
|
||||
"report": {
|
||||
"type": "link",
|
||||
"tooltip": true,
|
||||
"required": true,
|
||||
"view": "advanced:views/report-panel/fields/report"
|
||||
},
|
||||
"dynamicLogicVisible": {
|
||||
"type": "jsonObject",
|
||||
"view": "advanced:views/report-panel/fields/dynamic-logic-visible"
|
||||
},
|
||||
"useSiMultiplier": {
|
||||
"type": "bool",
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"teams": {
|
||||
"type": "hasMany",
|
||||
"entity": "Team",
|
||||
"relationName": "entityTeam",
|
||||
"layoutRelationshipsDisabled": true
|
||||
},
|
||||
"report": {
|
||||
"type": "belongsTo",
|
||||
"entity": "Report"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"sortBy": "createdAt",
|
||||
"asc": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"jobSchedulingMap": {
|
||||
"ReportTargetListSync": "0 2 * * *",
|
||||
"ScheduleReportSending": "0 * * * *",
|
||||
"RunScheduledWorkflows": "*/10 * * * *",
|
||||
"ProcessPendingProcessFlows": "* * * * *"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"fields": {
|
||||
"syncWithReportsEnabled": {
|
||||
"type": "bool",
|
||||
"inlineEditDisabled": true,
|
||||
"layoutAvailabilityList": [],
|
||||
"tooltip": true
|
||||
},
|
||||
"syncWithReports": {
|
||||
"type": "linkMultiple",
|
||||
"view": "advanced:views/target-list/fields/sync-with-reports",
|
||||
"layoutAvailabilityList": [],
|
||||
"tooltip": true
|
||||
},
|
||||
"syncWithReportsUnlink": {
|
||||
"type": "bool",
|
||||
"layoutAvailabilityList": [],
|
||||
"tooltip": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"syncWithReports": {
|
||||
"type": "hasMany",
|
||||
"entity": "Report",
|
||||
"foreign": "syncTargetLists",
|
||||
"utility": true,
|
||||
"layoutRelationshipsDisabled": true
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"links": {
|
||||
"manualWorkflows": {
|
||||
"type": "hasMany",
|
||||
"entity": "Workflow",
|
||||
"foreign": "manualTeams"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"defaultTemplates": {
|
||||
"Report": {
|
||||
"body": "<h1>{{name}}</h1><br>{{reportTable border=1 borderColor=\"#333\" cellpadding=2}}",
|
||||
"footer": "<div style=\"text-align: center;\"><span style=\"font-size: 10px;\">{pageNumber}</span></div>"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"links": {
|
||||
"reportEmailSending": {
|
||||
"type": "hasMany",
|
||||
"entity": "Report",
|
||||
"foreign": "emailSendingUsers",
|
||||
"utility": true
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,432 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"trim": true
|
||||
},
|
||||
"entityType": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"view": "advanced:views/workflow/fields/entity-type",
|
||||
"tooltip": true
|
||||
},
|
||||
"type": {
|
||||
"type": "enum",
|
||||
"options": [
|
||||
"afterRecordCreated",
|
||||
"afterRecordUpdated",
|
||||
"afterRecordSaved",
|
||||
"manual",
|
||||
"scheduled",
|
||||
"sequential",
|
||||
"signal"
|
||||
],
|
||||
"default": "afterRecordCreated",
|
||||
"index": true,
|
||||
"tooltip": true
|
||||
},
|
||||
"signalName": {
|
||||
"type": "varchar",
|
||||
"maxLength": 200,
|
||||
"trim": true,
|
||||
"options": [
|
||||
"@create",
|
||||
"@update",
|
||||
"@delete",
|
||||
"@leadCapture",
|
||||
"@optOut"
|
||||
],
|
||||
"audited": true
|
||||
},
|
||||
"isActive": {
|
||||
"type": "bool",
|
||||
"default": true,
|
||||
"audited": true
|
||||
},
|
||||
"isInternal": {
|
||||
"type": "bool",
|
||||
"default": false,
|
||||
"readOnly": true,
|
||||
"utility": true
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"conditionsAll": {
|
||||
"type": "jsonArray",
|
||||
"audited": true,
|
||||
"view": "views/fields/json-object"
|
||||
},
|
||||
"conditionsAny": {
|
||||
"type": "jsonArray",
|
||||
"audited": true,
|
||||
"view": "views/fields/json-object"
|
||||
},
|
||||
"conditionsFormula": {
|
||||
"type": "text",
|
||||
"audited": true
|
||||
},
|
||||
"actions": {
|
||||
"type": "jsonArray",
|
||||
"audited": true,
|
||||
"view": "views/fields/json-object"
|
||||
},
|
||||
"portalOnly": {
|
||||
"type": "bool",
|
||||
"tooltip": true,
|
||||
"audited": true
|
||||
},
|
||||
"portal": {
|
||||
"type": "link",
|
||||
"tooltip": true,
|
||||
"audited": true
|
||||
},
|
||||
"targetReport": {
|
||||
"type": "link",
|
||||
"view": "advanced:views/workflow/fields/target-report",
|
||||
"audited": true,
|
||||
"tooltip": true
|
||||
},
|
||||
"scheduling": {
|
||||
"type": "varchar",
|
||||
"maxLength": 48,
|
||||
"default": "0 0 * * *",
|
||||
"tooltip": true,
|
||||
"view": "advanced:views/workflow/fields/scheduling",
|
||||
"audited": true,
|
||||
"noSpellCheck": true,
|
||||
"validatorClassNameList": [
|
||||
"Espo\\Modules\\Advanced\\Classes\\FieldValidators\\Workflow\\Scheduling\\Valid"
|
||||
]
|
||||
},
|
||||
"schedulingApplyTimezone": {
|
||||
"type": "bool",
|
||||
"default": true,
|
||||
"tooltip": true
|
||||
},
|
||||
"lastRun": {
|
||||
"type": "datetime",
|
||||
"readOnly": true,
|
||||
"exportDisabled": true
|
||||
},
|
||||
"flowchart": {
|
||||
"type": "link",
|
||||
"noJoin": true,
|
||||
"utility": true,
|
||||
"exportDisabled": true,
|
||||
"importDisabled": true
|
||||
},
|
||||
"manualDynamicLogic": {
|
||||
"type": "jsonObject",
|
||||
"view": "advanced:views/workflow/fields/manual-dynamic-logic",
|
||||
"tooltip": true
|
||||
},
|
||||
"manualTeams": {
|
||||
"type": "linkMultiple",
|
||||
"tooltip": true
|
||||
},
|
||||
"manualLabel": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100,
|
||||
"tooltip": true
|
||||
},
|
||||
"manualAccessRequired": {
|
||||
"type": "enum",
|
||||
"options": [
|
||||
"read",
|
||||
"edit",
|
||||
"admin"
|
||||
],
|
||||
"default": "read",
|
||||
"tooltip": true
|
||||
},
|
||||
"manualElementType": {
|
||||
"type": "enum",
|
||||
"options": [
|
||||
"Button",
|
||||
"Dropdown-Item"
|
||||
],
|
||||
"default": "Button"
|
||||
},
|
||||
"manualConfirmation": {
|
||||
"type": "bool",
|
||||
"default": true,
|
||||
"tooltip": true
|
||||
},
|
||||
"manualConfirmationText": {
|
||||
"type": "text",
|
||||
"tooltip": true
|
||||
},
|
||||
"manualStyle": {
|
||||
"type": "enum",
|
||||
"options": [
|
||||
"",
|
||||
"danger",
|
||||
"success",
|
||||
"info",
|
||||
"warning"
|
||||
],
|
||||
"translation": "LayoutManager.options.style",
|
||||
"style": {
|
||||
"danger": "danger",
|
||||
"success": "success",
|
||||
"info": "info",
|
||||
"warning": "warning"
|
||||
}
|
||||
},
|
||||
"category": {
|
||||
"type": "link",
|
||||
"view": "views/fields/link-category-tree"
|
||||
},
|
||||
"processOrder": {
|
||||
"type": "int",
|
||||
"required": true,
|
||||
"tooltip": true,
|
||||
"default": 1
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"portal": {
|
||||
"type": "belongsTo",
|
||||
"entity": "Portal"
|
||||
},
|
||||
"targetReport": {
|
||||
"type": "belongsTo",
|
||||
"entity": "Report"
|
||||
},
|
||||
"category": {
|
||||
"type": "belongsTo",
|
||||
"foreign": "workflows",
|
||||
"entity": "WorkflowCategory"
|
||||
},
|
||||
"manualTeams": {
|
||||
"type": "hasMany",
|
||||
"entity": "Team",
|
||||
"foreign": "manualWorkflows"
|
||||
},
|
||||
"workflowLogRecords": {
|
||||
"type": "hasMany",
|
||||
"entity": "WorkflowLogRecord",
|
||||
"foreign": "workflow"
|
||||
},
|
||||
"flowchart": {
|
||||
"type": "belongsTo",
|
||||
"entity": "BpmnFlowchart",
|
||||
"foreign": "startWorkflows"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"sortBy": "createdAt",
|
||||
"asc": false
|
||||
},
|
||||
"conditionFieldTypes": {
|
||||
"varchar": "varchar",
|
||||
"enum": "enum",
|
||||
"enumInt": "enum",
|
||||
"enumFloat": "enum",
|
||||
"phone": "varchar",
|
||||
"email": "varchar",
|
||||
"url": "varchar",
|
||||
"int": "int",
|
||||
"currency": "currency",
|
||||
"float": "float",
|
||||
"decimal": "decimal",
|
||||
"bool": "bool",
|
||||
"password": "varchar",
|
||||
"text": "text",
|
||||
"wysiwyg": "text",
|
||||
"link": "link",
|
||||
"file": "link",
|
||||
"image": "link",
|
||||
"linkParent": "linkParent",
|
||||
"date": "date",
|
||||
"datetime": "date",
|
||||
"datetimeOptional": "date",
|
||||
"linkMultiple": "linkMultiple",
|
||||
"attachmentMultiple": "attachmentMultiple",
|
||||
"checklist": "array",
|
||||
"multiEnum": "array",
|
||||
"array": "array",
|
||||
"urlMultiple": "array"
|
||||
},
|
||||
"fieldDefinitions": {
|
||||
"date": "date",
|
||||
"datetime": "date",
|
||||
"datetimeOptional": "date"
|
||||
},
|
||||
"fieldDefinitionsFieldViews": {
|
||||
"duration": "advanced:views/workflow/field-definitions/fields/duration"
|
||||
},
|
||||
"fieldTypeActions": {
|
||||
"linkMultiple": [
|
||||
"update",
|
||||
"add",
|
||||
"remove"
|
||||
],
|
||||
"array": [
|
||||
"update",
|
||||
"add",
|
||||
"remove"
|
||||
],
|
||||
"multiEnum": [
|
||||
"update",
|
||||
"add",
|
||||
"remove"
|
||||
],
|
||||
"checklist": [
|
||||
"update",
|
||||
"add",
|
||||
"remove"
|
||||
]
|
||||
},
|
||||
"fieldTypeComparison": {
|
||||
"enumInt": ["int"],
|
||||
"enumFloat": ["float", "decimal"],
|
||||
"date": ["datetime", "datetimeOptional"],
|
||||
"datetime": ["date", "datetimeOptional"],
|
||||
"datetimeOptional": ["date", "datetime"],
|
||||
"float": ["enumFloat", "int", "decimal"],
|
||||
"decimal": ["enumFloat", "int", "float"],
|
||||
"linkMultiple": "link",
|
||||
"email": ["varchar"],
|
||||
"phone": ["varchar"],
|
||||
"personName": ["varchar"],
|
||||
"varchar": ["email", "phone"],
|
||||
"text": ["varchar"],
|
||||
"wysiwyg": ["varchar"],
|
||||
"linkParent": ["link", "linkParent", "id"]
|
||||
},
|
||||
"ignoreActualAttributesOnValueCopyFieldList": [
|
||||
"personName",
|
||||
"email",
|
||||
"phone"
|
||||
],
|
||||
"entityListToIgnore": [
|
||||
"PhoneNumber",
|
||||
"Notification",
|
||||
"EmailAddress",
|
||||
"Attachment",
|
||||
"Extension",
|
||||
"Currency",
|
||||
"Reminder",
|
||||
"PasswordChangeRequest",
|
||||
"Workflow",
|
||||
"AuthToken",
|
||||
"Team",
|
||||
"Role",
|
||||
"EmailAccount",
|
||||
"EmailTemplate",
|
||||
"ExternalAccount",
|
||||
"Integration",
|
||||
"Job",
|
||||
"Preferences",
|
||||
"ScheduledJob",
|
||||
"ScheduledJobLogRecord",
|
||||
"Settings",
|
||||
"UniqueId",
|
||||
"InboundEmail",
|
||||
"BpmnFlowchart",
|
||||
"Report",
|
||||
"WorkingTimeCalendar",
|
||||
"Template"
|
||||
],
|
||||
"forcedSupportEntityList": [
|
||||
"LeadCaptureLogRecord"
|
||||
],
|
||||
"assignmentRuleList": [
|
||||
"Round-Robin",
|
||||
"Least-Busy"
|
||||
],
|
||||
"actionList": [
|
||||
"sendEmail",
|
||||
"createEntity",
|
||||
"createRelatedEntity",
|
||||
"updateEntity",
|
||||
"updateRelatedEntity",
|
||||
"relateWithEntity",
|
||||
"unrelateFromEntity",
|
||||
"applyAssignmentRule",
|
||||
"triggerWorkflow",
|
||||
"createNotification",
|
||||
"makeFollowed",
|
||||
"runService",
|
||||
"startBpmnProcess",
|
||||
"sendRequest",
|
||||
"executeFormula"
|
||||
],
|
||||
"serviceActions": {
|
||||
"Quote": {
|
||||
"addQuoteItemList": {
|
||||
"serviceName": "QuoteWorkflow",
|
||||
"methodName": "addItemList"
|
||||
},
|
||||
"convertCurrency": {
|
||||
"serviceName": "QuoteWorkflow",
|
||||
"methodName": "convertCurrency"
|
||||
},
|
||||
"sendInEmail": {
|
||||
"serviceName": "QuoteWorkflow",
|
||||
"methodName": "sendInEmail"
|
||||
}
|
||||
},
|
||||
"Invoice": {
|
||||
"addInvoiceItemList": {
|
||||
"serviceName": "InvoiceWorkflow",
|
||||
"methodName": "addItemList"
|
||||
},
|
||||
"convertCurrency": {
|
||||
"serviceName": "InvoiceWorkflow",
|
||||
"methodName": "convertCurrency"
|
||||
},
|
||||
"sendInEmail": {
|
||||
"serviceName": "InvoiceWorkflow",
|
||||
"methodName": "sendInEmail"
|
||||
}
|
||||
},
|
||||
"SalesOrder": {
|
||||
"addSalesOrderItemList": {
|
||||
"serviceName": "SalesOrderWorkflow",
|
||||
"methodName": "addItemList"
|
||||
},
|
||||
"convertCurrency": {
|
||||
"serviceName": "SalesOrderWorkflow",
|
||||
"methodName": "convertCurrency"
|
||||
},
|
||||
"sendInEmail": {
|
||||
"serviceName": "SalesOrderWorkflow",
|
||||
"methodName": "sendInEmail"
|
||||
}
|
||||
},
|
||||
"Opportunity": {
|
||||
"convertCurrency": {
|
||||
"serviceName": "OpportunityWorkflow",
|
||||
"methodName": "convertCurrency"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
{
|
||||
"fields": {
|
||||
"name": {
|
||||
"type": "varchar",
|
||||
"required": true,
|
||||
"trim": true
|
||||
},
|
||||
"order": {
|
||||
"type": "int",
|
||||
"minValue": 1
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
},
|
||||
"teams": {
|
||||
"type": "linkMultiple"
|
||||
},
|
||||
"parent": {
|
||||
"type": "link",
|
||||
"view": "views/fields/link-category-tree"
|
||||
},
|
||||
"childList": {
|
||||
"type": "jsonArray",
|
||||
"notStorable": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"modifiedBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"teams": {
|
||||
"type": "hasMany",
|
||||
"entity": "Team",
|
||||
"relationName": "entityTeam",
|
||||
"layoutRelationshipsDisabled": true
|
||||
},
|
||||
"parent": {
|
||||
"type": "belongsTo",
|
||||
"foreign": "children",
|
||||
"entity": "WorkflowCategory"
|
||||
},
|
||||
"children": {
|
||||
"type": "hasMany",
|
||||
"foreign": "parent",
|
||||
"entity": "WorkflowCategory",
|
||||
"readOnly": true
|
||||
},
|
||||
"workflows": {
|
||||
"type": "hasMany",
|
||||
"foreign": "category",
|
||||
"entity": "Workflow"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"sortBy": "parent",
|
||||
"asc": true
|
||||
},
|
||||
"additionalTables": {
|
||||
"WorkflowCategoryPath": {
|
||||
"fields": {
|
||||
"id": {
|
||||
"type": "id",
|
||||
"dbType": "integer",
|
||||
"len": 11,
|
||||
"autoincrement": true
|
||||
},
|
||||
"ascendorId": {
|
||||
"type": "foreignId",
|
||||
"index": true
|
||||
},
|
||||
"descendorId" : {
|
||||
"type": "foreignId",
|
||||
"index": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"fields": {
|
||||
"workflow": {
|
||||
"type": "link"
|
||||
},
|
||||
"target": {
|
||||
"type": "linkParent",
|
||||
"view": "advanced:views/workflow-log-record/fields/target"
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "datetime",
|
||||
"readOnly": true
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "link",
|
||||
"readOnly": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"workflow": {
|
||||
"type": "belongsTo",
|
||||
"entity": "Workflow",
|
||||
"foreign": "workflowLogRecords"
|
||||
},
|
||||
"createdBy": {
|
||||
"type": "belongsTo",
|
||||
"entity": "User"
|
||||
},
|
||||
"target": {
|
||||
"type": "belongsToParent"
|
||||
}
|
||||
},
|
||||
"collection": {
|
||||
"sortBy": "createdAt",
|
||||
"asc": false,
|
||||
"textFilterFields": ["workflowName"]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"fields": {
|
||||
"actionId": {
|
||||
"type": "varchar",
|
||||
"maxLength": 100,
|
||||
"index": true
|
||||
},
|
||||
"entityType": {
|
||||
"type": "varchar"
|
||||
},
|
||||
"lastUserId": {
|
||||
"type": "varchar"
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
"workflow": {
|
||||
"type": "belongsTo",
|
||||
"entity": "Workflow"
|
||||
},
|
||||
"flowchart": {
|
||||
"type": "belongsTo",
|
||||
"entity": "BpmnFlowchart"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user