constructor()

in desktop/src/app/decorators/task-decorator.ts [32:56]


    constructor(task: Task) {
        super(task);

        this.displayName = this.stringField(task.displayName);
        this.url = this.stringField(task.url);
        this.eTag = this.stringField(task.eTag);
        this.state = this.stateField(task.state);
        this.previousState = this.stateField(task.previousState);
        this.commandLine = this.stringField(task.commandLine);
        this.requiredSlots = task.requiredSlots;

        this.exitConditions = task.exitConditions || {};
        this.resourceFiles = task.resourceFiles || {};
        this.environmentSettings = task.environmentSettings || {};
        this.affinityInfo = task.affinityInfo || {};
        this.containerSettings = new TaskContainerSettingsDecorator(task.containerSettings || {} as any);
        this.constraints = new TaskConstraintsDecorator(task.constraints || {} as any);
        this.executionInfo = new TaskExecutionInfoDecorator(task.executionInfo || {} as any);
        this.nodeInfo = new ComputeNodeInfoDecorator(task.nodeInfo || {} as any);
        this.multiInstanceSettings = task.multiInstanceSettings || {};
        this.stats = task.stats || {};
        this.dependsOn = task.dependsOn || {};

        this._initUserIdentity();
    }