AAE-33025 Updated process definition type to support constant values (#10751)

This commit is contained in:
Ehsan Rezaei 2025-03-28 16:50:51 +01:00 committed by GitHub
parent 28d8052726
commit 555e6c027f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 26 additions and 1 deletions

View File

@ -0,0 +1,20 @@
/*!
* @license
* Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
*
* 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 interface ConstantValues {
unauthorizedStart: string;
}

View File

@ -15,6 +15,7 @@
* limitations under the License.
*/
import { ConstantValues } from './constant-values.type';
import { ProcessVariableDefinition } from './variable-definition';
export class ProcessDefinitionCloud {
@ -28,6 +29,7 @@ export class ProcessDefinitionCloud {
category: string;
description: string;
variableDefinitions?: ProcessVariableDefinition[];
constantValues?: ConstantValues;
constructor(obj?: any) {
this.id = obj?.id;
@ -40,5 +42,6 @@ export class ProcessDefinitionCloud {
this.category = obj?.category || '';
this.description = obj?.description || '';
this.variableDefinitions = obj?.variableDefinitions ?? [];
this.constantValues = obj?.constantValues ?? {};
}
}

View File

@ -19,6 +19,7 @@ import { Pagination } from '@alfresco/js-api';
import { IdentityGroupModel } from '../group/models/identity-group.model';
import { IdentityUserModel } from '../people/models/identity-user.model';
import { ProcessInstanceVariable } from './process-instance-variable.model';
import { ConstantValues } from './constant-values.type';
export class TaskCloudNodePaging {
list: TaskCloudPagingList;
@ -57,4 +58,5 @@ export interface TaskCloudModel {
status: string;
taskDefinitionKey: string;
processVariables?: ProcessInstanceVariable[];
}
constantValues?: ConstantValues;
}