Output Use Case Scenario with Extension Point along with steps

Visual Paradigm’s Use Case Details editor allow users model every details of an use case, including discussion node, requirements, extra properties and flow of events. All these details can output to document using Doc. Composer. By default in use case flow of events the extension point will output in a separate list follow to the original flow. In this article we will show you how to output the extension point along with its associated step.

Assume we got the flow of event of an use case defined in this way.

Flow of events defined on a use case

Flow of events defined on a use case

To output the flow of events with extension point along with the step:

  1. Go to Tools > Doc. Composer.

    Open Doc. Composer

    Open Doc. Composer

  2. Select Build Doc. From Scratch.

    Select Build Doc from Scratch

    Select Build Doc from Scratch

  3. Select the use case in Model Explorer tree.

    Select use case in Model Explorer

    Select use case in Model Explorer

  4. Right click on any template in Template pane and select Duplicate from popup menu.

    Duplicate a template

    Duplicate a template

  5. Name the template as Flow of Events (inline Extension Points).

    Specify the name of the template

    Specify the name of the template

  6. Replace the content of the template as follow.
    <?xml version="1.0" encoding="UTF-8"?>
    <ElementBaseInitiationBlock>
        <Inline template="General/Element Basic"/>
        
        <ForEach property="stepContainers">
            <Property property="name" style="@heading+"/>
            <ParagraphBreak/>
            
            <FlowOfEventIterationBlock includeSteps="true" includeExtensions="embedded">
                <FlowOfEventIndent/>
                <Property property="index" foreColor="#808080"/>
                <Text> </Text>
                <Property property="name"/>
                <ParagraphBreak/>        
            </FlowOfEventIterationBlock>        
        </ForEach>
    </ElementBaseInitiationBlock>
  7. Press OK button and close the Edit template dialog.
  8. Drag the Flow of Events (inline Extension Points) template into document editor.

    Drag template to editor

    Drag template to editor

Now the flow of events will have extension points showing inline in steps.

Flow of events with extension point showing along with steps

Flow of events with extension point showing along with steps

Explanation of the Template

This template is created under use case model, which means its scope is already on use case. We first calling the Element Basic template under General category to output the basic information of the use case.

<ElementBaseInitiationBlock>
    <Inline template="General/Element Basic"/>

After that we loop through the flow of events scenario (stepContainers) of the use case and print out the name if the scenario follow by a paragraph break.

<ForEach property="stepContainers">
    <Property property="name" style="@heading+"/>
    <ParagraphBreak/>

Next we loop through the flow of event steps and its details. In the loop we specify includeExtensions as embedded to have the extension point showing inline with the step.

<FlowOfEventIterationBlock includeSteps="true" includeExtensions="embedded">
    <FlowOfEventIndent/>
    <Property property="index" foreColor="#808080"/>
    <Text> </Text>
    <Property property="name"/>
    <ParagraphBreak/>        
</FlowOfEventIterationBlock>

Important

This enhancement supported since version 16.1 build 20200530cf. If you using older build of version 16.1 you can follow the article below to update your software to latest patch build and have this enhancement.

https://www.visual-paradigm.com/support/articles/update-to-latest-patch.jsp

 

Related Know-how

Related Link

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply