Documentation
¶
Overview ¶
Package rewrite turns models written for Camunda 7 into the model format of this engine (MIG-04): JUEL becomes JavaScript, Groovy logging becomes log, external task topics become task types, the http-connector becomes a notification or an HTTP call, and message names with expressions become senergy:messageName. It works on the XML, so that layout and diagram stay untouched, and reports what it rewrote, what needs a manual check and what it cannot rewrite.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Checked ¶
type Checked struct {
// the BPMN that runs; the given one if it is in the format of the engine already
Xml string
Process *bpmn.Process
// what keeps the model from deploying: the parts the conversion cannot rewrite, then the
// issues of the converted model
Issues []model.Issue
Report Report
}
Checked is a model as the engine runs it: converted where it is written for Camunda 7 or the old designer, then validated under the rules of a namespace.
type Report ¶
type Report = model.ConversionReport
Report lists what the rewrite changed (Rewritten), what runs but may behave differently and should be checked (Check), and what keeps the model from running (Unsupported).
func Rewrite ¶
Rewrite rewrites a model. An error means the XML could not be read at all.
It is also the detector of the format: a model in the format of this engine has nothing the rewrite looks for, so it comes back unchanged, byte for byte, with an empty report and without validation, which is then up to the caller. Only the parts of a mixed model that are written for Camunda are rewritten; rewriting a result again finds nothing.