1.9.0 • Published 6 years ago

ng2-activiti-diagrams v1.9.0

Weekly downloads
16
License
Apache-2.0
Repository
github
Last release
6 years ago

Activiti Diagrams Component

Prerequisites

Before you start using this development framework, make sure you have installed all required software and done all the necessary configuration, see this page.

If you plan using this component with projects generated by Angular CLI, please refer to the following article: Using ADF with Angular CLI

Install

npm install ng2-activiti-diagrams

Activiti Diagram Component

This component shows the diagram of a process.

<activiti-diagram 
    [processDefinitionId]="processDefinitionId">
</activiti-diagram>

Or below component shows the diagram of a running process instance with the activities highlighted according to their state (Active/Completed/Pending).

<activiti-diagram 
    [processInstanceId]="processInstanceId">
</activiti-diagram>

Properties

NameTypeDescription
metricPercentagesanyThe array that contains the percentage of the time for each element
processInstanceIdany
metricColoranyThe array that contains the color for each element
metricTypeanyThe string that specifies the metric type
widthnumber
heightnumber

Events

NameDescription
onSuccessRaised when the diagrams element are loaded
onErrorRaised when the an error occur during the loading

Build from sources

You can build component from sources with the following commands:

npm install
npm run build

The build task rebuilds all the code, runs tslint, license checks and other quality check tools before performing unit testing.

NPM scripts

CommandDescription
npm run buildBuild component
npm run testRun unit tests in the console
npm run test-browserRun unit tests in the browser
npm run coverageRun unit tests and display code coverage report

Demo

Please check the demo folder for a demo project

cd demo
npm install
npm start

License

Apache Version 2.0

1.10.0-beta7

6 years ago

1.10.0-beta6

7 years ago

1.10.0-beta5

7 years ago

1.10.0-beta4

7 years ago

1.10.0-beta3

7 years ago

1.10.0-beta2

7 years ago

1.10.0-beta1

7 years ago

1.9.0

7 years ago

1.9.0-beta8

7 years ago

1.9.0-beta7

7 years ago

1.9.0-beta6

7 years ago

1.9.0-beta5

7 years ago

1.9.0-beta4

7 years ago

1.9.0-beta3

7 years ago

1.9.0-beta1

7 years ago

1.8.0

7 years ago

1.8.0-beta7

7 years ago

1.8.0-beta6

7 years ago

1.8.0-beta5

7 years ago

1.8.0-beta4

7 years ago

1.8.0-beta1

7 years ago

1.7.0

7 years ago

1.7.0-beta5

7 years ago

1.7.0-beta4

7 years ago

1.7.0-beta3

7 years ago

1.7.0-beta2

7 years ago

1.7.0-beta1

7 years ago

1.6.1

7 years ago

1.6.0

7 years ago

1.6.0-beta14

7 years ago

1.6.0-alpha7

7 years ago

1.6.0-alpha6

7 years ago

1.6.0-alpha5

7 years ago

1.6.0-alpha3

7 years ago

1.6.0-alpha2

7 years ago

1.6.0-beta13

7 years ago

1.6.0-beta12

7 years ago

1.6.0-beta11

7 years ago

1.6.0-beta10

7 years ago

1.6.0-beta9

7 years ago

1.6.0-beta8

7 years ago

1.6.0-beta7

7 years ago

1.6.0-beta6

7 years ago

1.6.0-beta5

7 years ago

1.6.0-beta4

7 years ago

1.6.0-beta3

7 years ago

1.6.0-beta2

7 years ago

1.6.0-beta1

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago