cancel
Showing results for 
Search instead for 
Did you mean: 

Task titles don't fit in the diagram task boxes

nandofm
Champ in-the-making
Champ in-the-making
Hi all,

I've been searching here but I wasn't able to find the solution to this problem. Maybe it's easy, I hope you can help me.

When I use the following sentence to display to the user the diagram, it is different than the one generated from the Activiti Designer. The task titles don't fit in the task diagram boxes and for the users it's a bit confusing to understand the process flow.

ProcessDiagramGenerator.generateDiagram(pde, "png", runtimeService.getActiveActivityIds(pid) //pde: ProcessDefinitionEntity, pid: Process Instance ID

Is there a way to display the full task title in the boxes? Otherwise, is there a way to display the same diagram image generated by the designer showing in red the current task?

Thanks in advance
4 REPLIES 4

frederikherema1
Star Contributor
Star Contributor
Hi,

The diagram-image in the designer is generated by Eclipse Graffiti. The ones in the engine itself are rendered using our implementation based on the BPMN2.0 DI information, leveraging java.awt drawing. This implementation just truncates the text until it fits on a single line.

The only way activiti can "highlight" the active activities is by using the internal implementation, and not the .png generated by eclipse designer.

nandofm
Champ in-the-making
Champ in-the-making
Thanks for the quick response!

Do you have plans to improve the diagram generator in order to be able to display the complete title of the tasks?

frederikherema1
Star Contributor
Star Contributor
There is no plan to do this right now. The diagram-generation feature was a nice-to extra have we added in and isn't as "smart" as the designer implementation.
Although it seems simple, it's not that straight-forward to implement this.

As usual, we're always welcome to accept a patch that e.g.. takes 2 lines instead of one for the activity name displayed…

nandofm
Champ in-the-making
Champ in-the-making
Ok, thanks again.