This content has been marked as final.
Show 3 replies
-
1. Re: Process image upload
pieter.martin Dec 22, 2008 5:06 AM (in response to dkmorb)Hi,
I our app we include the picture in the par file deploy it and then later extract it again.
Relevant code:graphSession.deployProcessDefinition(ProcessDefinition.parseParZipInputStream(new ZipInputStream(new ByteArrayInputStream(parFile))));
Criteria query = ManagedJbpmContext.instance().getSession().createCriteria(ProcessDefinition.class); List<ProcessDefinition> anarchyProcessDefinitionList = query.list(); for (ProcessDefinition process : anarchyProcessDefinitionList) { if (process.getName().equals(processInstance.getProcessDefinition().getName())) { FileDefinition fileDefinition = process.getFileDefinition(); dribbleSvg = fileDefinition.getInputStream("processimage.svg"); break; } }
Cheers
Pieter -
-
3. Re: Process image upload
pieter.martin Dec 23, 2008 4:38 AM (in response to dkmorb)Hi,
Yes svg.
We generate a svg picture from the eclipse processdefinition.xml and gpd.xml.
This allows us to runtime change the colour of the tasks to indicate their respective statuses.
This gives a nice visual indication to the user of the process.
Cheers
Pieter