mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
27
lib/insights/mock/analytics/analytics.service.mock.ts
Normal file
27
lib/insights/mock/analytics/analytics.service.mock.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2016 Alfresco Software, Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export let fakeReportList = [
|
||||
{
|
||||
id: '1',
|
||||
name: 'Fake Report 1'
|
||||
},
|
||||
{
|
||||
id: '2',
|
||||
name: 'Fake Report 2'
|
||||
}
|
||||
];
|
113
lib/insights/mock/analytics/analyticsComponent.mock.ts
Normal file
113
lib/insights/mock/analytics/analyticsComponent.mock.ts
Normal file
@@ -0,0 +1,113 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2016 Alfresco Software, Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export let chartProcessDefOverview = {
|
||||
'elements': [{
|
||||
'id': 'id1585876275153',
|
||||
'type': 'table',
|
||||
'rows': [
|
||||
['__KEY_REPORTING.DEFAULT-REPORTS.PROCESS-DEFINITION-OVERVIEW.GENERAL-TABLE-TOTAL-PROCESS-DEFINITIONS', '9'],
|
||||
['__KEY_REPORTING.DEFAULT-REPORTS.PROCESS-DEFINITION-OVERVIEW.GENERAL-TABLE-TOTAL-PROCESS-INSTANCES', '41'],
|
||||
['__KEY_REPORTING.DEFAULT-REPORTS.PROCESS-DEFINITION-OVERVIEW.GENERAL-TABLE-ACTIVE-PROCESS-INSTANCES', '3'],
|
||||
['__KEY_REPORTING.DEFAULT-REPORTS.PROCESS-DEFINITION-OVERVIEW.GENERAL-TABLE-COMPLETED-PROCESS-INSTANCES', '38']
|
||||
]
|
||||
}, {
|
||||
'id': 'id1585876413072',
|
||||
'type': 'pieChart',
|
||||
'title': 'Total process instances overview',
|
||||
'titleKey': 'REPORTING.DEFAULT-REPORTS.PROCESS-DEFINITION-OVERVIEW.PROC-INST-CHART-TITLE',
|
||||
'values': [{
|
||||
'key': 'Second Process',
|
||||
'y': 4,
|
||||
'keyAndValue': ['Second Process', '4']
|
||||
}, {
|
||||
'key': 'Simple process',
|
||||
'y': 30,
|
||||
'keyAndValue': ['Simple process', '30']
|
||||
}, {
|
||||
'key': 'Third Process',
|
||||
'y': 7,
|
||||
'keyAndValue': ['Third Process', '7']
|
||||
}]
|
||||
}, {
|
||||
'id': 'id1585877659181',
|
||||
'type': 'table',
|
||||
'title': 'Process definition details',
|
||||
'titleKey': 'REPORTING.DEFAULT-REPORTS.PROCESS-DEFINITION-OVERVIEW.DETAIL-TABLE',
|
||||
'columnNames': ['Process definition', 'Total', 'Active', 'Completed'],
|
||||
'columnNameKeys': ['REPORTING.DEFAULT-REPORTS.PROCESS-DEFINITION-OVERVIEW.DETAIL-TABLE-PROCESS',
|
||||
'REPORTING.DEFAULT-REPORTS.PROCESS-DEFINITION-OVERVIEW.DETAIL-TABLE-TOTAL',
|
||||
'REPORTING.DEFAULT-REPORTS.PROCESS-DEFINITION-OVERVIEW.DETAIL-TABLE-ACTIVE',
|
||||
'REPORTING.DEFAULT-REPORTS.PROCESS-DEFINITION-OVERVIEW.DETAIL-TABLE-COMPLETED'],
|
||||
'columnsCentered': [false, false, false, false],
|
||||
'rows': [
|
||||
['Second Process', '4', '0', '4'],
|
||||
['Simple process', '30', '3', '27'],
|
||||
['Third Process', '7', '0', '7']
|
||||
]
|
||||
}]
|
||||
};
|
||||
|
||||
export let chartTaskOverview = {
|
||||
'elements': [{
|
||||
'id': 'id792351752194',
|
||||
'type': 'barChart',
|
||||
'title': 'title',
|
||||
'titleKey': 'REPORTING.DEFAULT-REPORTS.TASK-OVERVIEW.TASK-HISTOGRAM-TITLE',
|
||||
'values': [{
|
||||
'key': 'series1',
|
||||
'values': [['2016-09-30T00:00:00.000+0000', 3], ['2016-10-04T00:00:00.000+0000', 1]]
|
||||
}],
|
||||
'xAxisType': 'date_month',
|
||||
'yAxisType': 'count'
|
||||
}, {
|
||||
'id': 'id792349721129',
|
||||
'type': 'masterDetailTable',
|
||||
'title': 'Detailed task statistics',
|
||||
'titleKey': 'REPORTING.DEFAULT-REPORTS.TASK-OVERVIEW.DETAILED-TASK-STATS-TITLE',
|
||||
'columnNames': ['Task', 'Count', 'Sum', 'Min duration', 'Max duration', 'Average duration', 'Stddev duration'],
|
||||
'columnNameKeys': [
|
||||
'REPORTING.DEFAULT-REPORTS.TASK-OVERVIEW.DETAILED-TASK-STATS-TASK',
|
||||
'REPORTING.DEFAULT-REPORTS.TASK-OVERVIEW.COUNT',
|
||||
'REPORTING.DEFAULT-REPORTS.TASK-OVERVIEW.SUM',
|
||||
'REPORTING.DEFAULT-REPORTS.TASK-OVERVIEW.MIN-DURATION',
|
||||
'REPORTING.DEFAULT-REPORTS.TASK-OVERVIEW.MAX-DURATION',
|
||||
'REPORTING.DEFAULT-REPORTS.TASK-OVERVIEW.AVERAGE',
|
||||
'REPORTING.DEFAULT-REPORTS.TASK-OVERVIEW.STDDE'],
|
||||
'columnsCentered': [false, false, false, false],
|
||||
'rows': [
|
||||
['fake 1 user task', '1', '2.0', '3.0', '4.0', '5.0', '6.0'],
|
||||
['fake 2 user task', '1', '2.0', '3.0', '4.0', '5.0', '6.0']
|
||||
]
|
||||
}, {
|
||||
'id': 'id10931125229538',
|
||||
'type': 'multiBarChart',
|
||||
'title': 'Task duration',
|
||||
'titleKey': 'REPORTING.DEFAULT-REPORTS.TASK-OVERVIEW.TASK-DURATIONS-TITLE',
|
||||
'values': [{
|
||||
'key': 'averages',
|
||||
'values': [[1, 0], [2, 5], [3, 2]]
|
||||
}, {
|
||||
'key': 'minima',
|
||||
'values': [[1, 0], [2, 0], [3, 0]]
|
||||
}, {
|
||||
'key': 'maxima',
|
||||
'values': [[1, 0], [2, 29], [3, 29]]
|
||||
}],
|
||||
'yAxisType': 'count'
|
||||
}]
|
||||
};
|
@@ -0,0 +1,157 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2016 Alfresco Software, Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { ReportParameterDetailsModel } from '../../diagram';
|
||||
|
||||
export let reportDefParamStatus = {
|
||||
'id': 2005,
|
||||
'name': 'Fake Task overview status',
|
||||
'created': '2016-10-05T15:39:40.222+0000',
|
||||
'definition': '{ "parameters" :[{"id":"status","name":null,"nameKey":null,"type":"status","value":null,"dependsOn":null}]}'
|
||||
};
|
||||
|
||||
export let reportDefParamNumber = {
|
||||
'id': 2005,
|
||||
'name': 'Fake Process instances overview',
|
||||
'created': '2016-10-05T15:39:40.222+0000',
|
||||
'definition': '{ "parameters"' +
|
||||
' :[{"id":"slowProcessInstanceInteger","name":null,"nameKey":null,"type":"integer","value":10,"dependsOn":null}]}'
|
||||
};
|
||||
|
||||
export let reportDefParamDuration = {
|
||||
'id': 2005,
|
||||
'name': 'Fake Task service level agreement',
|
||||
'created': '2016-10-05T15:39:40.222+0000',
|
||||
'definition': '{ "parameters"' +
|
||||
' :[{"id":"duration","name":null,"nameKey":null,"type":"duration","value":null,"dependsOn":null}]}'
|
||||
};
|
||||
|
||||
export let reportDefParamCheck = {
|
||||
'id': 2005,
|
||||
'name': 'Fake Task service level agreement',
|
||||
'created': '2016-10-05T15:39:40.222+0000',
|
||||
'definition': '{ "parameters"' +
|
||||
' :[{"id":"typeFiltering","name":null,"nameKey":null,"type":"boolean","value":true,"dependsOn":null}]}'
|
||||
};
|
||||
|
||||
export let reportDefParamDateRange = {
|
||||
'id': 2005,
|
||||
'name': 'Fake Process instances overview',
|
||||
'created': '2016-10-05T15:39:40.222+0000',
|
||||
'definition': '{ "parameters" :[{"id":"dateRange","name":null,"nameKey":null,"type":"dateRange","value":null,"dependsOn":null}]}'
|
||||
};
|
||||
|
||||
export let reportDefParamRangeInterval = {
|
||||
'id': 2006,
|
||||
'name': 'Fake Task overview RangeInterval',
|
||||
'created': '2016-10-05T15:39:40.222+0000',
|
||||
'definition': '{ "parameters" :[{"id":"dateRangeInterval","name":null,"nameKey":null,"type":"dateInterval","value":null,"dependsOn":null}]}'
|
||||
};
|
||||
|
||||
export let reportDefParamProcessDef = {
|
||||
'id': 2006,
|
||||
'name': 'Fake Task overview ProcessDefinition',
|
||||
'created': '2016-10-05T15:39:40.222+0000',
|
||||
'definition': '{ "parameters" :[{"id":"processDefinitionId","name":null,"nameKey":null,"type":"processDefinition","value":null,"dependsOn":null}]}'
|
||||
};
|
||||
|
||||
export let reportDefParamProcessDefOptionsNoApp = [
|
||||
{
|
||||
'id': 'FakeProcessTest 1:1:1',
|
||||
'name': 'Fake Process Test 1 Name ',
|
||||
'version': 1
|
||||
},
|
||||
{
|
||||
'id': 'FakeProcessTest 1:2:1',
|
||||
'name': 'Fake Process Test 1 Name ',
|
||||
'version': 2
|
||||
},
|
||||
{
|
||||
'id': 'FakeProcessTest 2:1:1',
|
||||
'name': 'Fake Process Test 2 Name ',
|
||||
'version': 1
|
||||
},
|
||||
{
|
||||
'id': 'FakeProcessTest 3:1:1',
|
||||
'name': 'Fake Process Test 3 Name ',
|
||||
'version': 1
|
||||
}
|
||||
];
|
||||
|
||||
export let reportDefParamProcessDefOptions = {
|
||||
'size': 4, 'total': 4, 'start': 0, 'data': [
|
||||
{
|
||||
'id': 'FakeProcessTest 1:1:1',
|
||||
'name': 'Fake Process Test 1 Name ',
|
||||
'version': 1
|
||||
},
|
||||
{
|
||||
'id': 'FakeProcessTest 1:2:1',
|
||||
'name': 'Fake Process Test 1 Name ',
|
||||
'version': 2
|
||||
},
|
||||
{
|
||||
'id': 'FakeProcessTest 2:1:1',
|
||||
'name': 'Fake Process Test 2 Name ',
|
||||
'version': 1
|
||||
},
|
||||
{
|
||||
'id': 'FakeProcessTest 3:1:1',
|
||||
'name': 'Fake Process Test 3 Name ',
|
||||
'version': 1
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export let reportDefParamProcessDefOptionsApp = {
|
||||
'size': 2, 'total': 2, 'start': 2, 'data': [
|
||||
{
|
||||
'id': 'FakeProcessTest 1:1:1',
|
||||
'name': 'Fake Process Test 1 Name ',
|
||||
'version': 1
|
||||
},
|
||||
{
|
||||
'id': 'FakeProcessTest 1:2:1',
|
||||
'name': 'Fake Process Test 1 Name ',
|
||||
'version': 2
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
export let reportDefParamTask = {
|
||||
'id': 2006,
|
||||
'name': 'Fake Task service level agreement',
|
||||
'created': '2016-10-05T15:39:40.222+0000',
|
||||
'definition': '{ "parameters" :[{"id":"taskName","name":null,"nameKey":null,"type":"task","value":null,"dependsOn":"processDefinitionId"}]}'
|
||||
};
|
||||
|
||||
export let reportNoParameterDefinitions = {
|
||||
'id': 2006,
|
||||
'name': 'Fake Task service level agreement',
|
||||
'created': '2016-10-05T15:39:40.222+0000',
|
||||
'definition': '{ "parameters" : []}'
|
||||
};
|
||||
|
||||
export let reportDefParamTaskOptions = ['Fake task name 1', 'Fake task name 2'];
|
||||
|
||||
export let fieldProcessDef = new ReportParameterDetailsModel(
|
||||
{
|
||||
id: 'processDefinitionId',
|
||||
type: 'processDefinition',
|
||||
value: 'fake-process-name:1:15027'
|
||||
}
|
||||
);
|
79
lib/insights/mock/apps-list.mock.js
Normal file
79
lib/insights/mock/apps-list.mock.js
Normal file
@@ -0,0 +1,79 @@
|
||||
"use strict";
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2016 Alfresco Software, Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var task_list_1 = require("../task-list");
|
||||
exports.nonDeployedApps = [new task_list_1.AppDefinitionRepresentationModel({
|
||||
id: '1',
|
||||
name: '1',
|
||||
icon: 'icon1'
|
||||
}), new task_list_1.AppDefinitionRepresentationModel({
|
||||
id: '1',
|
||||
name: '2',
|
||||
icon: 'icon2'
|
||||
}), new task_list_1.AppDefinitionRepresentationModel({
|
||||
id: '1',
|
||||
name: '3',
|
||||
icon: 'icon3'
|
||||
})];
|
||||
exports.deployedApps = [new task_list_1.AppDefinitionRepresentationModel({
|
||||
id: 1,
|
||||
name: 'App1',
|
||||
icon: 'icon1',
|
||||
deploymentId: '1',
|
||||
defaultAppId: 'fake-app-1',
|
||||
modelId: null,
|
||||
tenantId: null
|
||||
}), new task_list_1.AppDefinitionRepresentationModel({
|
||||
id: 2,
|
||||
name: 'App2',
|
||||
icon: 'icon2',
|
||||
deploymentId: '2',
|
||||
modelId: null,
|
||||
tenantId: null
|
||||
}), new task_list_1.AppDefinitionRepresentationModel({
|
||||
id: 3,
|
||||
name: 'App3',
|
||||
icon: 'icon3',
|
||||
deploymentId: '3',
|
||||
modelId: null,
|
||||
tenantId: null
|
||||
}), new task_list_1.AppDefinitionRepresentationModel({
|
||||
id: 4,
|
||||
name: 'App4',
|
||||
icon: 'icon4',
|
||||
deploymentId: '4',
|
||||
modelId: 65,
|
||||
tenantId: null
|
||||
}), new task_list_1.AppDefinitionRepresentationModel({
|
||||
id: 5,
|
||||
name: 'App5',
|
||||
icon: 'icon5',
|
||||
deploymentId: '5',
|
||||
modelId: 66,
|
||||
tenantId: 9
|
||||
}), new task_list_1.AppDefinitionRepresentationModel({
|
||||
id: 6,
|
||||
name: 'App6',
|
||||
icon: 'icon6',
|
||||
deploymentId: '6',
|
||||
tenantId: 9,
|
||||
modelId: 66
|
||||
})];
|
||||
exports.defaultApp = [new task_list_1.AppDefinitionRepresentationModel({
|
||||
defaultAppId: 'tasks'
|
||||
})];
|
518
lib/insights/mock/diagram/diagramActivities.mock.ts
Normal file
518
lib/insights/mock/diagram/diagramActivities.mock.ts
Normal file
@@ -0,0 +1,518 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2016 Alfresco Software, Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export let userTask = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake User task',
|
||||
type: 'UserTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let userTaskActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake User task',
|
||||
type: 'UserTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let userTaskCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake User task',
|
||||
type: 'UserTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let manualTask = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Manual task',
|
||||
type: 'ManualTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let manualTaskActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Manual task',
|
||||
type: 'ManualTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let manualTaskCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Manual task',
|
||||
type: 'ManualTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let serviceTask = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Service task',
|
||||
type: 'ServiceTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let serviceTaskActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Service task',
|
||||
type: 'ServiceTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let serviceTaskCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Service task',
|
||||
type: 'ServiceTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let receiveTask = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Receive task',
|
||||
type: 'ReceiveTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let receiveTaskActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Receive task',
|
||||
type: 'ReceiveTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let receiveTaskCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Receive task',
|
||||
type: 'ReceiveTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let scriptTask = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Script task',
|
||||
type: 'ScriptTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let scriptTaskActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Script task',
|
||||
type: 'ScriptTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let scriptTaskCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Script task',
|
||||
type: 'ScriptTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let businessRuleTask = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake BusinessRule task',
|
||||
type: 'BusinessRuleTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let businessRuleTaskActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake BusinessRule task',
|
||||
type: 'BusinessRuleTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let businessRuleTaskCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake BusinessRule task',
|
||||
type: 'BusinessRuleTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let mailTask = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Mail task',
|
||||
type: 'ServiceTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
taskType: 'mail'
|
||||
};
|
||||
|
||||
export let mailTaskActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Mail task',
|
||||
type: 'ServiceTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
taskType: 'mail'
|
||||
};
|
||||
|
||||
export let mailTaskCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Mail task',
|
||||
type: 'ServiceTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
taskType: 'mail'
|
||||
};
|
||||
|
||||
export let camelTask = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Camel task',
|
||||
type: 'ServiceTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
taskType: 'camel'
|
||||
};
|
||||
|
||||
export let camelTaskActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Camel task',
|
||||
type: 'ServiceTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
taskType: 'camel'
|
||||
};
|
||||
|
||||
export let camelTaskCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Camel task',
|
||||
type: 'ServiceTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
taskType: 'camel'
|
||||
};
|
||||
|
||||
export let restCallTask = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Rest Call task',
|
||||
type: 'ServiceTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
taskType: 'rest_call'
|
||||
};
|
||||
|
||||
export let restCallTaskActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Rest Call task',
|
||||
type: 'ServiceTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
taskType: 'rest_call'
|
||||
};
|
||||
|
||||
export let restCallTaskCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Rest Call task',
|
||||
type: 'ServiceTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
taskType: 'rest_call'
|
||||
};
|
||||
|
||||
export let muleTask = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Mule task',
|
||||
type: 'ServiceTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
taskType: 'mule'
|
||||
};
|
||||
|
||||
export let muleTaskActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Mule task',
|
||||
type: 'ServiceTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
taskType: 'mule'
|
||||
};
|
||||
|
||||
export let muleTaskCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Mule task',
|
||||
type: 'ServiceTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
taskType: 'mule'
|
||||
};
|
||||
|
||||
export let alfrescoPublishTask = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Alfresco Publish task',
|
||||
type: 'ServiceTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
taskType: 'alfresco_publish'
|
||||
};
|
||||
|
||||
export let alfrescoPublishTaskActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Alfresco Publish task',
|
||||
type: 'ServiceTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
taskType: 'alfresco_publish'
|
||||
};
|
||||
|
||||
export let alfrescoPublishTaskCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Alfresco Publish task',
|
||||
type: 'ServiceTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
taskType: 'alfresco_publish'
|
||||
};
|
||||
|
||||
export let googleDrivePublishTask = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Google Drive Publish task',
|
||||
type: 'ServiceTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
taskType: 'google_drive_publish'
|
||||
};
|
||||
|
||||
export let googleDrivePublishTaskActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Google Drive Publish task',
|
||||
type: 'ServiceTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
taskType: 'google_drive_publish'
|
||||
};
|
||||
|
||||
export let googleDrivePublishTaskCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Google Drive Publish task',
|
||||
type: 'ServiceTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
taskType: 'google_drive_publish'
|
||||
};
|
||||
|
||||
export let boxPublishTask = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Box Publish task',
|
||||
type: 'ServiceTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
taskType: 'box_publish'
|
||||
};
|
||||
|
||||
export let boxPublishTaskActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Box Publish task',
|
||||
type: 'ServiceTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
taskType: 'box_publish'
|
||||
};
|
||||
|
||||
export let boxPublishTaskCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
name: 'Fake Box Publish task',
|
||||
type: 'ServiceTask',
|
||||
width: 82,
|
||||
height: 67,
|
||||
x: 75.56890135999998,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
taskType: 'box_publish'
|
||||
};
|
164
lib/insights/mock/diagram/diagramBoundary.mock.ts
Normal file
164
lib/insights/mock/diagram/diagramBoundary.mock.ts
Normal file
@@ -0,0 +1,164 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2016 Alfresco Software, Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export let boundaryTimeEvent = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'BoundaryEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'timer'}
|
||||
};
|
||||
|
||||
export let boundaryTimeEventActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'BoundaryEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'timer'}
|
||||
};
|
||||
|
||||
export let boundaryTimeEventCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'BoundaryEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'timer'}
|
||||
};
|
||||
|
||||
export let boundaryErrorEvent = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'BoundaryEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'error'}
|
||||
};
|
||||
|
||||
export let boundaryErrorEventActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'BoundaryEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'error'}
|
||||
};
|
||||
|
||||
export let boundaryErrorEventCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'BoundaryEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'error'}
|
||||
};
|
||||
|
||||
export let boundarySignalEvent = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'BoundaryEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'signal'}
|
||||
};
|
||||
|
||||
export let boundarySignalEventActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'BoundaryEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'signal'}
|
||||
};
|
||||
|
||||
export let boundarySignalEventCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'BoundaryEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'signal'}
|
||||
};
|
||||
|
||||
export let boundaryMessageEvent = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'BoundaryEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'message'}
|
||||
};
|
||||
|
||||
export let boundaryMessageEventActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'BoundaryEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'message'}
|
||||
};
|
||||
|
||||
export let boundaryMessageEventCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'BoundaryEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'message'}
|
||||
};
|
269
lib/insights/mock/diagram/diagramEvents.mock.ts
Normal file
269
lib/insights/mock/diagram/diagramEvents.mock.ts
Normal file
@@ -0,0 +1,269 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2016 Alfresco Software, Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export let startEvent = {
|
||||
id: 'startEvent1',
|
||||
type: 'StartEvent',
|
||||
width: 30,
|
||||
height: 30,
|
||||
x: 15,
|
||||
y: 48.5,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let startEventActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'startEvent1',
|
||||
type: 'StartEvent',
|
||||
width: 30,
|
||||
height: 30,
|
||||
x: 15,
|
||||
y: 48.5,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let startEventCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'startEvent1',
|
||||
type: 'StartEvent',
|
||||
width: 30,
|
||||
height: 30,
|
||||
x: 15,
|
||||
y: 48.5,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let startTimeEvent = {
|
||||
id: 'startEvent1',
|
||||
type: 'StartEvent',
|
||||
width: 30,
|
||||
height: 30,
|
||||
x: 15,
|
||||
y: 48.5,
|
||||
eventDefinition: {type: 'timer'},
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let startTimeEventActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'startEvent1',
|
||||
type: 'StartEvent',
|
||||
width: 30,
|
||||
height: 30,
|
||||
x: 15,
|
||||
y: 48.5,
|
||||
eventDefinition: {type: 'timer'},
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let startTimeEventCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'startEvent1',
|
||||
type: 'StartEvent',
|
||||
width: 30,
|
||||
height: 30,
|
||||
x: 15,
|
||||
y: 48.5,
|
||||
eventDefinition: {type: 'timer'},
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let startSignalEvent = {
|
||||
id: 'startEvent1',
|
||||
type: 'StartEvent',
|
||||
width: 30,
|
||||
height: 30,
|
||||
x: 15,
|
||||
y: 48.5,
|
||||
eventDefinition: {type: 'signal'},
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let startSignalEventActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'startEvent1',
|
||||
type: 'StartEvent',
|
||||
width: 30,
|
||||
height: 30,
|
||||
x: 15,
|
||||
y: 48.5,
|
||||
eventDefinition: {type: 'signal'},
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let startSignalEventCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'startEvent1',
|
||||
type: 'StartEvent',
|
||||
width: 30,
|
||||
height: 30,
|
||||
x: 15,
|
||||
y: 48.5,
|
||||
eventDefinition: {type: 'signal'},
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let startMessageEvent = {
|
||||
id: 'startEvent1',
|
||||
type: 'StartEvent',
|
||||
width: 30,
|
||||
height: 30,
|
||||
x: 15,
|
||||
y: 48.5,
|
||||
eventDefinition: {type: 'message'},
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let startMessageEventActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'startEvent1',
|
||||
type: 'StartEvent',
|
||||
width: 30,
|
||||
height: 30,
|
||||
x: 15,
|
||||
y: 48.5,
|
||||
eventDefinition: {type: 'message'},
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let startMessageEventCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'startEvent1',
|
||||
type: 'StartEvent',
|
||||
width: 30,
|
||||
height: 30,
|
||||
x: 15,
|
||||
y: 48.5,
|
||||
eventDefinition: {type: 'message'},
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let startErrorEvent = {
|
||||
id: 'startEvent1',
|
||||
type: 'StartEvent',
|
||||
width: 30,
|
||||
height: 30,
|
||||
x: 15,
|
||||
y: 48.5,
|
||||
eventDefinition: {type: 'error'},
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let startErrorEventActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'startEvent1',
|
||||
type: 'StartEvent',
|
||||
width: 30,
|
||||
height: 30,
|
||||
x: 15,
|
||||
y: 48.5,
|
||||
eventDefinition: {type: 'error'},
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let startErrorEventCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'startEvent1',
|
||||
type: 'StartEvent',
|
||||
width: 30,
|
||||
height: 30,
|
||||
x: 15,
|
||||
y: 48.5,
|
||||
eventDefinition: {type: 'error'},
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let endEvent = {
|
||||
id: 'sid-CED2A8DB-47E2-4057-A7B8-3ABBE5CE795E',
|
||||
type: 'EndEvent',
|
||||
width: 28,
|
||||
height: 28,
|
||||
x: 15,
|
||||
y: 48.5,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let endEventActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-CED2A8DB-47E2-4057-A7B8-3ABBE5CE795E',
|
||||
type: 'EndEvent',
|
||||
width: 28,
|
||||
height: 28,
|
||||
x: 15,
|
||||
y: 48.5,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let endEventCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-CED2A8DB-47E2-4057-A7B8-3ABBE5CE795E',
|
||||
type: 'EndEvent',
|
||||
width: 28,
|
||||
height: 28,
|
||||
x: 15,
|
||||
y: 48.5,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let endErrorEvent = {
|
||||
id: 'sid-CED2A8DB-47E2-4057-A7B8-3ABBE5CE795E',
|
||||
type: 'EndEvent',
|
||||
width: 28,
|
||||
height: 28,
|
||||
x: 15,
|
||||
y: 48.5,
|
||||
eventDefinition: {type: 'error'},
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let endErrorEventActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-CED2A8DB-47E2-4057-A7B8-3ABBE5CE795E',
|
||||
type: 'EndEvent',
|
||||
width: 28,
|
||||
height: 28,
|
||||
x: 15,
|
||||
y: 48.5,
|
||||
eventDefinition: {type: 'error'},
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let endErrorEventCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-CED2A8DB-47E2-4057-A7B8-3ABBE5CE795E',
|
||||
type: 'EndEvent',
|
||||
width: 28,
|
||||
height: 28,
|
||||
x: 15,
|
||||
y: 48.5,
|
||||
eventDefinition: {type: 'error'},
|
||||
properties: [{}]
|
||||
};
|
24
lib/insights/mock/diagram/diagramFlows.mock.ts
Normal file
24
lib/insights/mock/diagram/diagramFlows.mock.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2016 Alfresco Software, Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export let flow = {
|
||||
id: 'sid-5BA99724-A3BD-4F8E-B69F-222F9FF66335',
|
||||
sourceRef: 'startEvent1',
|
||||
targetRef: 'sid-811B9223-E72E-4991-AAA5-4E1A01095D08',
|
||||
type: 'sequenceFlow',
|
||||
waypoints: [{x: 165, y: 122}, {x: 210, y: 122}]
|
||||
};
|
152
lib/insights/mock/diagram/diagramGateways.mock.ts
Normal file
152
lib/insights/mock/diagram/diagramGateways.mock.ts
Normal file
@@ -0,0 +1,152 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2016 Alfresco Software, Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export let exclusiveGatway = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'ExclusiveGateway',
|
||||
width: 40,
|
||||
height: 40,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let exclusiveGatwayActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'ExclusiveGateway',
|
||||
width: 40,
|
||||
height: 40,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let exclusiveGatwayCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'ExclusiveGateway',
|
||||
width: 40,
|
||||
height: 40,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let inclusiveGatway = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'InclusiveGateway',
|
||||
width: 40,
|
||||
height: 40,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let inclusiveGatwayActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'InclusiveGateway',
|
||||
width: 40,
|
||||
height: 40,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let inclusiveGatwayCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'InclusiveGateway',
|
||||
width: 40,
|
||||
height: 40,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let parallelGatway = {
|
||||
id: 'sid-14EE23CE-0731-4E23-80F3-C557DA2A0CFC',
|
||||
type: 'ParallelGateway',
|
||||
width: 40,
|
||||
height: 40,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let parallelGatwayActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-14EE23CE-0731-4E23-80F3-C557DA2A0CFC',
|
||||
type: 'ParallelGateway',
|
||||
width: 40,
|
||||
height: 40,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let parallelGatwayCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-14EE23CE-0731-4E23-80F3-C557DA2A0CFC',
|
||||
type: 'ParallelGateway',
|
||||
width: 40,
|
||||
height: 40,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let eventGatway = {
|
||||
id: 'sid-14EE23CE-0731-4E23-80F3-C557DA2A0CFC',
|
||||
type: 'EventGateway',
|
||||
width: 40,
|
||||
height: 40,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let eventGatwayActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-14EE23CE-0731-4E23-80F3-C557DA2A0CFC',
|
||||
type: 'EventGateway',
|
||||
width: 40,
|
||||
height: 40,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let eventGatwayCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-14EE23CE-0731-4E23-80F3-C557DA2A0CFC',
|
||||
type: 'EventGateway',
|
||||
width: 40,
|
||||
height: 40,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
164
lib/insights/mock/diagram/diagramIntermediate.mock.ts
Normal file
164
lib/insights/mock/diagram/diagramIntermediate.mock.ts
Normal file
@@ -0,0 +1,164 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2016 Alfresco Software, Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export let intermediateCatchingTimeEvent = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'IntermediateCatchEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'timer'}
|
||||
};
|
||||
|
||||
export let intermediateCatchingTimeEventActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'IntermediateCatchEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'timer'}
|
||||
};
|
||||
|
||||
export let intermediateCatchingTimeEventCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'IntermediateCatchEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'timer'}
|
||||
};
|
||||
|
||||
export let intermediateCatchingErrorEvent = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'IntermediateCatchEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'error'}
|
||||
};
|
||||
|
||||
export let intermediateCatchingErrorEventActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'IntermediateCatchEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'error'}
|
||||
};
|
||||
|
||||
export let intermediateCatchingErrorEventCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'IntermediateCatchEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'error'}
|
||||
};
|
||||
|
||||
export let intermediateCatchingSignalEvent = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'IntermediateCatchEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'signal'}
|
||||
};
|
||||
|
||||
export let intermediateCatchingSignalEventActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'IntermediateCatchEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'signal'}
|
||||
};
|
||||
|
||||
export let intermediateCatchingSignalEventCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'IntermediateCatchEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'signal'}
|
||||
};
|
||||
|
||||
export let intermediateCatchingMessageEvent = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'IntermediateCatchEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'message'}
|
||||
};
|
||||
|
||||
export let intermediateCatchingMessageEventActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'IntermediateCatchEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'message'}
|
||||
};
|
||||
|
||||
export let intermediateCatchingMessageEventCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'IntermediateCatchEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'message'}
|
||||
};
|
84
lib/insights/mock/diagram/diagramStructural.mock.ts
Normal file
84
lib/insights/mock/diagram/diagramStructural.mock.ts
Normal file
@@ -0,0 +1,84 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2016 Alfresco Software, Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export let subProcess = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'SubProcess',
|
||||
width: 300,
|
||||
height: 200,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let subProcessActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'SubProcess',
|
||||
width: 300,
|
||||
height: 200,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let subProcessCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'SubProcess',
|
||||
width: 300,
|
||||
height: 200,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let eventSubProcess = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'EventSubProcess',
|
||||
width: 300,
|
||||
height: 200,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let eventSubProcessActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'EventSubProcess',
|
||||
width: 300,
|
||||
height: 200,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let eventSubProcessCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'EventSubProcess',
|
||||
width: 300,
|
||||
height: 200,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}]
|
||||
};
|
44
lib/insights/mock/diagram/diagramSwimlanes.mock.ts
Normal file
44
lib/insights/mock/diagram/diagramSwimlanes.mock.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2016 Alfresco Software, Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export let pool = {
|
||||
id: 'sid-0FF10DA3-E2BD-4E6A-9013-6D66FC8A4716',
|
||||
name: 'Activiti',
|
||||
width: 600,
|
||||
height: 500,
|
||||
x: 60,
|
||||
y: 45,
|
||||
properties: [{}]
|
||||
};
|
||||
|
||||
export let poolLanes = {
|
||||
id: 'sid-0FF10DA3-E2BD-4E6A-9013-6D66FC8A4716',
|
||||
name: 'Activiti',
|
||||
width: 600,
|
||||
height: 500,
|
||||
x: 60,
|
||||
y: 45,
|
||||
lanes: [{
|
||||
id: 'sid-332204AB-D0F8-44CD-87B3-BF9DF59FF8AB',
|
||||
name: 'Beckend',
|
||||
width: 570,
|
||||
height: 250,
|
||||
x: 90,
|
||||
y: 45
|
||||
}],
|
||||
properties: [{}]
|
||||
};
|
164
lib/insights/mock/diagram/diagramThrow.mock.ts
Normal file
164
lib/insights/mock/diagram/diagramThrow.mock.ts
Normal file
@@ -0,0 +1,164 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2016 Alfresco Software, Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export let throwTimeEvent = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'ThrowEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'timer'}
|
||||
};
|
||||
|
||||
export let throwTimeEventActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'ThrowEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'timer'}
|
||||
};
|
||||
|
||||
export let throwTimeEventCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'ThrowEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'timer'}
|
||||
};
|
||||
|
||||
export let throwErrorEvent = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'ThrowEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'error'}
|
||||
};
|
||||
|
||||
export let throwErrorEventActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'ThrowEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'error'}
|
||||
};
|
||||
|
||||
export let throwErrorEventCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'ThrowEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'error'}
|
||||
};
|
||||
|
||||
export let throwSignalEvent = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'ThrowEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'signal'}
|
||||
};
|
||||
|
||||
export let throwSignalEventActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'ThrowEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'signal'}
|
||||
};
|
||||
|
||||
export let throwSignalEventCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'ThrowEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'signal'}
|
||||
};
|
||||
|
||||
export let throwMessageEvent = {
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'ThrowEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'message'}
|
||||
};
|
||||
|
||||
export let throwMessageEventActive = {
|
||||
completed: false,
|
||||
current: true,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'ThrowEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'message'}
|
||||
};
|
||||
|
||||
export let throwMessageEventCompleted = {
|
||||
completed: true,
|
||||
current: false,
|
||||
id: 'sid-C05B7CB7-1CFD-4AE4-9E01-C2C91E35E5A7',
|
||||
type: 'ThrowEvent',
|
||||
width: 31,
|
||||
height: 31,
|
||||
x: 40,
|
||||
y: 30,
|
||||
properties: [{}],
|
||||
eventDefinition: {type: 'message'}
|
||||
};
|
18
lib/insights/mock/index.ts
Normal file
18
lib/insights/mock/index.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2016 Alfresco Software, Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export * from './public-api';
|
29
lib/insights/mock/public-api.ts
Normal file
29
lib/insights/mock/public-api.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2016 Alfresco Software, Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export * from './analytics/analytics.service.mock';
|
||||
export * from './analytics/analyticsComponent.mock';
|
||||
export * from './analytics/analyticsParamsReportComponent.mock';
|
||||
|
||||
export * from './diagram/diagramActivities.mock';
|
||||
export * from './diagram/diagramBoundary.mock';
|
||||
export * from './diagram/diagramFlows.mock';
|
||||
export * from './diagram/diagramGateways.mock';
|
||||
export * from './diagram/diagramIntermediate.mock';
|
||||
export * from './diagram/diagramStructural.mock';
|
||||
export * from './diagram/diagramSwimlanes.mock';
|
||||
export * from './diagram/diagramThrow.mock';
|
Reference in New Issue
Block a user