[ADF-1261] Task audit log directive (#2162)

* Create task audit directive

* Remove fit

* Add services

* Add adf-task-audit documentation
This commit is contained in:
Maurizio Vitale
2017-08-03 10:42:43 +01:00
committed by Mario Romano
parent 123ae3618a
commit cc192d7dc4
8 changed files with 365 additions and 0 deletions

View File

@@ -74,6 +74,17 @@
(taskDeleted)="onTaskDeleted($event)">
</activiti-task-details>
<hr>
Task Audit log
<button *ngIf="currentTaskId"
adf-task-audit
[task-id]="currentTaskId"
[download]="auditDownload.checked"
md-icon-button (clicked)="onAuditClick($event)" (error)="onAuditError($event)" >
<md-icon>assignment_ind</md-icon>
</button>
<md-checkbox #auditDownload>Download</md-checkbox>
<hr>
<md-card>
<md-card-content>
<activiti-task-attachments

View File

@@ -286,6 +286,16 @@ export class ActivitiDemoComponent implements AfterViewInit, OnDestroy, OnInit {
this.contentName = content.name;
}
onAuditClick(event: any): void {
this.fileShowed = true;
this.content = event.value;
this.contentName = event.fileName;
}
onAuditError(event: any): void {
console.error('My custom error message' + event);
}
onTaskCreated(data: any): void {
this.currentTaskId = data.parentTaskId;
this.taskList.reload();