[jboss-user] [JBoss jBPM] - Re: How to get process jpg and gpd
HeinerNiehues
do-not-reply at jboss.com
Thu Nov 8 14:29:41 EST 2007
Hi
Did you before upload the processimage.jpg and the gpd.xml ?
This is necessery because the ProcessDefinition.xml doesnt contain this files.
You have to add these files to the processdefinition like this:
| ProcessDefinition pi = jbpmContext.getGraphSession().loadProcessDefinition(pid);
|
| FileDefinition fileDefinition = pi.getFileDefinition();
| if (fileDefinition == null) {
| fileDefinition = new FileDefinition();
| pi.addDefinition(fileDefinition);
| }
| fileDefinition.addFile(name, inputStream);
| jbpmContext.getGraphSession().saveProcessDefinition(pi);
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103057#4103057
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103057
More information about the jboss-user
mailing list