Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: cjwik on August 12, 2016, 06:05:14 am
-
I have created a document rtf template, template selector and fragment to have a custom BPMN report.
The challenge is that I like to have diffrent layout for the Activity name depending if the Activity is a Sub-Process or Task.
On the element Activity there is a property called activityType, with the values Task or Sub-Process.
In the fragment I have for activities would I like to have the field Name in format normal text if the property activityType is set to Task, and if the property is set to Sub-Process then I would like to have the element field Name set to format heading 2.
In pseudo code
{If Element.valueOf(activityType)=Task}
{Element.Name} "format normal text"
{EndIf}
{If Element.valueOf(activityType)=Sub-Process}
{Element.Name} "format heading 2"
{EndIf}
I cannot find a if thing like this for reports, so I turn to element filers for fragments. But I am not able to create a filter for the field Element.valueOf(activityType).
How should one do this?
-
if you can't filter it using the standard filters then I guess you'll have to use a script or SQL fragments
Geert