Skip to content

Examples of conditions and conditional transitions #39

@stappersg

Description

@stappersg

The usage example of FysomGlobalMixin and FysomGlobal has

                    'name': 'panic',
                    'src': ['green', 'yellow'],
                    'dst': 'red',
                    'cond': [  # can be function object or method name
                        'is_angry',  # by default target is "True"
                        {True: 'is_very_angry', 'else': 'yellow'}
                    ]

I don't understand how to set conditions nor how to do a condtional transition.
Please extend the example with such use case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions