mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
AAE-33025 Updated process definition type to support constant values (#10751)
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
@@ -15,6 +15,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { ConstantValues } from './constant-values.type';
|
||||||
import { ProcessVariableDefinition } from './variable-definition';
|
import { ProcessVariableDefinition } from './variable-definition';
|
||||||
|
|
||||||
export class ProcessDefinitionCloud {
|
export class ProcessDefinitionCloud {
|
||||||
@@ -28,6 +29,7 @@ export class ProcessDefinitionCloud {
|
|||||||
category: string;
|
category: string;
|
||||||
description: string;
|
description: string;
|
||||||
variableDefinitions?: ProcessVariableDefinition[];
|
variableDefinitions?: ProcessVariableDefinition[];
|
||||||
|
constantValues?: ConstantValues;
|
||||||
|
|
||||||
constructor(obj?: any) {
|
constructor(obj?: any) {
|
||||||
this.id = obj?.id;
|
this.id = obj?.id;
|
||||||
@@ -40,5 +42,6 @@ export class ProcessDefinitionCloud {
|
|||||||
this.category = obj?.category || '';
|
this.category = obj?.category || '';
|
||||||
this.description = obj?.description || '';
|
this.description = obj?.description || '';
|
||||||
this.variableDefinitions = obj?.variableDefinitions ?? [];
|
this.variableDefinitions = obj?.variableDefinitions ?? [];
|
||||||
|
this.constantValues = obj?.constantValues ?? {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ import { Pagination } from '@alfresco/js-api';
|
|||||||
import { IdentityGroupModel } from '../group/models/identity-group.model';
|
import { IdentityGroupModel } from '../group/models/identity-group.model';
|
||||||
import { IdentityUserModel } from '../people/models/identity-user.model';
|
import { IdentityUserModel } from '../people/models/identity-user.model';
|
||||||
import { ProcessInstanceVariable } from './process-instance-variable.model';
|
import { ProcessInstanceVariable } from './process-instance-variable.model';
|
||||||
|
import { ConstantValues } from './constant-values.type';
|
||||||
|
|
||||||
export class TaskCloudNodePaging {
|
export class TaskCloudNodePaging {
|
||||||
list: TaskCloudPagingList;
|
list: TaskCloudPagingList;
|
||||||
@@ -57,4 +58,5 @@ export interface TaskCloudModel {
|
|||||||
status: string;
|
status: string;
|
||||||
taskDefinitionKey: string;
|
taskDefinitionKey: string;
|
||||||
processVariables?: ProcessInstanceVariable[];
|
processVariables?: ProcessInstanceVariable[];
|
||||||
}
|
constantValues?: ConstantValues;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user