Description of problem: When a new BPMN 2 process is created in a new project then a WorkDefinition.wid file is generated. This file contains the Email and Log work item definitions. The process will be visible in the directory in Guvnor right away but the WorkDefinitions.wid file will not. A refresh is required. How to reproduce: 1) create a new project 2) create a new package in the src/resources directory 3) create a new BPMN2 process. Expected result: Both process file and wid file visible. Actual result: Only process file is visible. Affected version: DR6
I'm assigning this issue to Michael Anstis, because this is about building the kjar which is out side of the BPM side. I know that the WorkDefinitions.wid file is related with the processes, but the policies to include or exclude files are in a core module.
There is a very similar (if not identical) BZ to this already that was assigned to tsurdilo (WIDs created along with a process are not in the KJAR). I have verified creating a new WID directly (i.e. New->Work Item Definition) works OK. The same root cause is at play - probably a NewResourceEvent is not being raised for the WID.
This also seems to be causing another side effect: when opening designer for the first time, since the generated .wid is not immediately picked up, the service tasks category remains empty (no way to add one of the custom service tasks). Reopening designer a second time makes the category show up correctly.
Fixed in master and 6.0.x branches of designer. Designer is now able to find the installed workitem definitions config in a new repo+project right away and re-open is no longer necessary.
Verified on BPMS 6.0.0.ER4