Bug 790449

Summary: jBPM Console doesn't pick up processes from new packages
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Jiri Locker <jlocker>
Component: jBPM ConsoleAssignee: Kris Verlaenen <kverlaen>
Status: VERIFIED --- QA Contact: Jiri Locker <jlocker>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.0.GACC: lpetrovi
Target Milestone: ER6   
Target Release: BRMS 5.3.0.GA   
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:

Description Jiri Locker 2012-02-14 14:57:23 UTC
Description of problem:
When first accessing jbpm-console, it starts listing processes from any package that has a binary available from Guvnor. After that point no new packages start to be tracked and their processes won't show up in the jbpm-console. Here's an example:

I have defaultPackage with Evaluation process and another myPackage with no processes. I build both and go to jbpm-console to check the Process Overview. Evaluation process is there. Then I create two new processes, one in defaultPackage, the other in myPackage and build the packages again. All three processes are listed in Process Overview in jbpm-console. Ok up to now. Lastly, I create a new package newPackage, create MissingProcess in it and build the new package. MissingProcess will not show up in the Process Overview.

Version-Release number of selected component (if applicable):
BRMS 5.3.0 ER3

How reproducible:
always

Steps to Reproduce:
see description
  
Actual results:
jbpm-console does not list processes from packages that were created after accessing the Process Overview for the first time

Expected results:
jbpm-console should list processes from all packages that have binaries at the time of the query.

Additional info:

Comment 2 Maciej Swiderski 2012-04-04 11:20:32 UTC
This happens due to knowledge agent is configured with change set that is populated with all known packages at the time of creation (first time process definitions are retrieved) and it capable of rebuilding knowledge base on changes applied to known resources.
And as adding new package in Guvnor will not be known to knowledge agent so it will not be visible in jbpm-console.

As far as I know there is no way to configure change set for the agent to consider not existing resources (packages).

Alternatively we could try to periodicly check for changes in packages and add them to knowledge agent that is already configured, kidn of delta of new packages.

Comment 3 Maciej Swiderski 2012-04-18 05:05:27 UTC
Refresh of Process Definitions in Console will check if there are new packages available in Guvnor and if so will add them to the agent configuration.

Comment 4 Ryan Zhang 2012-04-23 07:38:01 UTC
Update status to ON_QA. Please verify them against ER6.

Comment 6 Jiri Locker 2012-05-09 13:23:57 UTC
Verified in ER6.