[jboss-user] [JBoss jBPM] - Re: Process image upload
pieter.martin
do-not-reply at jboss.com
Mon Dec 22 05:06:16 EST 2008
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
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197951#4197951
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197951
More information about the jboss-user
mailing list