I am trying to understand how to colour (and define if necessary) unexpected transitions in Machinery/Process. I already defined the expected transitions but there are several processes which din’t take such transitions and aren’t coloured red in the standard workshop. By default the workshop also just shows the expected edges/transitions rather than all the ones I defined. I didn’t find anything in the public docs on how to do this.
Steps to reproduce:
Create a manual process setting the states and transitions manually in the process/machinery app.
Set the “expected transitions” in the process/machinery app.
Have transitions which are have been set but aren’t on the “expected transitions”.
Workshop only shows these transitions when using the slider and these not “expected transitions” are not coloured “red” as suggested by the legend.
Expected behaviour:
Define all States/Transitions in the “Process App” (in my case manually.
Set expected Transitions in “Process App”.
In Workshop, any unexpected (i.e. not in the “expected”) transition edge which has more than 1 should be coloured red and ideally show by default, not just when using the slider to expand transitions.
It seems like there are two things to consider here
Coloring of unexpected transitions
Showing expected transitions by default
1. Coloring of unexpected transitions
We color expected transitions in green and the other transitions in gray. You can consider these gray transitions as your unexpected transitions. Any transitions which are not defined in Machinery app, will not be shown at all.
We are looking into improving the design of the widget soon and will consider how we can make unexpected transitions more clear.
The legend here is specifically referring to state color schemes. One way to color states (the nodes on the graph) is to use a features called “expectations”. You can set expectations by right-clicking on a state in a workshop widget. If a state does not meet expectations, it will be colored red.
One option might be to enable “live mining” in the workshop widget config. This will allow you to pass an expected path through the widget config rather than using the expected transitions defined in Machinery app.
In this mode, all transitions are shown by default.
We often find that showing the entire process by default leads to a noisey graph that is hard to read, which is why we filter to the expected transitions and provide the slider. However, we will consider making this configurable such that we can support showing all transitions by default.
Please let me know if there are any additional questions.