You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "agrz (via GitHub)" <gi...@apache.org> on 2025/02/04 13:39:44 UTC
[I] Custom WorkItemDefintions loading broken in Editor v10 on Git repos [incubator-kie-issues]
agrz opened a new issue, #1800:
URL: https://github.com/apache/incubator-kie-issues/issues/1800
Hi,
recently a very strange error started to occur in the Kogito 10 release BPMN Editor that worked quite fine before. I know there are plans to replace the wid mechanism with something else, but in the current v10 this is still the way to use custom task elements in the editor and needed for any extension to be used in BPMN. This worked until recently with the same version of the Kogito plugin.
**Environment:**
Mac OS 15.2
VSCode 1.96.4
Kogito Extension Bundle Version 10
Reproducible on multiple different machines
Same behavior is also reproducible with older versions of the Kogito Extension
**Description**
The loading of custom workitem definitions from the global folder is no longer working in the vscode plugin if there is a .git folder in the opened project root.
**Steps to reproduce**
- Have a git repository cloned to the local file system (i.e. see sample repo I created: https://github.com/newwork-software/kogito-bpmn-editor-error)
- Have a global folder with a .wid file (i.e. RestWorkItem from [Kogito examples](https://github.com/apache/incubator-kie-kogito-examples/blob/741a4a2b3b03dbbfb326a710e49f162d47a49dbe/kogito-quarkus-examples/process-rest-workitem-multi-quarkus/src/main/resources/RestWorkDefinition.wid) )
- In VSCode use open folder and select the cloned repository
- Open a bpmn process file in the Kogito BPMN extension (src/main/resources/numbers.bpmn)
- Click on the custom task palete icon (cog symbol)
**Expected result**
The Rest workitem shows in the custom tasks.

**Actual result**
The custom tasks only show the milestone task but with only a dummy icon.

If you go into the .git folder and rename the index file to index_ then close and reopen the bpmn editor, the custom task shows as expected. Same if you open a project without a .git folder.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] Custom WorkItemDefintions loading broken in Editor v10 on Git repos [incubator-kie-issues]
Posted by "agrz (via GitHub)" <gi...@apache.org>.
agrz commented on issue #1800:
URL: https://github.com/apache/incubator-kie-issues/issues/1800#issuecomment-2688734275
We made several tests and put the wid file in the folder with the process or in global or otherwhere in the classpath. It doesn't matter. It just depends if the workspace root you open in vscode contains the .git folder or not.
Also all our developers have the same problem on Windows and Mac, at least on 10 different machines with different setups. We tried some older vscode versions but could yet pinpoint if some vscode update broke the functionality. The versions from November, December, January all show the same behavior.
If we put the global wid folder in the parent folder of a git project and open that in vscode, also everything works fine.
In the extension logs we can see no error.
I am wondering if others see this behavior too or if it is only us?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] Custom WorkItemDefintions loading broken in Editor v10 on Git repos [incubator-kie-issues]
Posted by "pefernan (via GitHub)" <gi...@apache.org>.
pefernan commented on issue #1800:
URL: https://github.com/apache/incubator-kie-issues/issues/1800#issuecomment-2688050295
@agrz hello, would you mind checking if putting the `*.wid` file in the same folder as your bpmn process makes it work?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] Custom WorkItemDefintions loading broken in Editor v10 on Git repos [incubator-kie-issues]
Posted by "bedag-bad (via GitHub)" <gi...@apache.org>.
bedag-bad commented on issue #1800:
URL: https://github.com/apache/incubator-kie-issues/issues/1800#issuecomment-2733843094
Today I experienced the same problem as you @agrz. The custom task did not show up properly in my project. I went into the .git folder and rename the index file to index_ then closed and reopened the bpmn editor and the custom task shows as expected. Interestingly I have another project on the same laptop and in that project the custom tasks do show up as expected even with a .git directory present (and of course without renaming index to index_).
I have no clue why it works on one project but not with the other.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] Custom WorkItemDefintions loading broken in Editor v10 on Git repos [incubator-kie-issues]
Posted by "pefernan (via GitHub)" <gi...@apache.org>.
pefernan commented on issue #1800:
URL: https://github.com/apache/incubator-kie-issues/issues/1800#issuecomment-2688059715
@agrz would it be possible that your .wid isn't added to git?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org