Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBPM getFileDefinition always throw out nullPointException exception

 
Bo SunNZ
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there

have a problem in getting a JBPM definition file as below

ProcessDefinition def = graphSession.findLatestProcessDefinition(definitionName);

InputStream is = def.getFileDefinition().getInputStream(definitionName);

I tested def.getId and def.getName which return correct results in case. However, when invoking getFileDefinition, always get nullPointException.

Can anybody give me some suggestions? cheers.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic