cancel
Showing results for 
Search instead for 
Did you mean: 

icon for a process definition

christoph_retti
Champ in-the-making
Champ in-the-making
Hi, is it possible (didn't find something in the engine API) or planned to provide an icon for a process definition?

This way users could be provided a overview of all the process definitions available with an easy to recognize icon/image and
it would help to find a process definition faster if there are lots of them.

  regards, Chris
10 REPLIES 10

frederikherema1
Star Contributor
Star Contributor
The only thing you can do is deploy an image for the process-engine, which is most of the time the graphical representation of the process. In your UI, however, you can add an icon when you deploy (instead of a process-image) and use that in the overview.


ProcessDefintiion.getDiagramResourceName();

(RepositoryService) InputStream getResourceAsStream(String deploymentId, String resourceName);

christoph_retti
Champ in-the-making
Champ in-the-making
I think both will be nice: the graphical representation of the process for users to look at what the process is doing and also an icon to quickly identify a process to use.

Do you see a chance to implement this in a future release?

  c

frederikherema1
Star Contributor
Star Contributor
Don't think so, since that feature is quite UI-minde, not really suited for the engine itself, but that's my opinion. Offcourse, you could always file a jira feature request…

christoph_retti
Champ in-the-making
Champ in-the-making
Hmmm … is there a way to extends the BPMN 2.0 XML File with an URL that can then be used to query an image?

Or more generally: is there a way/sample to extend the designer to add additional metadata in the BPMN 2.0
xml file (or maybe just add some own xml elements in there) and then read this out using some API.

Right now I think the only way to get the BPMN 2.0 file is to call

InputStream org.activiti.engine.RepositoryService#getResourceAsStream(String deploymentId, String resourceName)

but this way I have to parse XML and know pretty well which elements I will have to fetch from.

  c

jbarrez
Star Contributor
Star Contributor
You could shrink the process diagram and store it as a resource with the xml.

christoph_retti
Champ in-the-making
Champ in-the-making
Would be an idea, is there a documentation on how to do custom extensions for the BPMN 2.0 xml?

jbarrez
Star Contributor
Star Contributor
No. The easiest is to check the source code, definitely check the BPMNParseListener.

However, I do believe that it is not possible to add a custom namespace, as the schema is checked when parsing the process.

christoph_retti
Champ in-the-making
Champ in-the-making
hmmm … but activiti itself uses extensions in the activiti: namespace?

fmpdmb
Champ on-the-rise
Champ on-the-rise
so no resolution to this question?