Discussion:
[jboss-user] [jBPM] - BPMN2 Designer Stuck loading after adding custom work item definition
Andrew Tan
2013-05-29 08:31:34 UTC
Permalink
Andrew Tan [https://community.jboss.org/people/atan20] created the discussion

"BPMN2 Designer Stuck loading after adding custom work item definition"

To view the discussion, visit: https://community.jboss.org/message/820047#820047

--------------------------------------------------------------
I am trying to create a simple BPMN2 process that uses a domain specific service. However, after I add a new work item definition in drools-guvnor 5.3.1 and I attempt to create or open an existing bpmn2 process the designer gets stuck on the "Please Wait Loading" screen.

Loading Image... Loading Image...

Here is my work item definition:


import org.drools.process.core.datatype.impl.type.ObjectDataType;import org.drools.process.core.datatype.impl.type.StringDataType;
[
  [    "name" : "MyTask",    "parameters" : [     "MyFirstParam" : new StringDataType(),     "MySecondParam" : new StringDataType(),     "MyThirdParam" : new ObjectDataType()    ],    "results" : [        "Result" : new ObjectDataType()    ],    "displayName" : "My Task",    "icon" : "",  ]     ]



Looking at the server.log file of JBoss ESB I can see drools-guvnor loading the custom work item definition, and I am able to build my package in drools guvnor

2013-05-29 18:20:49,120 INFO  com.intalio.web.preprocessing.impl.JbpmPreprocessingUnit com.intalio.web.preprocessing.impl.JbpmPreprocessingUnit (http-127.0.0.1-8080-1) Created file:/opt/jboss-soa-p-5/jboss-as/server/all/tmp/4st5t49-27ns8v-hha869gx-1-hha88mdt-c7/designer.war/stencilsets/bpmn2.0jbpm/view/activity/workitems/Log.svg
2013-05-29 18:20:49,121 INFO  com.intalio.web.preprocessing.impl.JbpmPreprocessingUnit com.intalio.web.preprocessing.impl.JbpmPreprocessingUnit (http-127.0.0.1-8080-1) Created file:/opt/jboss-soa-p-5/jboss-as/server/all/tmp/4st5t49-27ns8v-hha869gx-1-hha88mdt-c7/designer.war/stencilsets/bpmn2.0jbpm/view/activity/workitems/Email.svg
2013-05-29 18:20:49,122 INFO  com.intalio.web.preprocessing.impl.JbpmPreprocessingUnit com.intalio.web.preprocessing.impl.JbpmPreprocessingUnit (http-127.0.0.1-8080-1) Created file:/opt/jboss-soa-p-5/jboss-as/server/all/tmp/4st5t49-27ns8v-hha869gx-1-hha88mdt-c7/designer.war/stencilsets/bpmn2.0jbpm/view/activity/workitems/MyTask.svg



Does anyone have any ideas about why the designer is getting stuck in the "Please Wait Loading" Screen?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/820047#820047]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Andrew Tan
2013-05-29 08:59:57 UTC
Permalink
Andrew Tan [https://community.jboss.org/people/atan20] created the discussion

"Re: BPMN2 Designer Stuck loading after adding custom work item definition"

To view the discussion, visit: https://community.jboss.org/message/820055#820055

--------------------------------------------------------------
I started up firebug to debug it and I can see an error when the desginer tries to load a BPMN2 diagram when I have my custom Work Item Definition.

Here is what the firebug output looks like when the designer loads up fine (without any custom work item definitions)
Loading Image... Loading Image...

Here is what the firebug output looks like when the designer gets stuck in the "loading" screen (when I have a custom work item definition)

Loading Image... Loading Image...
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/820055#820055]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Andrew Tan
2013-05-30 00:21:32 UTC
Permalink
Andrew Tan [https://community.jboss.org/people/atan20] created the discussion

"Re: BPMN2 Designer Stuck loading after adding custom work item definition"

To view the discussion, visit: https://community.jboss.org/message/820239#820239

--------------------------------------------------------------
I solved the issue.

The designer gets stuck when your work item definiton does not define an icon.

After adding an url to an image in the "icon" parameter for the work item definition the designer loads and I can use my domain specific service.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/820239#820239]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
David Harris
2013-05-30 19:06:46 UTC
Permalink
David Harris [https://community.jboss.org/people/dmwpepper] created the discussion

"Re: BPMN2 Designer Stuck loading after adding custom work item definition"

To view the discussion, visit: https://community.jboss.org/message/820487#820487

--------------------------------------------------------------
Hi Andrew, I was just trying something similar in Eclipse, instead of Process Designer and I found that the problem isn't the icon parameter. I took the icon parameters out and custom service tasks appeared.  However, I found that the bpmn graphic editor would only show updated work items after I ran the process.  It's as if running the process loads in the new work items. 
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/820487#820487]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...