butterfly icon indicating copy to clipboard operation
butterfly copied to clipboard

Introduce dynamic manual instructions by value setting from transformation context

Open fabiocarvalho777 opened this issue 5 years ago • 3 comments

Currently every manual instruction document is static. Allow the usage of transformation context attributes to set portions of manual instruction document via interpolation, by replacing placeholders in the document with values from transformation context attributes.

API changes

Notice the addAtribute method call. The first parameter, "appName", is the placeholder key in the document text, to be replaced by the value of the specified transformation context attribute (the second parameter).

add(new ManualInstruction("Fix invalid Maven dependency versions issues", "MavenEnforcer.md").executeIf(validationFailed).addAttribute("appName", APP_NAME));

fabiocarvalho777 avatar Aug 16 '18 22:08 fabiocarvalho777