Skip to content

Activity should be able to be called outside of subscriber #10

Open
@t-persson

Description

@t-persson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions