cancel
Showing results for 
Search instead for 
Did you mean: 

deploy the zip and processDefiniti.DiagramResourceName=null

weiyi2011
Champ in-the-making
Champ in-the-making
Hi, everybody!


repositoryService.createDeployment()
    .name("deployname_leave2")// act_re_deployment.NAME
    .addZipInputStream(zipInputStream)// zipInputStream is not null, zip[leave2.activiti.bpmn20.xml, leave2.activiti.processimage.jpg]
    .deploy();

LOG:
inserting: ProcessDefinitionEntity[leave2:4]  [org.activiti.engine.impl.db.DbSqlSession]
08:13:42,191 FIN  | ==>  Executing: insert into ACT_RE_PROCDEF(ID_, CATEGORY_, NAME_, KEY_, VERSION_, DEPLOYMENT_ID_, RESOURCE_NAME_, DGRM_RESOURCE_NAME_, HAS_START_FORM_KEY_) values (?, ?, ?, ?, ?, ?, ?, ?, ?)   [java.sql.PreparedStatement]
08:13:42,191 FIN  | ==> Parameters: leave2:4(String), http://www.activiti.org/test(String), leave2(String), leave2(String), 4(Integer), 801(String), leave2.activiti.bpmn20.xml(String), null, false(Boolean)  [java.sql.PreparedStatement]

Why the DGRM_RESOURCE_NAME_ is null?
How can I save the DiagramResourceName to the ACT_RE_PROCDEF.DGRM_RESOURCE_NAME_.

Thanks.
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
Hi,

The "leave2.activiti.processimage.jpg" should be named "leave2.activiti.jpg" instead or "leave2.activiti.{processKey}.jpg" to be picked up as diagram resource for that process when deploying.

weiyi2011
Champ in-the-making
Champ in-the-making
hi, frederikheremans!

Thanks your help.   :lol: 
It's work as you say.