Discussion:
[jboss-user] [jBPM] - Designer not rendering service tasks correctly when loading a process
Gareth Edwards
2013-03-15 15:01:41 UTC
Permalink
Gareth Edwards [https://community.jboss.org/people/garethed] created the discussion

"Designer not rendering service tasks correctly when loading a process"

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

--------------------------------------------------------------
JBPM version: 5.4
Drools Version 5.5.0.Final
Designer 2.4.0.Final

Hi, I have created a very simple customer work item which is just logging the data set in the task.
The service task appears correctly in the servce tasks menu with icon and appears correct when dragged into a process.
I can set it up, save it and it works correctly with my handler being called.  Every thing is fine.

When I load the process to make changes, my service task is visable in the process but does not have an icon and is missing the 'extra' section of the properties.
I cannot make changes to the service task without deleting and re-adding to my workflow.

the definition is:



import org.drools.process.core.datatype.impl.type.StringDataType;
import org.drools.process.core.datatype.impl.type.IntegerDataType;
[
  [
    "name" : "Email",
    "parameters" : [
      "From" : new StringDataType(),
      "To" : new StringDataType(),
      "Subject" : new StringDataType(),
      "Body" : new StringDataType()
    ],
    "displayName" : "Email",
    "icon" : "http://localhost:8080/drools-guvnor/rest/packages/Dev/assets/defaultemailicon/binary"
  ],
 
  [
    "name" : "Log",
    "parameters" : [
      "Message" : new StringDataType()
    ],
    "displayName" : "Log",
    "icon" : "http://localhost:8080/drools-guvnor/rest/packages/Dev/assets/defaultlogicon/binary"
  ],


  [
    "name" : "UpdateWorkflowCurrentTask",
    "parameters" : [
    "taskName" : new StringDataType(),
  "treatmentId" : new IntegerDataType()
    ],


    "displayName" : "Current Workflow Task",
    "icon" : "http://localhost:8080/drools-guvnor/rest/packages/globalArea/assets/dataInDb/binary"
  ]
]




It appears to be some kind of rendering issue.

Any ideas?
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Olaf Sebelin
2013-03-15 15:09:12 UTC
Permalink
Olaf Sebelin [https://community.jboss.org/people/osebelin] created the discussion

"Re: Designer not rendering service tasks correctly when loading a process"

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

--------------------------------------------------------------
Just a wild guess: is there a ClassCastException in the logs? I'm facing a similar issue with the Eclipse plugin.
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Gareth Edwards
2013-03-15 15:24:17 UTC
Permalink
Gareth Edwards [https://community.jboss.org/people/garethed] created the discussion

"Re: Designer not rendering service tasks correctly when loading a process"

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

--------------------------------------------------------------
No, but I get a few exceptions:


failed to execute: javax.ws.rs.WebApplicationException
          at org.drools.guvnor.server.jaxrs.PackageResource.getAssetAsAtom(PackageResource.java:538) [guvnor-webapp-core-5.5.0.Final.jar:5.5.0.Final]
          at org.drools.guvnor.server.jaxrs.PackageResource$Proxy$_$$_WeldClientProxy.getAssetAsAtom(PackageResource$Proxy$_$$_WeldClientProxy.java) [guvnor-webapp-core-5.5.0.Final.jar:5.5.0.Final]......

and

javax.jcr.ItemExistsException: This node already exists: /drools:repository/drools:package_area/Dev/assets/defaultemailicon.....

and

javax.jcr.ItemExistsException: This node already exists: /drools:repository/drools:package_area/Dev/assets/defaultlogicon......

and

javax.jcr.ItemExistsException: This node already exists: /drools:repository/drools:package_area/Dev/assets/defaultservicenodeicon......
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Gareth Edwards
2013-03-18 16:40:07 UTC
Permalink
Gareth Edwards [https://community.jboss.org/people/garethed] created the discussion

"Re: Designer not rendering service tasks correctly when loading a process"

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

--------------------------------------------------------------
I think the problem was the input variable name I chose "taskName" : new StringDataType()
--------------------------------------------------------------

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

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