cancel
Showing results for 
Search instead for 
Did you mean: 

New Task Icons doesn't appear

vire7777
Champ in-the-making
Champ in-the-making
Hello everybody

Here is my problem :

I created new beautiful tasks where i put new beautiful icons attached
Everything seems to work well and when i open my designer (the new version as it doesn t work with the oldest one), i can see my icons in the "palette" and in my schema when i m creating my workflow design. No problem here ^^

BUT

when i deploy the workflow in my application and have a look at the PNG, i can t see the icons… it always put these old little "engine" icons for every tasks (except the userTasks).

I suppose the problem comes from the icons are not in my application but how can i add them ? I thought this was imported at the same time than the bpmn or something like this. How can i change that ?


Thanks for your time Smiley Happy
4 REPLIES 4

jbarrez
Star Contributor
Star Contributor
I love how you write your post 😉

Good point. Images are generated by the DefaultProcessDiagramGenerator. You can get it from the ProcessEngineConfiguration.

I added these getters and setters for you so you can add your own DrawInstructions: https://github.com/Activiti/Activiti/commit/c016e2b07ffaf0237f93ed87af1fc35ee166c246

vire7777
Champ in-the-making
Champ in-the-making
Thanks Smiley Happy

But i dont understand (the contrary would be too easy) ^^
How can i add the icons in my application to see them in my png ?
I just have to use the class you sent me ? But how ?
(i m sorry… i m really not good :/)

I mean… when i create a new ActivitiDesignerExtension Jar, i see them in the designer and the palette, following the instructions
But then, when i deploy the workflow in my application, i don t see them again in the generated PNG when i want to launch a new workflow 😕

I put an example here for you to understand (it a .Jpg but i changed the extension as i can t upload a file without the .txt extension Smiley Tongue)

jbarrez
Star Contributor
Star Contributor
Yes, I do get what you are asking. What I did was exposing you the hookpoints to get your custom icons in the png generator.
You get the DefaultProcessDiagramGenerator through the ProcessEngineConfiguration, call the getter for the map of DrawInstructions and add your own Drawinstruction, probably copy/pasted from the default service task.

vire7777
Champ in-the-making
Champ in-the-making
Ok ^^
I ll try that Smiley Happy
Thanks for your time and i ll let you know if everything s ok Smiley Wink