Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on editing a process variable with Entity type in the process instance editor #1723

Closed
gorbunkov opened this issue May 22, 2023 · 1 comment
Assignees
Labels
in: bpm size: S type: bug Something isn't working
Projects
Milestone

Comments

@gorbunkov
Copy link
Contributor

gorbunkov commented May 22, 2023

Jmix: 1.5.2

  1. Create a process with input dialog process form on the start
  2. Add some property with "entity" type to the start form
  3. Run the process
  4. Open the process instance editor
  5. Try to edit the entity process variable

AR: the exception:

Caused by: java.lang.IllegalArgumentException: MetaClass not found for null
	at io.jmix.core.metamodel.model.impl.SessionImpl.getClass(SessionImpl.java:43) ~[jmix-core-1.5.2.jar:na]
	at io.jmix.core.impl.MetadataImpl.getClass(MetadataImpl.java:129) ~[jmix-core-1.5.2.jar:na]
	at io.jmix.bpmui.screen.processvariable.VariableInstanceDataEdit.createEntityPickerField(VariableInstanceDataEdit.java:237) ~[jmix-bpm-ui-1.5.2.jar:na]
	at io.jmix.bpmui.screen.processvariable.VariableInstanceDataEdit.createComponent(VariableInstanceDataEdit.java:183) ~[jmix-bpm-ui-1.5.2.jar:na]
	at io.jmix.bpmui.screen.processvariable.VariableInstanceDataEdit.initValueComponent(VariableInstanceDataEdit.java:117) ~[jmix-bpm-ui-1.5.2.jar:na]
	at io.jmix.bpmui.screen.processvariable.VariableInstanceDataEdit.onBeforeShow(VariableInstanceDataEdit.java:77) ~[jmix-bpm-ui-1.5.2.jar:na]
	at io.jmix.core.common.event.EventHub.publish(EventHub.java:170) ~[jmix-core-1.5.2.jar:na]
	at io.jmix.ui.screen.Screen.fireEvent(Screen.java:124) ~[jmix-ui-1.5.2.jar:na]
	at io.jmix.ui.screen.UiControllerUtils.fireEvent(UiControllerUtils.java:58) ~[jmix-ui-1.5.2.jar:na]
	at io.jmix.ui.sys.ScreensImpl.fireScreenBeforeShowEvent(ScreensImpl.java:1364) ~[jmix-ui-1.5.2.jar:na]
	at io.jmix.ui.sys.ScreensImpl.show(ScreensImpl.java:357) ~[jmix-ui-1.5.2.jar:na]
	at io.jmix.ui.screen.Screen.show(Screen.java:306) ~[jmix-ui-1.5.2.jar:na]
	at io.jmix.bpmui.screen.processinstance.ProcessInstanceEditRuntimeFragment.onVariablesTableEdit(ProcessInstanceEditRuntimeFragment.java:261) ~[jmix-bpm-ui-1.5.2.jar:na]

See forum topic

Sample project: entity-variable-edit.zip

Additionally we need to test this in FlowUI screens.

@gorbunkov gorbunkov added type: bug Something isn't working size: S in: bpm labels May 22, 2023
@gorbunkov gorbunkov added this to Backlog in Release 1.5 via automation May 22, 2023
@KremnevDmitry KremnevDmitry moved this from Backlog to Next in Release 1.5 May 24, 2023
@KremnevDmitry KremnevDmitry moved this from Next to In progress in Release 1.5 May 25, 2023
@KremnevDmitry KremnevDmitry moved this from In progress to Review in Release 1.5 May 25, 2023
@KremnevDmitry KremnevDmitry moved this from Review to QA in Release 1.5 May 26, 2023
@konyashkina
Copy link

Tested on
Jmix version: 1.5.999-SNAPSHOT
Jmix Studio plugin version: 1.5.SNAPSHOT5208-223
IntelliJ version: IntelliJ IDEA 2022.3.3 (Ultimate Edition)

Release 1.5 automation moved this from QA to Done May 29, 2023
@gorbunkov gorbunkov added this to the 1.5.3 milestone Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: bpm size: S type: bug Something isn't working
Projects
Release 1.5
  
Done
Development

No branches or pull requests

3 participants