Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Workflow] Add colors to workflow dumps #28874

Copy link
Copy link
Closed
@alexislefebvre

Description

@alexislefebvre
Issue body actions

Description
The PR [Workflow] Add a MetadataStore to fetch some metadata #26092 has been merged so we can add some metadata to our workflows.

The text of the PR shows an example with color: grey, so it looks like the support of color was planned.

When I dump the workflow with both formats, there are no color on the images, like the examples in the documentation.

How can we add colors to the dumped workflow? Is the feature implemented yet?

See also symfony/symfony-docs#9476 if it needs it be documented.

Example

I use symfony/workflow:4.1.3 (the problem is the same with 4.1.6).

I have a workflow like this:

framework:
    workflows:
        my_entity:
            type: 'state_machine'
            marking_store:
                type: 'single_state'
                arguments:
                    - 'state'
            supports:
                - App\Entity\MyEntity
            initial_place: created
            places:
                created:
                    metadata:
                        description: Entity created, waiting for next step
                        color: green
            #

And the output doesn't use the colors or the description.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.