Bug 825977
Summary: | Designer: Editor for Data Assigments generates invalid code | ||||||
---|---|---|---|---|---|---|---|
Product: | [JBoss] JBoss Enterprise BRMS Platform 5 | Reporter: | Sona Mala <smala> | ||||
Component: | BRM (Guvnor) | Assignee: | manstis | ||||
Status: | ASSIGNED --- | QA Contact: | |||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | BRMS 5.3.0.GA | CC: | kverlaen | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
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: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Sona Mala
2012-05-29 08:55:54 UTC
I am unable to reproduce this - can you do it by using the Assignments Editor instead of typing in the string directly into the text input? Typically all of our users would use the Assignments Editor to create assignments for their tasks. Set Assigments Editor like is on screenshot. Process Variable: requestEmail, medicineName ServiceTask: Email Created attachment 587416 [details]
Editor screenshot
Problem is that after I click button "OK" in Editor and look inside Assigments input, I can see invalid code: TaskName=Email,To->requestEmail,From=,Subject->medicineName instead of: TaskName=Email,requestEmail->To,From=,medicineName->Subject Designer version: 2.2.0-DEV I think I understand the problem now - the editor currently is not that smart to know to switch your left-hand side and right-hand side assignments. if you want to set mappings, you would need to switch the order, for example in the editor map medicineName process var to the From data input and not From data input to the medicineName process var. The order here matters, and the editor is just doing what you tell him to do :) Smarter mapping should be added, but that's for the future I think. Is there any possibility to choose if I want to write var1->var2 or var2->var1? Currently no and you have to set the "From Object" and "To Object" to reflect exactly what you want. Maybe we could add a "switch order" button there but again this could introduce more bugs for BRMS 5.3, that's why I am inclined to see this done after the product release, but please keep this bug open and write your great ideas on how we can improve this as it really should be improved :) Ok ... my mistake I saw that variable was at left side and I did not notice Names of Columns. I did not find anythink in documentation about it. It will be wonderfull, if I find this in documentation. |