XML Tag/Value for BP Task ID

I search the XML tag/value for the BP Task to print the ID in the report. In the code by the questionmarks.

<HasChildElementChecker flag="true">
<TableBlock colWidths="30, 10, 10, 50" tableWidth="16000" alignment="right">
<TableRow>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
 <StaticText content="Name" style="Table Heading (ottogroup)"/>
 </TableCell>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
 <StaticText content="ID" style="Table Heading (ottogroup)"/>
 </TableCell>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
 <StaticText content="Typ" style="Table Heading (ottogroup)"/>
 </TableCell>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
 <StaticText content="Dokumentation" style="Table Heading (ottogroup)"/>
 </TableCell>
 </TableRow>
<IterationBlock modelTypes="BPTask" sortBys="modelType, name">
<ValueConditionChecker property="documentation" operator="not equals" value="">
<TableRow>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
 <StringPropertyText propertyText="name" style="Table Contents (ottogroup)"/>
 </TableCell>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
 <StringPropertyText propertyText="???? (id)" style="Table Contents (ottogroup)"/>
 </TableCell>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
 <StringPropertyText propertyText="modelType" style="Table Contents (ottogroup)"/>
 </TableCell>
<TableCell leftBorderEnable="false" rightBorderEnable="false">
 <StringPropertyText propertyText="documentation" style="Table Contents (ottogroup)"/>
 </TableCell>
 </TableRow>
 </ValueConditionChecker>
 </IterationBlock>
 </TableBlock>
 </HasChildElementChecker>

Hello Ckuettner,

Thanks for your message but I’m sorry that I don’t quite understand what you are looking for. Would you mind tell me more details about your question?

Best regards,
Rain

Hello Rain,

here the details. The code is a part to generate the name, type and documentation in a tableblock for the tasks in a BPMN Diagram. And now we need an additional row with the ID of the task. How is the XML syntax for it? I attempt some XML value options: bptaskID, ID, modelID, … No one was correct.

tasks.png

Hi ckuettner,

I guess that you are looking for property “bpmnId”. Please try and see if it is what you are looking for.

Best regards,
Jick

Hey Jick,

thanks. That was the property what i search for.

Hi ckuettner,

You are welcome! Just a tips for you - To know the name of a property, you can try the following:

  1. Right click on the target shape (e.g. Task in this case)
  2. Select Copy > Copy as XML from the popup menu.
  3. Paste to a text editor
  4. Search for the property name

This is not a perfect solution but does works. Hope you find it useful.

Best regards,
Jick