Skip to content

Commit 30afd2d

Browse files
authored
AAE-42151 [FE - Studio Admin] Improve types for Integration Contexts (#11633)
1 parent 10ae06b commit 30afd2d

File tree

2 files changed

+40
-4
lines changed

2 files changed

+40
-4
lines changed

lib/process-services-cloud/src/lib/task/task-list/models/service-task-cloud.model.ts

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,47 @@ export interface ServiceTaskQueryCloudRequestModel {
4141
startedDate?: Date;
4242
}
4343

44-
export interface ServiceTaskIntegrationContextCloudModel extends ServiceTaskQueryCloudRequestModel {
45-
errorDate?: Date;
46-
errorClassName?: string;
44+
export interface ServiceTaskIntegrationContextCloudModel {
45+
id?: string;
46+
status?: string;
47+
appName?: string;
48+
appVersion?: string;
49+
serviceName?: string;
50+
serviceFullName?: string;
51+
serviceVersion?: string;
52+
serviceType?: string;
53+
processDefinitionId?: string;
54+
processDefinitionKey?: string;
55+
processDefinitionVersion?: number;
56+
processInstanceId?: string;
57+
parentProcessInstanceId?: string;
58+
rootProcessInstanceId?: string;
59+
executionId?: string;
60+
connectorType?: string;
61+
clientId?: string;
62+
clientName?: string;
63+
clientType?: string;
64+
businessKey?: string;
65+
inBoundVariables?: Record<string, any>;
66+
outBoundVariables?: Record<string, any>;
67+
requestDate?: string;
68+
resultDate?: string;
69+
errorDate?: string;
4770
errorCode?: string;
71+
errorClassName?: string;
4872
errorMessage?: string;
73+
stackTraceElements?: ServiceTaskStackTraceElement[];
74+
}
75+
76+
export interface ServiceTaskStackTraceElement {
77+
classLoaderName?: string;
78+
moduleName?: string;
79+
moduleVersion?: string;
80+
methodName?: string;
81+
fileName?: string;
82+
lineNumber?: number;
83+
className?: string;
84+
nativeMethod?: boolean;
4985
}
5086

5187
export interface StackTraceElement {

lib/process-services-cloud/src/lib/task/task-list/services/service-task-list-cloud.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class ServiceTaskListCloudService extends BaseCloudService {
6060
getServiceTaskStatus(appName: string, serviceTaskId: string): Observable<ServiceTaskIntegrationContextCloudModel> {
6161
if (appName) {
6262
const queryUrl = `${this.getBasePath(appName)}/query/admin/v1/service-tasks/${serviceTaskId}/integration-context`;
63-
return this.get(queryUrl).pipe(map((response: any) => response.entry));
63+
return this.get<{ entry: ServiceTaskIntegrationContextCloudModel }>(queryUrl).pipe(map((response) => response.entry));
6464
} else {
6565
return throwError('Appname not configured');
6666
}

0 commit comments

Comments
 (0)