eiffel-community / eiffel-community/eiffel-pythonlib

Activity should be able to be called outside of subscriber

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
enhancement
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.