In the GN4 version 2.4, a new i4 article can contain the default article elements, as Ted4 and Fred4 already do.
Modified the wf_NewArticle.xml workflow to read the 'glbNewArtElts' key from the Editorial Config.xml global configuration file (see http://tech.teradp.com/tech/html/gn4/docs/guides/gn4/GN4_INDEX.HTML?fpe_arteltautocreate.htm). The 'glbNewArtElts' key can be something like this:
<Item Name="glbNewArtElts" Value="head,subhead,intro,pullquote" />
Note that the order is important, because the workflow generates the new elements considering only the 'glbNewArtElts' value (it doesn't check the element's order configured into the GN4.xsd schema). The 'body' element is always created, as before.
The list of object types that must be inserted before the 'body' element is embedded at the beginning of the workflow file.
As for the 'head' and 'body' texts, the workflow retrieves the editorial format to use for the new texts reading it from the workflow or user/group parameters. For example, for the 'intro' element, the workflow looks for the 'introFormatId' or 'assetToEditorialIntroFormatName' or 'introFormatName' parameter (note that the user/group parameters can be specified also without the 'assetToEditorial' prefix). If you forget to set those format assignments, the error is displayed when attempting to create a new article.