Bug 858267

Summary: Designer: cannot add user service node into Shape Repository
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Sona Mala <smala>
Component: BRM (Guvnor)Assignee: manstis
Status: VERIFIED --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.1CC: manstis
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Icon for service none

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.