mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
fix type definition variables
This commit is contained in:
@@ -26,6 +26,7 @@ import { TranslationMock } from './../assets/translation.service.mock';
|
||||
import { newProcess, fakeProcessDefs, fakeProcessDefWithForm, taskFormMock } from './../assets/activiti-start-process.component.mock';
|
||||
import { ActivitiStartProcessInstance } from './activiti-start-process.component';
|
||||
import { ActivitiProcessService } from '../services/activiti-process.service';
|
||||
import { RestVariable } from 'alfresco-js-api';
|
||||
|
||||
describe('ActivitiStartProcessInstance', () => {
|
||||
|
||||
@@ -206,9 +207,9 @@ describe('ActivitiStartProcessInstance', () => {
|
||||
}));
|
||||
|
||||
it('should call service to start process with the variables setted', async(() => {
|
||||
let inputProcessVariable = [];
|
||||
let inputProcessVariable:RestVariable[] = [];
|
||||
|
||||
let variable: any = {};
|
||||
let variable: RestVariable;
|
||||
variable.name = 'nodeId';
|
||||
variable.value = 'id';
|
||||
|
||||
|
@@ -37,7 +37,7 @@ export class ActivitiStartProcessInstance implements OnChanges {
|
||||
appId: string;
|
||||
|
||||
@Input()
|
||||
variables: RestVariable;
|
||||
variables: RestVariable[];
|
||||
|
||||
@Output()
|
||||
start: EventEmitter<ProcessInstance> = new EventEmitter<ProcessInstance>();
|
||||
|
@@ -276,7 +276,7 @@ export class ActivitiProcessService {
|
||||
.catch(err => this.handleError(err));
|
||||
}
|
||||
|
||||
startProcess(processDefinitionId: string, name: string, outcome?: string, startFormValues?: any, variables?: RestVariable): Observable<ProcessInstance> {
|
||||
startProcess(processDefinitionId: string, name: string, outcome?: string, startFormValues?: any, variables?: RestVariable[]): Observable<ProcessInstance> {
|
||||
let startRequest: any = {
|
||||
name: name,
|
||||
processDefinitionId: processDefinitionId
|
||||
|
Reference in New Issue
Block a user