Bug 858267 - Designer: cannot add user service node into Shape Repository
Summary: Designer: cannot add user service node into Shape Repository
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: BRM (Guvnor)
Version: BRMS 5.3.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: manstis
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-18 13:29 UTC by Sona Mala
Modified: 2023-05-01 08:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)
Icon for service (276 bytes, image/gif)
2012-09-18 13:29 UTC, Sona Mala
no flags Details

Description Sona Mala 2012-09-18 13:29:52 UTC
Created attachment 614025 [details]
Icon for service

Description of problem:
I define Work Item Definition and use template for it (just change name and icon). But if I open/create BPMN2 process and expand Service Tasks in ShapeRepository, I am not able to find my service.

Version-Release number of selected component (if applicable):
BRMS 5.3.1 ER1

How reproducible:
Every time

Steps to Reproduce:
1. Add my icon (is attached) into package
2. Create new Work Item Definition
3. Change property "name" to "MyService1" (instead of "MyTask" write "MyService1")
4. Change property "displayName" to "My service 1" (instead of "My Task" write "My Service 1")
5. Add icon location (use icon's select)
6. Save and close asset
7. Open BPMN2 process (designer)

  
Actual results:
I am not able to find service node in Shape repository under Service tasks.
In server.log occurs ERROR:
[org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit] (http-127.0.0.1-8080-32) Failed to setup workitems : [Error: unbalanced braces [ ... ]]
[Near : {... [ ....}]
                                                                                                                                                  ^
[Line: 4, Column: 1]

But brackets are balanced.

Expected results:
That service node occurs in Shape Repository of BPMN2 process designer.
That template of Work Item Definition is valid.
Any tool for validation. (User have not got acces to server.log)


Additional info:
Work Item Definition code:
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" : "http://localhost:8080/jboss-brms/rest/packages/defaultPackage/assets/icon1/binary",
  ]     
]

Comment 1 Tihomir Surdilovic 2012-09-18 13:40:40 UTC
Can you validate your workitem definition in the Guvnor workitem definitions editor? Does is pass?

Comment 2 Tihomir Surdilovic 2012-09-18 14:59:42 UTC
Not able to reproduce this problem. Seems to work fine.

Comment 3 Sona Mala 2012-09-18 16:30:44 UTC
waiting on reproducible test case

I lost repository, in which was this problem. I cannot reproduce it in empty repository.

Comment 4 Tihomir Surdilovic 2012-09-19 15:07:47 UTC
Ok, I will wait until it can be reproduced again. Until then could we set the status to on_qa ?

Comment 5 Tihomir Surdilovic 2012-09-25 19:32:51 UTC
Setting status on ON_QA untile we have a reproducible test. Thanks.


Note You need to log in before you can comment on or make changes to this bug.