Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Process element to work with data #27

Closed
alexbudarov opened this issue Jun 10, 2021 · 8 comments
Closed

Process element to work with data #27

alexbudarov opened this issue Jun 10, 2021 · 8 comments
Assignees
Milestone

Comments

@alexbudarov
Copy link

Implement process element to work with data.
According to spec.

@alexbudarov alexbudarov added this to the 1.1.0 milestone Jun 10, 2021
@gorbunkov gorbunkov assigned artemy63 and unassigned gorbunkov Jun 21, 2021
@artemy63
Copy link

28.06.2021 - 50% done

artemy63 pushed a commit to jmix-projects/jmix-translations that referenced this issue Jul 22, 2021
@artemy63 artemy63 assigned lovtsovaik and unassigned artemy63 Jul 22, 2021
@maistrenkoIulia
Copy link

Jmix version: 1.1.0-SNAPSHOT
Jmix Studio plugin version: 1.1.SNAPSHOT3478-212
IntelliJ version: IntelliJ IDEA 2021.2.1 (Ultimate Edition)
TC: create 'Create entity' task with user entity and 'newUser' result var
create 'Modify entity' task
ER: 'newUser should be appeared in process var dropdown list
AR: no 'newUser' var
image

image

@maistrenkoIulia
Copy link

for QA: Need to create TCs for regress

@artemy63
Copy link

Note: high-level description of functionality which should be provided - https://docs.google.com/document/d/1dykndkljn9aeTvLaFrXYCbX-Ai9J1RW5kqLigVnu6GY/edit#heading=h.5jadw0jwopuo

@gorbunkov
Copy link

@artemy63 We decided to hide the "Spring bean" value type in the Entity attribute editor behind the feature-toggle (some application property).
By default, the "Spring bean" value type should not be visible in the Entity attribute editor for "Create entity" and "Modify entity" task types:

image

@artemy63
Copy link

Implementation notes

  • Supported three types of entity tasks
    • load entity by Jpql query and store it in some process variable
    • create entity with desired entity class and store it in some process variable
    • modify entity which stored in some process variable
  • load entity task can operate with any Jpql query so return type is not known, more over result can contain more than one element, so operator can specify what he wants - operate with collection or take just one first result ("Save result as" comboBox).
  • in case of creating entity operator should specify desired entity type, after that all none-system attributes of such entity type can be specified, as value supported simple values and expressions.
  • modify entity task assumes that operator selects existing process variable from list of available process variables. After that entity type will be detected automatically and all none-system attributes of this entity type can be filled with simple values or expressions. It is possible to specify process variable name directly by typing it name (actual when load entity task returns some entity), after that it is necessary to exactly specify entity type and proceed as usually with specifying entity attributes.

@artemy63
Copy link

artemy63 commented Oct 1, 2021

It is necessary to check feature toggle oshowing spring bean constructor as possible entity attribute type, by default it is disabled but can be switched on with property "jmix.bpm.dataTaskSpringBeanEntityAttributeEnabled" or "jmix.bpm.data-task-spring-bean-entity-attribute-enabled"

@maistrenkoIulia
Copy link

veriified

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants