Penstock

Guide / Share and move

Share as HTML

Turn a diagram, a decision file or a form into one HTML file that anyone can open in a browser, with no editor installed and no internet.

Free

Steps

  1. Open the diagram, decision or form.
  2. Open More and choose Share as HTML….
  3. A save dialog called Share as HTML asks where to put the file. It suggests a name from the diagram.
  4. A message says Saved … It opens offline in any browser.
  5. Send the file. Attach it to an e-mail, put it on a wiki, drop it on a share.
The command palette with share typed in the field. One action is listed, Share as HTML, in the section Deploy & share, with a pin at its right
Share as HTML found by typing share in the palette.

What the reader sees

A shared diagram in a browser with zoom buttons and the documentation of a selected element
A shared diagram, in light. The reader has clicked an element and its documentation appears.
The same shared diagram in the reader's dark setting
The same file in the reader's dark setting.

What is in the file

A shared page is built from the file you share and nothing else. It is one HTML file with its style and script inside it.

SourceWhat goes into the pageWhat does not
A diagram (.bpmn, .bpmn.xml, .bpmn20.xml)The drawing as a picture, and for every element that has a name or a documentation text: its id, its kind, its name and its documentation. The title is the name of the collaboration, or of the pool or process, or of the diagram, and the file name when none is set.The XML itself, scripts, expressions, variable mappings, camunda: and zeebe: settings and comments. Only the drawing and the texts above are in the page.
A decision file (.dmn)The decisions as tables, titled with the name of the definitions.The decision file.
A form (.form)The fields of the form as a table, titled with the file name.The form file.

Anything you wrote in an element's documentation field is in the page, in plain text. Read it before you send it, as you would any document.

The viewer

Limits

Privacy

The file loads nothing and sends nothing. It makes no network request, uses no CDN, has no telemetry, and carries a content security policy that forbids all of them. Only what is in the diagram goes into the file. Read it before you send it, as you would any document.

In a terminal

penstock share orders.bpmn -o orders.html

Without -o the file is written next to the diagram, named after it. This is different from Export, which draws the diagram for a document or a wiki, and from penstock docs, which writes a page of prose about every process. share is free, so it can run in a pipeline: attach the page to a release.

Share from your tool

JetBrains

Only from the editor, with More | Share as HTML… as described above. To share many diagrams at once, use the command line.

VS Code

Only from the editor, with More | Share as HTML… as described above, or Penstock: Share as HTML… in the Command Palette. To share many diagrams at once, use the command line.

Command line

$ penstock share process.bpmn -o process.html
wrote process.html
One file, opens offline in any browser; nothing in it reaches the network.

Without -o the file goes next to the source with the extension .html. The command takes one .bpmn, .bpmn.xml, .bpmn20.xml, .dmn or .form file. See Every command.

Common problems

"could not be shared" and "Nothing was written".
The file could not be read as a diagram. Open it in the editor to see why.
"is not a .bpmn, .dmn or .form file".
Share takes one of those file types only.
The reader cannot edit the diagram.
Right. It is a viewer. To let someone edit, send the .bpmn file.
I need a picture, not a page.
Use Export.