Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementation of ACTIVITY_SIGNALED event #2511

Merged
merged 11 commits into from Mar 26, 2019

Conversation

CTI777
Copy link
Contributor

@CTI777 CTI777 commented Feb 14, 2019

Related to #2272
Depends on AlfrescoArchive/activiti-api#84

Copy link
Member

@erdemedeiros erdemedeiros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to my comment you also need to add an integration test for it.
You can use ProcessDeployedEventIT as reference. You will need:

  • start one or more instances of a process containing a intermediate catch signal
  • send a signal
  • check if your test listener received the related SIGNAL_RECEIVED events

@erdemedeiros
Copy link
Member

@CTI777 it looks good to me. I'm not merging yet because I think @salaboy want to take a look on it as well.

@erdemedeiros erdemedeiros force-pushed the CTI777-2272-Missing-audit-event-apis-for-signals branch from 1aa4be8 to 09364a3 Compare March 22, 2019 06:13
@erdemedeiros erdemedeiros force-pushed the CTI777-2272-Missing-audit-event-apis-for-signals branch from 09364a3 to 2729e1a Compare March 25, 2019 16:36
@codecov
Copy link

codecov bot commented Mar 26, 2019

Codecov Report

Merging #2511 into develop will increase coverage by 0.03%.
The diff coverage is 94.11%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #2511      +/-   ##
=============================================
+ Coverage      61.09%   61.13%   +0.03%     
  Complexity      1604     1604              
=============================================
  Files           1148     1151       +3     
  Lines          40589    40623      +34     
  Branches        5914     5915       +1     
=============================================
+ Hits           24797    24833      +36     
+ Misses         13032    13030       -2     
  Partials        2760     2760
Impacted Files Coverage Δ Complexity Δ
...i/runtime/api/ProcessRuntimeAutoConfiguration.java 96.55% <100%> (+0.25%) 0 <0> (ø) ⬇️
...time/api/event/impl/ToSignalReceivedConverter.java 100% <100%> (ø) 0 <0> (?)
...viti/runtime/api/model/impl/ToSignalConverter.java 91.66% <91.66%> (ø) 0 <0> (?)
...event/internal/SignalReceivedListenerDelegate.java 92.3% <92.3%> (ø) 0 <0> (?)
...mpl/agenda/TakeOutgoingSequenceFlowsOperation.java 89.8% <0%> (+1.27%) 0% <0%> (ø) ⬇️
.../activiti/engine/impl/util/ExecutionGraphUtil.java 50.87% <0%> (+3.5%) 0% <0%> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1e8df06...2fae9dd. Read the comment docs.

@erdemedeiros erdemedeiros merged commit 52d0659 into develop Mar 26, 2019
@erdemedeiros erdemedeiros deleted the CTI777-2272-Missing-audit-event-apis-for-signals branch March 26, 2019 11:38
erdemedeiros pushed a commit to AlfrescoArchive/activiti-cloud-runtime-bundle-service that referenced this pull request Apr 2, 2019
salaboy pushed a commit to AlfrescoArchive/activiti-cloud-runtime-bundle-service that referenced this pull request Apr 16, 2019
* Add error-handling dependency to starters

* Create exception handler specific to runtime bundle

* Clean exception handlers scattered in controllers

* Implementation of signalReceived event (#247)

Related to Activiti/Activiti#2272
Depends on 
AlfrescoArchive/activiti-api#84
AlfrescoArchive/activiti-cloud-api#65
Activiti/Activiti#2511

* Fix audit producer test (#284)

- Take in account new events thrown for signal received event that was not thrown before
- Move test to SignalAuditProducerIT

Related to Activiti/Activiti#2272

*  Move CloudActivityBehaviorFactory to runtime bundle (#281)

* Move CloudActivityBehaviorFactory to runtime bundle

Initially CloudActivityBehaviorFactory was declared in set in Activiti core, but this was breaking intermediate throw signals when non-cloud starter was used.

Related to Activiti/Activiti#2663

* Move CloudActivityBehaviorFactory to runtime bundle

Initially CloudActivityBehaviorFactory was declared in set in Activiti core, but this was breaking intermediate throw signals when non-cloud starter was used.

Related to Activiti/Activiti#2663

* fix(version): update org.activiti.dependencies:activiti-dependencies to 7.1.11

* fix(version): update org.activiti.dependencies:activiti-dependencies to 7.1.12

* fix(version): update org.activiti.dependencies:activiti-dependencies to 7.1.13

* Change HttpStatus for int in RestControllerAdvice

* fix(version): update org.activiti.dependencies:activiti-dependencies to 7.1.14

* fix(version): update org.activiti.cloud.common:activiti-cloud-service-common-dependencies to 7.1.24

* fix(version): update org.activiti.cloud.common:activiti-cloud-service-common-dependencies to 7.1.25

* fix(version): update org.activiti.cloud.build:activiti-cloud-parent to 7.1.7

* fix(version): update org.activiti.cloud.common:activiti-cloud-service-common-dependencies to 7.1.26

* Refactor ActivitiErrorMessage class

* Refactor with MediaType constants

* Refactor error handlers module

* Add swagger generator test (#287)

* Add swagger generator test

* Produce swagger file as a Maven artifact

- add plugin configuration to produce swagger file as a Maven artifact
- produce both Alfresco and Hal format

* Add yaml convertion from json

* Add TODO to swagger yaml generation

* Add generated yaml as an artifact

* Add Gson prettifying features

* Move Swagger generation inside a special type of test

- Add a new configuration for failsafe plugin to hanle *ITSupport.java which will generate the swagger file
- Create a profile generate-swagger enabled by default (can be skipped with `-DskipSwaggerGen` option)

* Add comments

* Add yaml generation back

* Format swagger-hal.json at creation

* Change scope for gson dependency to test

* Add test scope to jackson-dataformat-yaml

* A test to check that processDefinitionVersion set on TaskStarted event (#285)

* A test to check that processDefinitionVersion set on TaskStarted event

* Test modified to check only event's processDefinitionVersion

* Remove icon from connecto definitions (#243)

* Add common handlers module to rest-impl

* Remove handler from ConnectorDefinitionControllerImpl

* Clear exception handler

* Change return type for exception handler

* Optimize imports

* Clear exception handler from ProcessInstanceControllerImpl

* Fix test response type

* Optimize imports

* Change return type of error handler

* Process instance description field removal (#262)

* Process instance description field removal

* Process instance description field removal

* fix(version): update org.activiti.dependencies:activiti-dependencies to 7.1.15

* fix(version): update org.activiti.cloud.common:activiti-cloud-service-common-dependencies to 7.1.27

* fix(version): update org.activiti.cloud.common:activiti-cloud-service-common-dependencies to 7.1.28

* fix(version): update org.activiti.cloud.common:activiti-cloud-service-common-dependencies to 7.1.29

* Update pom.xml

* Update pom

* Add swagger artifacts to BOM (#292)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants