Groups in Palettes

I’m evaluating gojs for use in creating workflows and as part of the workflow creation process my users are able to create groups.

What I’m wondering is if it is possible to take the groups that are created and add them to a palette so that the user can re-use these groups.

Yes, you can have Groups in a Diagram such as a Palette, and have users drag them from the palette to another diagram. The BPMN sample,, demonstrates this. Try dragging the “Subprocess” node, which is actually a group.

You can even automatically expand and ungroup groups that are dropped into the main diagram. This is demonstrated by the sample, which implements an “ExternalObjectsDropped” DiagramEvent listener for that behavior. I cannot tell whether this kind of functionality might be useful to your app.