# Activiti
[![Join Us in Gitter](https://badges.gitter.im/Activiti/Activiti7.svg)](https://gitter.im/Activiti/Activiti7?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![CI](https://github.com/Activiti/Activiti/actions/workflows/main.yml/badge.svg)](https://github.com/Activiti/Activiti/actions/workflows/main.yml)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/8035801ae94c441981f363fa99824a33)](https://www.codacy.com/gh/Activiti/Activiti?utm_source=github.com&utm_medium=referral&utm_content=Activiti/Activiti&utm_campaign=Badge_Grade)
[![ASL 2.0](https://img.shields.io/hexpm/l/plug.svg)](https://github.com/Activiti/Activiti/blob/develop/LICENSE.txt)
[![CLA](https://cla-assistant.io/readme/badge/Activiti/Activiti)](https://cla-assistant.io/Activiti/Activiti)
[![security status](https://www.meterian.io/badge/gh/Activiti/Activiti/security)](https://www.meterian.io/report/gh/Activiti/Activiti)
[![stability status](https://www.meterian.io/badge/gh/Activiti/Activiti/stability)](https://www.meterian.io/report/gh/Activiti/Activiti)
[![licensing status](https://www.meterian.io/badge/gh/Activiti/Activiti/licensing)](https://www.meterian.io/report/gh/Activiti/Activiti)
Homepage: <http://activiti.org>
Activiti is a light-weight workflow and Business Process Management (BPM) Platform targeted at business people, developers and system admins. Its core is a super-fast and rock-solid BPMN 2 process engine for Java. It's open-source and distributed under the Apache license. Activiti runs in any Java application, on a server, on a cluster or in the cloud. It integrates perfectly with Spring, it is extremely lightweight and based on simple concepts.
\***\*NOTE: We moved to the master branch all the content of the development branch that we were using to design and code the next major version of the project. If you want to contribute with version 6.x please look at the 6.x branch.\*\***
If you want to read more about our Repositories structure you can read our [GitBook](https://activiti.gitbooks.io/activiti-7-developers-guide/content/).
## Configuring IntelliJ
- Force language level 17, to fail-fast when (accidentally) using features available only in newer Java versions.
- Open menu _File_, menu item _Project Structure_
- Click list item _Modules_, for each module, tab _Sources_, combobox _Language level_ should be automatically set to `17 ...`
- Avoid that changes in some resources are ignored in the next run/debug (and you are forced to use mvn)
- Open menu _File_, menu item _Settings_ or menu _IntelliJ IDEA_, menu item _Preferences..._ if on a Mac
- Click tree item _Compiler_, textfield _Resource patterns_: change to `!?*.java` (remove other content)
- Avoid a `StackOverflowError` when building
- Open menu _File_, menu item _Settings_ or menu _IntelliJ IDEA_, menu item _Preferences..._ if on a Mac
- Click tree item _Compiler_, tree item _Java Compiler_, textfield _Additional command line parameters_
- Add `-J-Xss1024k`
- Recommended code style: use the [Google Java Style Guide](https://google.github.io/styleguide/javaguide.html) with editorconfig
- Download the IntelliJ code style xml from: [https://google.github.io/styleguide/intellij-java-google-style.xml]
- Open menu _File_, menu item _Settings_ or menu _IntelliJ IDEA_, menu item _Preferences..._ if on a Mac
- Click tree item _Code Style_, click cogwheel and select _Import scheme_, then _IntelliJ code style xml_
- Browse where you downloaded the xml and open it. Check that GoogleStyle is the active scheme.
- Note: IntelliJ IDEA doesn't format your code automatically. You have to press Ctrl+Alt+L keyboard combination to trigger auto formatting when coding is done.
- There's an `.editorconfig` what has definition for indents, file encoding, line endings.
- If you disable it, you need to set the file encoding and number of spaces correctly manually.
- Eclipse code style xml: [https://google.github.io/styleguide/eclipse-java-google-style.xml]
- Eclipse needs [editorconfig-eclipse](https://marketplace.eclipse.org/content/editorconfig-eclipse) plugin in order to support EditorConfig files.
- Set manually the correct file encoding (UTF-8 except for properties files) and end-of-line characters (unix):
- Open menu _File_, menu item _Settings_ or menu _IntelliJ IDEA_, menu item _Preferences..._ if on a Mac
- Click tree item _Code Style_, tree item _General_
- Combobox _Line separator (for new files)_: `Unix`
- Click tree item _File Encodings_
- Combobox _IDE Encoding_: `UTF-8`
- Combobox _Default encoding for properties files_: `ISO-8859-1`
- Note: normal i18n properties files must be in `ISO-8859-1` as specified by the java `ResourceBundle` contract.
- Set manually the correct number of spaces when pressing tab:
- Open menu _File_, menu item _Settings_ or menu _IntelliJ IDEA_, menu item _Preferences..._ if on a Mac
- Click tree item _Code Style_, tree item _General_
- Click tab _Java_
- Checkbox _Use tab character_: `off`
- Textfield _Tab size_: `4`
- Textfield _Indent_: `4`
- Textfield _Continuation indent_: `8`
- Open tab _XML_
- Checkbox _Use tab character_: `off`
- Textfield _Tab size_: `2`
- Textfield _Indent_: `2`
- Textfield _Continuation indent_: `4`
- Set the correct file headers (do not include @author or a meaningless javadoc):
- Open menu _File_, menu item _Settings_ or menu _IntelliJ IDEA_, menu item _Preferences..._ if on a Mac
- Click tree item _File templates_, tab _Includes_, list item `File Header`
- Remove the line _@author Your Name_.
- We do not accept `@author` lines in source files, see FAQ below.
- Remove the entire javadoc as automatically templated data is meaningless.
- Set the correct license header
- Open menu _File_, menu item _Settings_ or menu _IntelliJ IDEA_, menu item _Preferences..._ if on a Mac
- Click tree item _Copyright_, tree item _Copyright profiles_
- Click import button to import the _Copyright profile_
- Select the file: [Alfresco_Software.xml](./ide-configuration/intellij-configuration/copyright/Alfresco_Software.xml)
- Click tree item _Copyright_
- Combobox _Default project copyright_: `Alfresco Software`
# FAQ
- Why do you not accept `@author` lines in your source code?
- Because the author tags in the java files are a maintenance nightmare
- A large percentage is wrong, incomplete or inaccurate.
- Most of the time, it only contains the original author. Many files are completely refactored/expanded by other authors.
- Git is accurate, that is the canonical source to find the correct author.
- Because the author tags promote _code ownership_, which is bad in the long run.
- If people work on a piece they perceive as being owned by someone else, they tend to:
- only fix what they are assigned to fix, instead of everything that's broken
- discard responsibility if that code doesn't work properly
- be scared of stepping on the feet of the owner.
- Credit to the authors is given:
- with [Open Hub](https://www.openhub.net/p/activiti/contributors) which also has statistics
- in [the GitHub web interface](https://github.com/activiti).
# Development commands
## Add License header
To format files with the required license:
```bash
mvn license:format
```
## Checkstyle
To check if your code style respect all the rules:
```bash
mvn checkstyle:check -DskipCheckstyle=false
```
## Site
To generate the maven site:
```bash
mvn clean site site:stage
```
the site will be generated at: `target/staging/index.html`
## CI/CD
Running on GH Actions.
For Dependabot PRs to be validated by CI, the label "CI" should be added to the PR.
Requires the following secrets to be set:
| Name | Description |
| ---------------------------- | ---------------------------------- |
| BOT_GITHUB_TOKEN | Tok
没有合适的资源?快使用搜索试试~ 我知道了~
Activiti-develop
共2000个文件
xml:1057个
java:529个
sql:359个
需积分: 5 0 下载量 130 浏览量
2024-01-14
11:03:15
上传
评论
收藏 7.43MB ZIP 举报
温馨提示
Activiti7资源下周
资源推荐
资源详情
资源评论
收起资源包目录
Activiti-develop (2000个子文件)
testInvoiceProcessSignavio.png.html 5KB
testInvoiceProcessFromBusinessProcessIncubator.png.html 2KB
testInvoiceProcessCamundaFoxDesigner.jpg.html 2KB
testProcessFromIboPrometheus.png.html 2KB
testProcessFromIboPrometheus.jpg.html 2KB
testProcessFromActivitiDesigner.png.html 1KB
testProcessFromAdonis.png.html 1KB
testProcessWithTask.png.html 975B
testProcessFromYaoqiang.png.html 937B
testProcessFromCamundaFoxDesigner.jpg.html 872B
testProcessFromCamundaFoxDesigner.png.html 872B
testStartAndEndEventWithNegativeCoordinates.png.html 855B
testSequenceFlowOutOfBounds.png.html 842B
testStartEventWithNegativeCoordinates.png.html 704B
TaskQueryTest.java 146KB
ProcessInstanceQueryTest.java 104KB
FullHistoryTest.java 82KB
ExecutionQueryTest.java 81KB
VariablesTest.java 74KB
MultiInstanceTest.java 69KB
TaskServiceTest.java 66KB
TenancyTest.java 56KB
MessageThrowCatchEventTest.java 52KB
RuntimeServiceTest.java 52KB
HistoryServiceTest.java 49KB
TerminateEndEventTest.java 47KB
HistoricTaskInstanceTest.java 44KB
ActivityEventsTest.java 41KB
ProcessInstanceEventsTest.java 37KB
HistoricTaskQueryEscapeClauseTest.java 36KB
HistoricProcessInstanceTest.java 36KB
HistoricTaskAndVariablesQueryTest.java 35KB
HistoricVariableInstanceTest.java 34KB
JPAVariableTest.java 30KB
SignalEventTest.java 30KB
StartTimerEventTest.java 29KB
VariablesTest.java 28KB
MessageBoundaryEventTest.java 26KB
ProcessDefinitionSuspensionTest.java 26KB
InclusiveGatewayTest.java 26KB
Activiti6Test.java 24KB
DatabaseEventLoggerTest.java 24KB
BoundaryErrorEventTest.java 24KB
HistoricProcessInstanceAndVariablesQueryTest.java 23KB
ProcessInstanceSuspensionTest.java 23KB
MessageEventsAndNewVersionDeploymentsWithTenantIdTest.java 22KB
MessageEventsAndNewVersionDeploymentsTest.java 22KB
HistoricActivityInstanceTest.java 22KB
JobQueryTest.java 21KB
VariableEventsTest.java 21KB
TransactionSubProcessTest.java 20KB
JobEventsTest.java 20KB
AsyncTaskTest.java 20KB
AdhocSubProcessTest.java 19KB
DynamicUserTaskTest.java 19KB
SignalEventsAndNewVersionDeploymentsTest.java 19KB
SubProcessTest.java 19KB
TaskAndVariablesQueryTest.java 19KB
TaskQueryEscapeClauseTest.java 19KB
TaskEventsTest.java 19KB
TaskInvolvementTest.java 18KB
MessageThrowEventTest.java 18KB
VerifyDatabaseOperationsTest.java 18KB
BoundaryTimerEventTest.java 17KB
DefaultProcessValidatorTest.java 17KB
ProcessDefinitionQueryTest.java 16KB
TransientVariablesTest.java 16KB
RepositoryServiceTest.java 16KB
ProcessInstanceMigrationTest.java 16KB
VariableScope.java 15KB
Activiti6ExecutionTest.java 15KB
SubTaskQueryTest.java 14KB
BoundaryTimerNonInterruptingEventTest.java 14KB
AsyncExecutorTest.java 14KB
TerminateMultiInstanceEndEventTest.java 14KB
BpmnDeploymentTest.java 14KB
CallActivityAdvancedTest.java 13KB
VariableScopeTest.java 13KB
CancelCallActivityByMessageTest.java 13KB
SignalThrowingEventListenerTest.java 13KB
HistoricProcessInstanceQueryEscapeClauseTest.java 13KB
TaskVariablesTest.java 12KB
DelegateHelper.java 12KB
CallActivityTest.java 12KB
AttachmentEventsTest.java 12KB
ActivitiEventDispatcherTest.java 12KB
CompensateEventTest.java 11KB
ModelQueryTest.java 11KB
TaskListenerTest.java 11KB
JsonTest.java 11KB
IdentityLinkEventsTest.java 11KB
TaskIdentityLinksTest.java 11KB
ExecutionEntityManagerImplTest.java 10KB
ProcessInstanceAndVariablesQueryTest.java 10KB
MessageStartEventTest.java 10KB
ExclusiveGatewayTest.java 10KB
DeleteReasonTest.java 10KB
ActivitiEventType.java 10KB
ManagementServiceTest.java 10KB
DurationHelperTest.java 10KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
我是时生
- 粉丝: 124
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功