[ACS-7427] Process Services improvements and cleanup (#9664)

This commit is contained in:
Denys Vuika
2024-05-20 16:08:47 -04:00
committed by GitHub
parent 96e607b4de
commit e71e2a749a
174 changed files with 1736 additions and 3933 deletions

View File

@@ -16,37 +16,37 @@
*/
/* spell-checker: disable */
import { ProcessInstance } from '../../process-list/models/process-instance.model';
import { ProcessInstanceRepresentation } from '@alfresco/js-api';
export const exampleProcess = new ProcessInstance({
export const exampleProcess: ProcessInstanceRepresentation = {
id: '123',
name: 'Process 123',
started: '2016-11-10T03:37:30.010+0000',
started: new Date('2016-11-10T03:37:30.010+0000'),
startedBy: {
id: 1001,
firstName: 'Bob',
lastName: 'Jones',
email: 'bob@app.activiti.com'
}
});
};
export const processEnded = new ProcessInstance({
export const processEnded: ProcessInstanceRepresentation = {
id: '123',
name: 'Process 123',
started: '2016-11-10T03:37:30.010+0000',
started: new Date('2016-11-10T03:37:30.010+0000'),
startedBy: {
id: 1001,
firstName: 'Bob',
lastName: 'Jones',
email: 'bob@app.activiti.com'
},
ended: '2016-11-11T03:37:30.010+0000'
});
ended: new Date('2016-11-11T03:37:30.010+0000')
};
export const mockRunningProcess = new ProcessInstance({
export const mockRunningProcess: ProcessInstanceRepresentation = {
id: '123',
name: 'Process 123',
started: '2016-11-10T03:37:30.010+0000',
started: new Date('2016-11-10T03:37:30.010+0000'),
startedBy: {
id: 1001,
firstName: 'Bob',
@@ -54,12 +54,12 @@ export const mockRunningProcess = new ProcessInstance({
email: 'bob@app.activiti.com'
},
ended: null
});
};
export const exampleProcessNoName = new ProcessInstance({
export const exampleProcessNoName: ProcessInstanceRepresentation = {
id: '123',
name: null,
started: '2016-11-10T03:37:30.010+0000',
started: new Date('2016-11-10T03:37:30.010+0000'),
startedBy: {
id: 1001,
firstName: 'Bob',
@@ -67,4 +67,4 @@ export const exampleProcessNoName = new ProcessInstance({
email: 'bob@app.activiti.com'
},
processDefinitionName: 'My Process'
});
};