Bug 1008875

Summary: Failed to setup workitems : null
Product: [Retired] JBoss BPMS Platform 6 Reporter: Zuzana Krejčová <zkrejcov>
Component: jBPM DesignerAssignee: Tihomir Surdilovic <tsurdilo>
Status: CLOSED CURRENTRELEASE QA Contact: Zuzana Krejčová <zkrejcov>
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: kverlaen, lpetrovi
Target Milestone: ER5   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:06:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Zuzana Krejčová 2013-09-17 09:30:11 UTC
Description of problem:
When opening a process or instance model (through Definition/Instance Details -> View Model), the following can be found in the server log:

ERROR [org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit] ... Failed to setup workitems : null

Even though this is logged as an error, nothing seems broken, model is displayed.


Version-Release number of selected component (if applicable):
BPMS 6.0 ER3

Comment 1 Tihomir Surdilovic 2013-11-01 21:01:29 UTC
In case of error designer still shows the business process. It does not however include the workitem definitions for which there are errors in the stencil set. Is this really an issue??

Comment 2 Zuzana Krejčová 2013-11-04 08:57:48 UTC
Short answer: Yes, it is an issue. See below for reasons.

1. The message now reads "Failed to setup workitems : Repository with alias dummy not found".

2. It only appears for process and instance model in the Process Management perspectives. It does not appear for processes opened in the Authoring perspective. 

3. In the Authoring perspective, I can see the items in service tasks just fine. I can use them in the process definition, no validation errors found. WID validation does not show any errors either.

4. Process definition / instance model with a service task / work item is displayed just fine.


If the error isn't logged when working with the Authoring perspective Designer, it also shouldn't be logged when working with the Designer Process Management perspectives. And vice versa. Either there is a problem with the definition or there is not.

If the Designer works just fine, gets around the issue and displays the model, then there is no reason to log an error message. More clearly - if there was a problem that might influence other things, but the Designer was able to work around it, WARN level (at most) is appropriate, not ERROR. Especially if it doesn't influence working with the Designer.

If there is a problem with the service task / work item used, user should be warned when validating the process.

Comment 3 Tihomir Surdilovic 2013-11-12 20:30:24 UTC
can you please retest with the latest code. issues about this have been fixed and i think this was fixed as well. let me know please

Comment 4 Zuzana Krejčová 2013-11-13 10:03:15 UTC
(In reply to Tihomir Surdilovic from comment #3)
> can you please retest with the latest code. issues about this have been
> fixed and i think this was fixed as well. let me know please

With the 6.0.0.Final kie-wb-distribution-wars, simply opening the definition and instance models seems fine.