eiffel-community / eiffel-community/eiffel-pythonlib
Activity should be able to be called outside of subscriber
- Dominant language
- Python
- Stars
- 8
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
### Description
An Activity should be able to handle being called without being a subscriber callback.
That is, you should be able to call an activity.
Example:
```
class MyActivity(Activity):
pass
activity = MyActivity(...)
activity()
# Stuff happens
```
### Motivation
Sometimes an activity can be triggered without listening on events, for example when creating a tool that sends activity triggered,started,finished.
### Exemplification
Activities should be allowed to be used as activities started and not just activities triggered.
### Benefits
Ease of use.
### Possible Drawbacks
Maybe pinning too much functionality to the activity object.
Contributor guide
Assessment
This issue has not been assessed yet.