Hello,
i’m currently trying to adapt the Parent-Subtemplate for BusinessProcessDiagrams.
I tried some versions like the following, but nothing worked:
<?xml version="1.0" encoding="UTF-8"?>
<Template>
<TemplateInformationHeader name="Parent" description="/" type="table" default="false"/>
<DiagramBaseInitiationBlock>
<StaticText content="Parent" style="Heading 2 (VP)"/>
<ParagraphBreak/>
<HasParentModelChecker property="references" flag="true">
<TableBlock colWidths="5000,5000" tableWidth="14500" alignment="right">
<TableRow>
<TableCell leftBorderEnable="false" rightBorderEnable="false" color="230, 230, 230">
<StaticText content="Name" style="Column header 1"/>
</TableCell>
<TableCell leftBorderEnable="false" rightBorderEnable="false" color="230, 230, 230">
<StaticText content="Type" style="Column header 1"/>
</TableCell>
</TableRow>
<ParentModel>
<TableRow>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
<StringPropertyText propertyText="fullName" style="Table Contents"/>
</TableCell>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
<StringPropertyText propertyText="modelType" style="Table Contents"/>
</TableCell>
</TableRow>
</ParentModel>
</TableBlock>
</HasParentModelChecker>
<StaticText content="" style="Default"/>
</DiagramBaseInitiationBlock>
</Template>
I’m ultimatively trying to display the Comments of a Model’s parent model.
Code is like the following (but not working, of course):
<?xml version="1.0" encoding="UTF-8"?>
<Template>
<TemplateInformationHeader name="ParentComments" description="/" type="table" default="false"/>
<DiagramBaseInitiationBlock>
<StaticText content="ParentComments" style="Heading 2 (VP)"/>
<ParagraphBreak/>
<HasParentModelChecker property="references" flag="true">
<ParentModel>
<HasMetaModelPropertyChecker property="comments" flag="true">
<StaticText content="Comments" style="Heading 3 (VP)"/>
<TableBlock colWidths="30, 10, 10, 50" tableWidth="15500" alignment="right" rowBackgroundColors="#F0F0FF, #FFFFFF">
<TableRow>
<TableCell leftBorderEnable="false" rightBorderEnable="false" color="230, 230, 230">
<StaticText content="Summary" style="Column header 1"/>
</TableCell>
<TableCell leftBorderEnable="false" rightBorderEnable="false" color="230, 230, 230">
<StaticText content="Author" style="Column header 1"/>
</TableCell>
<TableCell leftBorderEnable="false" rightBorderEnable="false" color="230, 230, 230">
<StaticText content="Date Time" style="Column header 1"/>
</TableCell>
<TableCell leftBorderEnable="false" rightBorderEnable="false" color="230, 230, 230">
<StaticText content="Documentation" style="Column header 1"/>
</TableCell>
</TableRow>
<ForEach property="comments">
<TableRow>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
<StringPropertyText propertyText="name" style="Table Contents"/>
</TableCell>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
<StringPropertyText propertyText="author" style="Table Contents"/>
</TableCell>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
<StringPropertyText propertyText="dateTime" style="Table Contents"/>
</TableCell>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
<StringPropertyText propertyText="documentation" style="Table Contents"/>
</TableCell>
</TableRow>
</ForEach>
</TableBlock>
</HasMetaModelPropertyChecker>
</ParentModel>
</HasParentModelChecker>
<StaticText content="" style="Default"/>
</DiagramBaseInitiationBlock>
</Template>
How is this possible and what am i doing wrong?
I’d be thankful for any advice you can offer.
-cbarth